apache-airflow-providers-microsoft-azure 6.1.1__tar.gz → 6.1.2rc1__tar.gz

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.
Files changed (59) hide show
  1. {apache-airflow-providers-microsoft-azure-6.1.1/apache_airflow_providers_microsoft_azure.egg-info → apache-airflow-providers-microsoft-azure-6.1.2rc1}/PKG-INFO +28 -7
  2. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/README.rst +25 -3
  3. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/__init__.py +1 -1
  4. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/get_provider_info.py +11 -0
  5. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/adx.py +3 -3
  6. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/asb.py +25 -24
  7. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/base_azure.py +2 -2
  8. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/batch.py +14 -14
  9. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/container_instance.py +7 -7
  10. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/container_registry.py +2 -2
  11. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/container_volume.py +4 -4
  12. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/cosmos.py +5 -5
  13. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/data_factory.py +8 -8
  14. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/data_lake.py +39 -55
  15. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/fileshare.py +2 -2
  16. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/synapse.py +2 -2
  17. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/wasb.py +8 -8
  18. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/log/wasb_task_handler.py +5 -4
  19. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/adls.py +1 -1
  20. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/adx.py +6 -4
  21. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/asb.py +20 -35
  22. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/batch.py +2 -2
  23. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/container_instances.py +1 -1
  24. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/cosmos.py +4 -3
  25. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/secrets/key_vault.py +4 -4
  26. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/sensors/cosmos.py +2 -3
  27. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/sensors/data_factory.py +4 -2
  28. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/sensors/wasb.py +8 -4
  29. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/transfers/azure_blob_to_gcs.py +1 -5
  30. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/transfers/local_to_adls.py +1 -1
  31. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/transfers/oracle_to_azure_data_lake.py +4 -6
  32. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/transfers/sftp_to_wasb.py +3 -3
  33. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/triggers/data_factory.py +6 -8
  34. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1/apache_airflow_providers_microsoft_azure.egg-info}/PKG-INFO +28 -7
  35. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/apache_airflow_providers_microsoft_azure.egg-info/requires.txt +1 -1
  36. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/pyproject.toml +6 -5
  37. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/setup.cfg +4 -5
  38. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/setup.py +1 -1
  39. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/LICENSE +0 -0
  40. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/MANIFEST.in +0 -0
  41. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/NOTICE +0 -0
  42. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/hooks/__init__.py +0 -0
  43. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/log/__init__.py +0 -0
  44. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/__init__.py +0 -0
  45. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/data_factory.py +0 -0
  46. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/synapse.py +0 -0
  47. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/operators/wasb_delete_blob.py +0 -0
  48. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/secrets/__init__.py +0 -0
  49. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/sensors/__init__.py +0 -0
  50. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/transfers/__init__.py +0 -0
  51. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/transfers/local_to_wasb.py +0 -0
  52. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/triggers/__init__.py +0 -0
  53. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/triggers/wasb.py +0 -0
  54. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/airflow/providers/microsoft/azure/utils.py +0 -0
  55. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/apache_airflow_providers_microsoft_azure.egg-info/SOURCES.txt +0 -0
  56. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/apache_airflow_providers_microsoft_azure.egg-info/dependency_links.txt +0 -0
  57. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/apache_airflow_providers_microsoft_azure.egg-info/entry_points.txt +0 -0
  58. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/apache_airflow_providers_microsoft_azure.egg-info/not-zip-safe +0 -0
  59. {apache-airflow-providers-microsoft-azure-6.1.1 → apache-airflow-providers-microsoft-azure-6.1.2rc1}/apache_airflow_providers_microsoft_azure.egg-info/top_level.txt +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-microsoft-azure
3
- Version: 6.1.1
3
+ Version: 6.1.2rc1
4
4
  Summary: Provider for Apache Airflow. Implements apache-airflow-providers-microsoft-azure package
5
5
  Home-page: https://airflow.apache.org/
6
6
  Download-URL: https://archive.apache.org/dist/airflow/providers
7
7
  Author: Apache Software Foundation
8
8
  Author-email: dev@airflow.apache.org
9
9
  License: Apache License 2.0
10
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/6.1.1/
10
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/6.1.2/
11
11
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
12
12
  Project-URL: Source Code, https://github.com/apache/airflow
13
13
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
@@ -21,13 +21,12 @@ Classifier: Intended Audience :: System Administrators
21
21
  Classifier: Framework :: Apache Airflow
22
22
  Classifier: Framework :: Apache Airflow :: Provider
23
23
  Classifier: License :: OSI Approved :: Apache Software License
24
- Classifier: Programming Language :: Python :: 3.7
25
24
  Classifier: Programming Language :: Python :: 3.8
26
25
  Classifier: Programming Language :: Python :: 3.9
27
26
  Classifier: Programming Language :: Python :: 3.10
28
27
  Classifier: Programming Language :: Python :: 3.11
29
28
  Classifier: Topic :: System :: Monitoring
30
- Requires-Python: ~=3.7
29
+ Requires-Python: ~=3.8
31
30
  Description-Content-Type: text/x-rst
32
31
  Provides-Extra: google
33
32
  Provides-Extra: oracle
@@ -56,7 +55,7 @@ License-File: NOTICE
56
55
 
57
56
  Package ``apache-airflow-providers-microsoft-azure``
58
57
 
59
- Release: ``6.1.1``
58
+ Release: ``6.1.2rc1``
60
59
 
61
60
 
62
61
  `Microsoft Azure <https://azure.microsoft.com/>`__
@@ -69,7 +68,7 @@ This is a provider package for ``microsoft.azure`` provider. All classes for thi
69
68
  are in ``airflow.providers.microsoft.azure`` python package.
70
69
 
71
70
  You can find package information and changelog for the provider
72
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/6.1.1/>`_.
71
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/6.1.2/>`_.
73
72
 
74
73
 
75
74
  Installation
@@ -79,7 +78,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
79
78
  for the minimum Airflow version supported) via
80
79
  ``pip install apache-airflow-providers-microsoft-azure``
81
80
 
82
- The package supports the following python versions: 3.7,3.8,3.9,3.10,3.11
81
+ The package supports the following python versions: 3.8,3.9,3.10,3.11
83
82
 
84
83
  Requirements
85
84
  ------------
@@ -154,6 +153,28 @@ Dependent package
154
153
  Changelog
155
154
  ---------
156
155
 
156
+ 6.1.2
157
+ .....
158
+
159
+ .. note::
160
+ This release dropped support for Python 3.7
161
+
162
+ Misc
163
+ ~~~~
164
+
165
+ * ``Replace unicodecsv with standard csv library (#31693)``
166
+ * ``Removed unused variables in AzureBlobStorageToGCSOperator (#31765)``
167
+ * ``Remove Python 3.7 support (#30963)``
168
+ * ``Add docstring and signature for _read_remote_logs (#31623)``
169
+
170
+ .. Below changes are excluded from the changelog. Move them to
171
+ appropriate section above if needed. Do not delete the lines(!):
172
+ * ``Replace spelling directive with spelling:word-list (#31752)``
173
+ * ``Add D400 pydocstyle check - Microsoft provider only (#31425)``
174
+ * ``Add discoverability for triggers in provider.yaml (#31576)``
175
+ * ``Add note about dropping Python 3.7 for providers (#32015)``
176
+ * ``Microsoft provider docstring improvements (#31708)``
177
+
157
178
  6.1.1
158
179
  .....
159
180
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  Package ``apache-airflow-providers-microsoft-azure``
21
21
 
22
- Release: ``6.1.1``
22
+ Release: ``6.1.2rc1``
23
23
 
24
24
 
25
25
  `Microsoft Azure <https://azure.microsoft.com/>`__
@@ -32,7 +32,7 @@ This is a provider package for ``microsoft.azure`` provider. All classes for thi
32
32
  are in ``airflow.providers.microsoft.azure`` python package.
33
33
 
34
34
  You can find package information and changelog for the provider
35
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/6.1.1/>`_.
35
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/6.1.2/>`_.
36
36
 
37
37
 
38
38
  Installation
@@ -42,7 +42,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
42
42
  for the minimum Airflow version supported) via
43
43
  ``pip install apache-airflow-providers-microsoft-azure``
44
44
 
45
- The package supports the following python versions: 3.7,3.8,3.9,3.10,3.11
45
+ The package supports the following python versions: 3.8,3.9,3.10,3.11
46
46
 
47
47
  Requirements
48
48
  ------------
@@ -117,6 +117,28 @@ Dependent package
117
117
  Changelog
118
118
  ---------
119
119
 
120
+ 6.1.2
121
+ .....
122
+
123
+ .. note::
124
+ This release dropped support for Python 3.7
125
+
126
+ Misc
127
+ ~~~~
128
+
129
+ * ``Replace unicodecsv with standard csv library (#31693)``
130
+ * ``Removed unused variables in AzureBlobStorageToGCSOperator (#31765)``
131
+ * ``Remove Python 3.7 support (#30963)``
132
+ * ``Add docstring and signature for _read_remote_logs (#31623)``
133
+
134
+ .. Below changes are excluded from the changelog. Move them to
135
+ appropriate section above if needed. Do not delete the lines(!):
136
+ * ``Replace spelling directive with spelling:word-list (#31752)``
137
+ * ``Add D400 pydocstyle check - Microsoft provider only (#31425)``
138
+ * ``Add discoverability for triggers in provider.yaml (#31576)``
139
+ * ``Add note about dropping Python 3.7 for providers (#32015)``
140
+ * ``Microsoft provider docstring improvements (#31708)``
141
+
120
142
  6.1.1
121
143
  .....
122
144
 
@@ -28,7 +28,7 @@ import packaging.version
28
28
 
29
29
  __all__ = ["__version__"]
30
30
 
31
- __version__ = "6.1.1"
31
+ __version__ = "6.1.2"
32
32
 
33
33
  try:
34
34
  from airflow import __version__ as airflow_version
@@ -29,6 +29,7 @@ def get_provider_info():
29
29
  "description": "`Microsoft Azure <https://azure.microsoft.com/>`__\n",
30
30
  "suspended": False,
31
31
  "versions": [
32
+ "6.1.2",
32
33
  "6.1.1",
33
34
  "6.1.0",
34
35
  "6.0.0",
@@ -276,6 +277,16 @@ def get_provider_info():
276
277
  "python-modules": ["airflow.providers.microsoft.azure.hooks.synapse"],
277
278
  },
278
279
  ],
280
+ "triggers": [
281
+ {
282
+ "integration-name": "Microsoft Azure Data Factory",
283
+ "python-modules": ["airflow.providers.microsoft.azure.triggers.data_factory"],
284
+ },
285
+ {
286
+ "integration-name": "Microsoft Azure Blob Storage",
287
+ "python-modules": ["airflow.providers.microsoft.azure.triggers.wasb"],
288
+ },
289
+ ],
279
290
  "transfers": [
280
291
  {
281
292
  "source-integration-name": "Local",
@@ -18,7 +18,7 @@
18
18
  """
19
19
  This module contains Azure Data Explorer hook.
20
20
 
21
- .. spelling::
21
+ .. spelling:word-list::
22
22
 
23
23
  KustoResponseDataSetV
24
24
  kusto
@@ -78,7 +78,7 @@ class AzureDataExplorerHook(BaseHook):
78
78
 
79
79
  @staticmethod
80
80
  def get_connection_form_widgets() -> dict[str, Any]:
81
- """Returns connection widgets to add to connection form"""
81
+ """Returns connection widgets to add to connection form."""
82
82
  from flask_appbuilder.fieldwidgets import BS3PasswordFieldWidget, BS3TextFieldWidget
83
83
  from flask_babel import lazy_gettext
84
84
  from wtforms import PasswordField, StringField
@@ -97,7 +97,7 @@ class AzureDataExplorerHook(BaseHook):
97
97
  @staticmethod
98
98
  @_ensure_prefixes(conn_type="azure_data_explorer")
99
99
  def get_ui_field_behaviour() -> dict[str, Any]:
100
- """Returns custom field behaviour"""
100
+ """Returns custom field behaviour."""
101
101
  return {
102
102
  "hidden_fields": ["schema", "port", "extra"],
103
103
  "relabeling": {
@@ -26,7 +26,7 @@ from airflow.hooks.base import BaseHook
26
26
 
27
27
  class BaseAzureServiceBusHook(BaseHook):
28
28
  """
29
- BaseAzureServiceBusHook class to create session and create connection using connection string
29
+ BaseAzureServiceBusHook class to create session and create connection using connection string.
30
30
 
31
31
  :param azure_service_bus_conn_id: Reference to the
32
32
  :ref:`Azure Service Bus connection<howto/connection:azure_service_bus>`.
@@ -39,7 +39,7 @@ class BaseAzureServiceBusHook(BaseHook):
39
39
 
40
40
  @staticmethod
41
41
  def get_ui_field_behaviour() -> dict[str, Any]:
42
- """Returns custom field behaviour"""
42
+ """Returns custom field behaviour."""
43
43
  return {
44
44
  "hidden_fields": ["port", "host", "extra", "login", "password"],
45
45
  "relabeling": {"schema": "Connection String"},
@@ -57,17 +57,17 @@ class BaseAzureServiceBusHook(BaseHook):
57
57
 
58
58
 
59
59
  class AdminClientHook(BaseAzureServiceBusHook):
60
- """
61
- Interacts with ServiceBusAdministrationClient client
62
- to create, update, list, and delete resources of a
63
- Service Bus namespace. This hook uses the same Azure Service Bus client connection inherited
64
- from the base class
60
+ """Interact with the ServiceBusAdministrationClient.
61
+
62
+ This can create, update, list, and delete resources of a Service Bus
63
+ namespace. This hook uses the same Azure Service Bus client connection
64
+ inherited from the base class.
65
65
  """
66
66
 
67
67
  def get_conn(self) -> ServiceBusAdministrationClient:
68
- """
69
- Create and returns ServiceBusAdministrationClient by using the connection
70
- string in connection details
68
+ """Create a ServiceBusAdministrationClient instance.
69
+
70
+ This uses the connection string in connection details.
71
71
  """
72
72
  conn = self.get_connection(self.conn_id)
73
73
 
@@ -82,7 +82,7 @@ class AdminClientHook(BaseAzureServiceBusHook):
82
82
  enable_batched_operations: bool = True,
83
83
  ) -> QueueProperties:
84
84
  """
85
- Create Queue by connecting to service Bus Admin client return the QueueProperties
85
+ Create Queue by connecting to service Bus Admin client return the QueueProperties.
86
86
 
87
87
  :param queue_name: The name of the queue or a QueueProperties with name.
88
88
  :param max_delivery_count: The maximum delivery count. A message is automatically
@@ -106,7 +106,7 @@ class AdminClientHook(BaseAzureServiceBusHook):
106
106
 
107
107
  def delete_queue(self, queue_name: str) -> None:
108
108
  """
109
- Delete the queue by queue_name in service bus namespace
109
+ Delete the queue by queue_name in service bus namespace.
110
110
 
111
111
  :param queue_name: The name of the queue or a QueueProperties with name.
112
112
  """
@@ -118,7 +118,7 @@ class AdminClientHook(BaseAzureServiceBusHook):
118
118
 
119
119
  def delete_subscription(self, subscription_name: str, topic_name: str) -> None:
120
120
  """
121
- Delete a topic subscription entities under a ServiceBus Namespace
121
+ Delete a topic subscription entities under a ServiceBus Namespace.
122
122
 
123
123
  :param subscription_name: The subscription name that will own the rule in topic
124
124
  :param topic_name: The topic that will own the subscription rule.
@@ -134,13 +134,13 @@ class AdminClientHook(BaseAzureServiceBusHook):
134
134
 
135
135
 
136
136
  class MessageHook(BaseAzureServiceBusHook):
137
- """
138
- Interacts with ServiceBusClient and acts as a high level interface
139
- for getting ServiceBusSender and ServiceBusReceiver.
137
+ """Interact with ServiceBusClient.
138
+
139
+ This acts as a high level interface for getting ServiceBusSender and ServiceBusReceiver.
140
140
  """
141
141
 
142
142
  def get_conn(self) -> ServiceBusClient:
143
- """Create and returns ServiceBusClient by using the connection string in connection details"""
143
+ """Create and returns ServiceBusClient by using the connection string in connection details."""
144
144
  conn = self.get_connection(self.conn_id)
145
145
  connection_string: str = str(conn.schema)
146
146
 
@@ -148,9 +148,9 @@ class MessageHook(BaseAzureServiceBusHook):
148
148
  return ServiceBusClient.from_connection_string(conn_str=connection_string, logging_enable=True)
149
149
 
150
150
  def send_message(self, queue_name: str, messages: str | list[str], batch_message_flag: bool = False):
151
- """
152
- By using ServiceBusClient Send message(s) to a Service Bus Queue. By using
153
- batch_message_flag it enables and send message as batch message
151
+ """Use ServiceBusClient Send to send message(s) to a Service Bus Queue.
152
+
153
+ By using ``batch_message_flag``, it enables and send message as batch message.
154
154
 
155
155
  :param queue_name: The name of the queue or a QueueProperties with name.
156
156
  :param messages: Message which needs to be sent to the queue. It can be string or list of string.
@@ -193,7 +193,7 @@ class MessageHook(BaseAzureServiceBusHook):
193
193
  self, queue_name, max_message_count: int | None = 1, max_wait_time: float | None = None
194
194
  ):
195
195
  """
196
- Receive a batch of messages at once in a specified Queue name
196
+ Receive a batch of messages at once in a specified Queue name.
197
197
 
198
198
  :param queue_name: The name of the queue name or a QueueProperties with name.
199
199
  :param max_message_count: Maximum number of messages in the batch.
@@ -220,9 +220,10 @@ class MessageHook(BaseAzureServiceBusHook):
220
220
  max_message_count: int | None,
221
221
  max_wait_time: float | None,
222
222
  ):
223
- """
224
- Receive a batch of subscription message at once. This approach is optimal if you wish
225
- to process multiple messages simultaneously, or perform an ad-hoc receive as a single call.
223
+ """Receive a batch of subscription message at once.
224
+
225
+ This approach is optimal if you wish to process multiple messages
226
+ simultaneously, or perform an ad-hoc receive as a single call.
226
227
 
227
228
  :param subscription_name: The subscription name that will own the rule in topic
228
229
  :param topic_name: The topic that will own the subscription rule.
@@ -42,7 +42,7 @@ class AzureBaseHook(BaseHook):
42
42
 
43
43
  @staticmethod
44
44
  def get_connection_form_widgets() -> dict[str, Any]:
45
- """Returns connection widgets to add to connection form"""
45
+ """Returns connection widgets to add to connection form."""
46
46
  from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
47
47
  from flask_babel import lazy_gettext
48
48
  from wtforms import StringField
@@ -58,7 +58,7 @@ class AzureBaseHook(BaseHook):
58
58
 
59
59
  @staticmethod
60
60
  def get_ui_field_behaviour() -> dict[str, Any]:
61
- """Returns custom field behaviour"""
61
+ """Returns custom field behaviour."""
62
62
  import json
63
63
 
64
64
  return {
@@ -33,7 +33,7 @@ from airflow.utils import timezone
33
33
 
34
34
  class AzureBatchHook(BaseHook):
35
35
  """
36
- Hook for Azure Batch APIs
36
+ Hook for Azure Batch APIs.
37
37
 
38
38
  :param azure_batch_conn_id: :ref:`Azure Batch connection id<howto/connection:azure_batch>`
39
39
  of a service principal which will be used to start the container instance.
@@ -54,7 +54,7 @@ class AzureBatchHook(BaseHook):
54
54
 
55
55
  @staticmethod
56
56
  def get_connection_form_widgets() -> dict[str, Any]:
57
- """Returns connection widgets to add to connection form"""
57
+ """Returns connection widgets to add to connection form."""
58
58
  from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
59
59
  from flask_babel import lazy_gettext
60
60
  from wtforms import StringField
@@ -65,7 +65,7 @@ class AzureBatchHook(BaseHook):
65
65
 
66
66
  @staticmethod
67
67
  def get_ui_field_behaviour() -> dict[str, Any]:
68
- """Returns custom field behaviour"""
68
+ """Returns custom field behaviour."""
69
69
  return {
70
70
  "hidden_fields": ["schema", "port", "host", "extra"],
71
71
  "relabeling": {
@@ -80,13 +80,13 @@ class AzureBatchHook(BaseHook):
80
80
  self.connection = self.get_conn()
81
81
 
82
82
  def _connection(self) -> Connection:
83
- """Get connected to Azure Batch service"""
83
+ """Get connected to Azure Batch service."""
84
84
  conn = self.get_connection(self.conn_id)
85
85
  return conn
86
86
 
87
87
  def get_conn(self):
88
88
  """
89
- Get the Batch client connection
89
+ Get the Batch client connection.
90
90
 
91
91
  :return: Azure Batch client
92
92
  """
@@ -118,7 +118,7 @@ class AzureBatchHook(BaseHook):
118
118
  **kwargs,
119
119
  ) -> PoolAddParameter:
120
120
  """
121
- Configures a pool
121
+ Configures a pool.
122
122
 
123
123
  :param pool_id: A string that uniquely identifies the Pool within the Account
124
124
 
@@ -203,7 +203,7 @@ class AzureBatchHook(BaseHook):
203
203
 
204
204
  def create_pool(self, pool: PoolAddParameter) -> None:
205
205
  """
206
- Creates a pool if not already existing
206
+ Creates a pool if not already existing.
207
207
 
208
208
  :param pool: the pool object to create
209
209
 
@@ -225,7 +225,7 @@ class AzureBatchHook(BaseHook):
225
225
  sku_starts_with: str | None = None,
226
226
  ) -> tuple:
227
227
  """
228
- Get latest verified image vm and sku
228
+ Get latest verified image vm and sku.
229
229
 
230
230
  :param publisher: The publisher of the Azure Virtual Machines Marketplace Image.
231
231
  For example, Canonical or MicrosoftWindowsServer.
@@ -250,7 +250,7 @@ class AzureBatchHook(BaseHook):
250
250
 
251
251
  def wait_for_all_node_state(self, pool_id: str, node_state: set) -> list:
252
252
  """
253
- Wait for all nodes in a pool to reach given states
253
+ Wait for all nodes in a pool to reach given states.
254
254
 
255
255
  :param pool_id: A string that identifies the pool
256
256
  :param node_state: A set of batch_models.ComputeNodeState
@@ -278,7 +278,7 @@ class AzureBatchHook(BaseHook):
278
278
  **kwargs,
279
279
  ) -> JobAddParameter:
280
280
  """
281
- Configures a job for use in the pool
281
+ Configures a job for use in the pool.
282
282
 
283
283
  :param job_id: A string that uniquely identifies the job within the account
284
284
  :param pool_id: A string that identifies the pool
@@ -294,7 +294,7 @@ class AzureBatchHook(BaseHook):
294
294
 
295
295
  def create_job(self, job: JobAddParameter) -> None:
296
296
  """
297
- Creates a job in the pool
297
+ Creates a job in the pool.
298
298
 
299
299
  :param job: The job object to create
300
300
  """
@@ -316,7 +316,7 @@ class AzureBatchHook(BaseHook):
316
316
  **kwargs,
317
317
  ) -> TaskAddParameter:
318
318
  """
319
- Creates a task
319
+ Creates a task.
320
320
 
321
321
  :param task_id: A string that identifies the task to create
322
322
  :param command_line: The command line of the Task.
@@ -338,7 +338,7 @@ class AzureBatchHook(BaseHook):
338
338
 
339
339
  def add_single_task_to_job(self, job_id: str, task: TaskAddParameter) -> None:
340
340
  """
341
- Add a single task to given job if it doesn't exist
341
+ Add a single task to given job if it doesn't exist.
342
342
 
343
343
  :param job_id: A string that identifies the given job
344
344
  :param task: The task to add
@@ -354,7 +354,7 @@ class AzureBatchHook(BaseHook):
354
354
 
355
355
  def wait_for_job_tasks_to_complete(self, job_id: str, timeout: int) -> list[batch_models.CloudTask]:
356
356
  """
357
- Wait for tasks in a particular job to complete
357
+ Wait for tasks in a particular job to complete.
358
358
 
359
359
  :param job_id: A string that identifies the job
360
360
  :param timeout: The amount of time to wait before timing out in minutes
@@ -51,7 +51,7 @@ class AzureContainerInstanceHook(AzureBaseHook):
51
51
 
52
52
  def create_or_update(self, resource_group: str, name: str, container_group: ContainerGroup) -> None:
53
53
  """
54
- Create a new container group
54
+ Create a new container group.
55
55
 
56
56
  :param resource_group: the name of the resource group
57
57
  :param name: the name of the container group
@@ -61,7 +61,7 @@ class AzureContainerInstanceHook(AzureBaseHook):
61
61
 
62
62
  def get_state_exitcode_details(self, resource_group: str, name: str) -> tuple:
63
63
  """
64
- Get the state and exitcode of a container group
64
+ Get the state and exitcode of a container group.
65
65
 
66
66
  :param resource_group: the name of the resource group
67
67
  :param name: the name of the container group
@@ -79,7 +79,7 @@ class AzureContainerInstanceHook(AzureBaseHook):
79
79
 
80
80
  def get_messages(self, resource_group: str, name: str) -> list:
81
81
  """
82
- Get the messages of a container group
82
+ Get the messages of a container group.
83
83
 
84
84
  :param resource_group: the name of the resource group
85
85
  :param name: the name of the container group
@@ -96,7 +96,7 @@ class AzureContainerInstanceHook(AzureBaseHook):
96
96
 
97
97
  def get_state(self, resource_group: str, name: str) -> ContainerGroup:
98
98
  """
99
- Get the state of a container group
99
+ Get the state of a container group.
100
100
 
101
101
  :param resource_group: the name of the resource group
102
102
  :param name: the name of the container group
@@ -106,7 +106,7 @@ class AzureContainerInstanceHook(AzureBaseHook):
106
106
 
107
107
  def get_logs(self, resource_group: str, name: str, tail: int = 1000) -> list:
108
108
  """
109
- Get the tail from logs of a container group
109
+ Get the tail from logs of a container group.
110
110
 
111
111
  :param resource_group: the name of the resource group
112
112
  :param name: the name of the container group
@@ -118,7 +118,7 @@ class AzureContainerInstanceHook(AzureBaseHook):
118
118
 
119
119
  def delete(self, resource_group: str, name: str) -> None:
120
120
  """
121
- Delete a container group
121
+ Delete a container group.
122
122
 
123
123
  :param resource_group: the name of the resource group
124
124
  :param name: the name of the container group
@@ -127,7 +127,7 @@ class AzureContainerInstanceHook(AzureBaseHook):
127
127
 
128
128
  def exists(self, resource_group: str, name: str) -> bool:
129
129
  """
130
- Test if a container group exists
130
+ Test if a container group exists.
131
131
 
132
132
  :param resource_group: the name of the resource group
133
133
  :param name: the name of the container group
@@ -15,7 +15,7 @@
15
15
  # KIND, either express or implied. See the License for the
16
16
  # specific language governing permissions and limitations
17
17
  # under the License.
18
- """Hook for Azure Container Registry"""
18
+ """Hook for Azure Container Registry."""
19
19
  from __future__ import annotations
20
20
 
21
21
  from typing import Any
@@ -41,7 +41,7 @@ class AzureContainerRegistryHook(BaseHook):
41
41
 
42
42
  @staticmethod
43
43
  def get_ui_field_behaviour() -> dict[str, Any]:
44
- """Returns custom field behaviour"""
44
+ """Returns custom field behaviour."""
45
45
  return {
46
46
  "hidden_fields": ["schema", "port", "extra"],
47
47
  "relabeling": {
@@ -53,7 +53,7 @@ class AzureContainerVolumeHook(BaseHook):
53
53
 
54
54
  @staticmethod
55
55
  def get_connection_form_widgets() -> dict[str, Any]:
56
- """Returns connection widgets to add to connection form"""
56
+ """Returns connection widgets to add to connection form."""
57
57
  from flask_appbuilder.fieldwidgets import BS3PasswordFieldWidget
58
58
  from flask_babel import lazy_gettext
59
59
  from wtforms import PasswordField
@@ -67,7 +67,7 @@ class AzureContainerVolumeHook(BaseHook):
67
67
  @staticmethod
68
68
  @_ensure_prefixes(conn_type="azure_container_volume")
69
69
  def get_ui_field_behaviour() -> dict[str, Any]:
70
- """Returns custom field behaviour"""
70
+ """Returns custom field behaviour."""
71
71
  return {
72
72
  "hidden_fields": ["schema", "port", "host", "extra"],
73
73
  "relabeling": {
@@ -82,7 +82,7 @@ class AzureContainerVolumeHook(BaseHook):
82
82
  }
83
83
 
84
84
  def get_storagekey(self) -> str:
85
- """Get Azure File Volume storage key"""
85
+ """Get Azure File Volume storage key."""
86
86
  conn = self.get_connection(self.conn_id)
87
87
  extras = conn.extra_dejson
88
88
  connection_string = self._get_field(extras, "connection_string")
@@ -96,7 +96,7 @@ class AzureContainerVolumeHook(BaseHook):
96
96
  def get_file_volume(
97
97
  self, mount_name: str, share_name: str, storage_account_name: str, read_only: bool = False
98
98
  ) -> Volume:
99
- """Get Azure File Volume"""
99
+ """Get Azure File Volume."""
100
100
  return Volume(
101
101
  name=mount_name,
102
102
  azure_file=AzureFileVolume(
@@ -56,7 +56,7 @@ class AzureCosmosDBHook(BaseHook):
56
56
 
57
57
  @staticmethod
58
58
  def get_connection_form_widgets() -> dict[str, Any]:
59
- """Returns connection widgets to add to connection form"""
59
+ """Returns connection widgets to add to connection form."""
60
60
  from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
61
61
  from flask_babel import lazy_gettext
62
62
  from wtforms import StringField
@@ -73,7 +73,7 @@ class AzureCosmosDBHook(BaseHook):
73
73
  @staticmethod
74
74
  @_ensure_prefixes(conn_type="azure_cosmos") # todo: remove when min airflow version >= 2.5
75
75
  def get_ui_field_behaviour() -> dict[str, Any]:
76
- """Returns custom field behaviour"""
76
+ """Returns custom field behaviour."""
77
77
  return {
78
78
  "hidden_fields": ["schema", "port", "host", "extra"],
79
79
  "relabeling": {
@@ -357,15 +357,15 @@ class AzureCosmosDBHook(BaseHook):
357
357
 
358
358
 
359
359
  def get_database_link(database_id: str) -> str:
360
- """Get Azure CosmosDB database link"""
360
+ """Get Azure CosmosDB database link."""
361
361
  return "dbs/" + database_id
362
362
 
363
363
 
364
364
  def get_collection_link(database_id: str, collection_id: str) -> str:
365
- """Get Azure CosmosDB collection link"""
365
+ """Get Azure CosmosDB collection link."""
366
366
  return get_database_link(database_id) + "/colls/" + collection_id
367
367
 
368
368
 
369
369
  def get_document_link(database_id: str, collection_id: str, document_id: str) -> str:
370
- """Get Azure CosmosDB document link"""
370
+ """Get Azure CosmosDB document link."""
371
371
  return get_collection_link(database_id, collection_id) + "/docs/" + document_id