apache-airflow-providers-microsoft-azure 11.0.0__py3-none-any.whl → 11.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "11.0.0"
32
+ __version__ = "11.1.0"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.8.0"
@@ -28,8 +28,9 @@ def get_provider_info():
28
28
  "name": "Microsoft Azure",
29
29
  "description": "`Microsoft Azure <https://azure.microsoft.com/>`__\n",
30
30
  "state": "ready",
31
- "source-date-epoch": 1730013072,
31
+ "source-date-epoch": 1731570356,
32
32
  "versions": [
33
+ "11.1.0",
33
34
  "11.0.0",
34
35
  "10.5.1",
35
36
  "10.5.0",
@@ -120,7 +121,7 @@ def get_provider_info():
120
121
  "microsoft-kiota-serialization-text==1.0.0",
121
122
  "microsoft-kiota-abstractions<1.4.0",
122
123
  ],
123
- "devel-dependencies": ["pywinrm"],
124
+ "devel-dependencies": ["pywinrm>=0.4"],
124
125
  "integrations": [
125
126
  {
126
127
  "integration-name": "Microsoft Azure Batch",
@@ -493,6 +493,33 @@ class WasbHook(BaseHook):
493
493
  self._get_container_client(container_name).delete_blobs(*blobs, **kwargs)
494
494
  self.log.info("Deleted blobs: %s", blobs)
495
495
 
496
+ def copy_blobs(
497
+ self,
498
+ source_container_name: str,
499
+ source_blob_name: str,
500
+ destination_container_name: str,
501
+ destination_blob_name: str,
502
+ ) -> None:
503
+ """
504
+ Copy the specified blobs from one blob prefix to another.
505
+
506
+ :param source_container_name: The name of the source container containing the blobs.
507
+ :param source_blob_name: The full source blob path without the container name.
508
+ :param destination_container_name: The name of the destination container where the blobs
509
+ will be copied to.
510
+ :param destination_blob_name: The full destination blob path without the container name.
511
+ """
512
+ source_blob_client = self._get_blob_client(
513
+ container_name=source_container_name, blob_name=source_blob_name
514
+ )
515
+ source_blob_url = source_blob_client.url
516
+
517
+ destination_blob_client = self._get_blob_client(
518
+ container_name=destination_container_name, blob_name=destination_blob_name
519
+ )
520
+
521
+ destination_blob_client.start_copy_from_url(source_blob_url)
522
+
496
523
  def delete_file(
497
524
  self,
498
525
  container_name: str,
@@ -104,16 +104,21 @@ class PowerBITrigger(BaseTrigger):
104
104
  dataset_id=self.dataset_id,
105
105
  group_id=self.group_id,
106
106
  )
107
+
108
+ async def fetch_refresh_status() -> str:
109
+ """Fetch the current status of the dataset refresh."""
110
+ refresh_details = await self.hook.get_refresh_details_by_refresh_id(
111
+ dataset_id=self.dataset_id,
112
+ group_id=self.group_id,
113
+ refresh_id=self.dataset_refresh_id,
114
+ )
115
+ return refresh_details["status"]
116
+
107
117
  try:
108
- dataset_refresh_status = None
118
+ dataset_refresh_status = await fetch_refresh_status()
109
119
  start_time = time.monotonic()
110
120
  while start_time + self.timeout > time.monotonic():
111
- refresh_details = await self.hook.get_refresh_details_by_refresh_id(
112
- dataset_id=self.dataset_id,
113
- group_id=self.group_id,
114
- refresh_id=self.dataset_refresh_id,
115
- )
116
- dataset_refresh_status = refresh_details.get("status")
121
+ dataset_refresh_status = await fetch_refresh_status()
117
122
 
118
123
  if dataset_refresh_status == PowerBIDatasetRefreshStatus.COMPLETED:
119
124
  yield TriggerEvent(
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: apache-airflow-providers-microsoft-azure
3
- Version: 11.0.0
3
+ Version: 11.1.0
4
4
  Summary: Provider package apache-airflow-providers-microsoft-azure for Apache Airflow
5
5
  Keywords: airflow-provider,microsoft.azure,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -52,8 +52,8 @@ Requires-Dist: apache-airflow-providers-google ; extra == "google"
52
52
  Requires-Dist: apache-airflow-providers-oracle ; extra == "oracle"
53
53
  Requires-Dist: apache-airflow-providers-sftp ; extra == "sftp"
54
54
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
55
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.0.0/changelog.html
56
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.0.0
55
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.1.0/changelog.html
56
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.1.0
57
57
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
58
58
  Project-URL: Source Code, https://github.com/apache/airflow
59
59
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
@@ -107,7 +107,7 @@ Provides-Extra: sftp
107
107
 
108
108
  Package ``apache-airflow-providers-microsoft-azure``
109
109
 
110
- Release: ``11.0.0``
110
+ Release: ``11.1.0``
111
111
 
112
112
 
113
113
  `Microsoft Azure <https://azure.microsoft.com/>`__
@@ -120,7 +120,7 @@ This is a provider package for ``microsoft.azure`` provider. All classes for thi
120
120
  are in ``airflow.providers.microsoft.azure`` python package.
121
121
 
122
122
  You can find package information and changelog for the provider
123
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.0.0/>`_.
123
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.1.0/>`_.
124
124
 
125
125
  Installation
126
126
  ------------
@@ -189,4 +189,4 @@ Dependent package
189
189
  ==================================================================================================== ==========
190
190
 
191
191
  The changelog for the provider package can be found in the
192
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.0.0/changelog.html>`_.
192
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/11.1.0/changelog.html>`_.
@@ -1,6 +1,6 @@
1
1
  airflow/providers/microsoft/azure/LICENSE,sha256=FFb4jd2AXnOOf7XLP04pQW6jbdhG49TxlGY6fFpCV1Y,13609
2
- airflow/providers/microsoft/azure/__init__.py,sha256=VqXq9vyknTgxm8MmB7UEQTM4TsCe7pV_g-X1LoxZveU,1503
3
- airflow/providers/microsoft/azure/get_provider_info.py,sha256=AdaKrGjbJ7T1sM2fgrrjFcjJaFAOMKx5dbWnzpx8Rvg,21819
2
+ airflow/providers/microsoft/azure/__init__.py,sha256=OzzgoAVBffv1_UwSHlF7Xwi82gswR2xPhjw4198poKY,1503
3
+ airflow/providers/microsoft/azure/get_provider_info.py,sha256=Qy5T32RdbAAFwPvKX_7iAxJgIiSoOeeO5jQCURC79Ao,21846
4
4
  airflow/providers/microsoft/azure/utils.py,sha256=pvBiwBKRYMtEnqkQWLTqvhrsCOkMTRiPH97GkIYHUQc,8429
5
5
  airflow/providers/microsoft/azure/fs/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
6
6
  airflow/providers/microsoft/azure/fs/adls.py,sha256=kXZOVulLNfqwJNR0X9MBN23kcYr3dyv8K_0KqAcWvnk,3679
@@ -19,7 +19,7 @@ airflow/providers/microsoft/azure/hooks/fileshare.py,sha256=jaHSD_xZxposSD5Fbdlp
19
19
  airflow/providers/microsoft/azure/hooks/msgraph.py,sha256=KUHfpwEIiYjEIuUKismgmhiDRsn2VKIFQOmj9AC99YA,15578
20
20
  airflow/providers/microsoft/azure/hooks/powerbi.py,sha256=TDigFDTxiaFou9GYBFQPLmKe1px5Mi3zzsjcjbFu1mo,7459
21
21
  airflow/providers/microsoft/azure/hooks/synapse.py,sha256=VNFLIA6T55_db9ZgwF6zMY2Ri5hpjOpvLL5zNt8019Y,16595
22
- airflow/providers/microsoft/azure/hooks/wasb.py,sha256=pIIjbsWoVRlcQkjbkktyuts1PN8g7Hmw1TJ1jovloHE,29724
22
+ airflow/providers/microsoft/azure/hooks/wasb.py,sha256=NKChczpWD1IJ45Wr8PQR9I5Y0VH6mdGkk593Q8MZS0I,30827
23
23
  airflow/providers/microsoft/azure/log/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
24
24
  airflow/providers/microsoft/azure/log/wasb_task_handler.py,sha256=SfiBAaNDyMUuwVy8oGSgISfdLnWS62YW-Y_Y6eWuTrA,8459
25
25
  airflow/providers/microsoft/azure/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
@@ -51,9 +51,9 @@ airflow/providers/microsoft/azure/transfers/sftp_to_wasb.py,sha256=bg_r8vRUgffIv
51
51
  airflow/providers/microsoft/azure/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
52
52
  airflow/providers/microsoft/azure/triggers/data_factory.py,sha256=UjSvsvN6bh0BZMw8QXr8f_67yETh6AymJpKJ7stCk4s,11138
53
53
  airflow/providers/microsoft/azure/triggers/msgraph.py,sha256=PSAyB93ajaM5lCBlm9gjxLatVPpWK_ZsRUAWw5SktRE,8617
54
- airflow/providers/microsoft/azure/triggers/powerbi.py,sha256=Il1vWMzHkXAHK1ZUGbpkgerIZLGMuGrq7w9NgM8sQIA,7338
54
+ airflow/providers/microsoft/azure/triggers/powerbi.py,sha256=ecBDVfJioMTmf3bG9mo4vFllFBKzzjYi_V2_k52A1sE,7504
55
55
  airflow/providers/microsoft/azure/triggers/wasb.py,sha256=PkCoOGGNpqOukIeHtgBGrCRPWn4aAOXA6eOOnobzVNw,7429
56
- apache_airflow_providers_microsoft_azure-11.0.0.dist-info/entry_points.txt,sha256=6iWHenOoUC3YZBb3OKn6g0HlJsV58Ba56i8USmQrcJI,111
57
- apache_airflow_providers_microsoft_azure-11.0.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
58
- apache_airflow_providers_microsoft_azure-11.0.0.dist-info/METADATA,sha256=ZpG78SzxfyYYhou_RINVADdFHMkUo6NbfjkQO9pgUsM,9034
59
- apache_airflow_providers_microsoft_azure-11.0.0.dist-info/RECORD,,
56
+ apache_airflow_providers_microsoft_azure-11.1.0.dist-info/entry_points.txt,sha256=6iWHenOoUC3YZBb3OKn6g0HlJsV58Ba56i8USmQrcJI,111
57
+ apache_airflow_providers_microsoft_azure-11.1.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
58
+ apache_airflow_providers_microsoft_azure-11.1.0.dist-info/METADATA,sha256=rGuV0m7Wy9-miv7QE9ltWqJNQHbxTI4P_aC6rW9ulqY,9034
59
+ apache_airflow_providers_microsoft_azure-11.1.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.9.0
2
+ Generator: flit 3.10.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any