@@ -110,6 +110,7 @@ def from_connection_string(cls, connection_string: str, **kwargs: Any) -> "Azure
110
110
.. code-block:: python
111
111
112
112
from azure.appconfiguration import AzureAppConfigurationClient
113
+
113
114
connection_str = "<my connection string>"
114
115
client = AzureAppConfigurationClient.from_connection_string(connection_str)
115
116
"""
@@ -123,7 +124,7 @@ def from_connection_string(cls, connection_string: str, **kwargs: Any) -> "Azure
123
124
)
124
125
125
126
@distributed_trace
126
- def send_request (self , request : HttpRequest , * , stream : bool = False , ** kwargs ) -> HttpResponse :
127
+ def send_request (self , request : HttpRequest , * , stream : bool = False , ** kwargs : Any ) -> HttpResponse :
127
128
"""Runs a network request using the client's existing pipeline.
128
129
129
130
The request URL can be relative to the vault URL. The service API version used for the request is the same as
@@ -212,7 +213,7 @@ def list_configuration_settings(
212
213
"""
213
214
214
215
@distributed_trace
215
- def list_configuration_settings (self , * args , ** kwargs ) -> ItemPaged [ConfigurationSetting ]:
216
+ def list_configuration_settings (self , * args : Optional [ str ] , ** kwargs : Any ) -> ItemPaged [ConfigurationSetting ]:
216
217
accept_datetime = kwargs .pop ("accept_datetime" , None )
217
218
if isinstance (accept_datetime , datetime ):
218
219
accept_datetime = str (accept_datetime )
@@ -252,7 +253,7 @@ def get_configuration_setting(
252
253
match_condition : MatchConditions = MatchConditions .Unconditionally ,
253
254
* ,
254
255
accept_datetime : Optional [Union [datetime , str ]] = None ,
255
- ** kwargs ,
256
+ ** kwargs : Any ,
256
257
) -> Union [None , ConfigurationSetting ]:
257
258
"""Get the matched ConfigurationSetting from Azure App Configuration service
258
259
@@ -308,7 +309,9 @@ def get_configuration_setting(
308
309
return None
309
310
310
311
@distributed_trace
311
- def add_configuration_setting (self , configuration_setting : ConfigurationSetting , ** kwargs ) -> ConfigurationSetting :
312
+ def add_configuration_setting (
313
+ self , configuration_setting : ConfigurationSetting , ** kwargs : Any
314
+ ) -> ConfigurationSetting :
312
315
"""Add a ConfigurationSetting instance into the Azure App Configuration service.
313
316
314
317
:param configuration_setting: The ConfigurationSetting object to be added
@@ -351,7 +354,7 @@ def set_configuration_setting(
351
354
match_condition : MatchConditions = MatchConditions .Unconditionally ,
352
355
* ,
353
356
etag : Optional [str ] = None ,
354
- ** kwargs ,
357
+ ** kwargs : Any ,
355
358
) -> ConfigurationSetting :
356
359
"""Add or update a ConfigurationSetting.
357
360
If the configuration setting identified by key and label does not exist, this is a create.
@@ -418,7 +421,7 @@ def delete_configuration_setting( # pylint:disable=delete-operation-wrong-retur
418
421
* ,
419
422
etag : Optional [str ] = None ,
420
423
match_condition : MatchConditions = MatchConditions .Unconditionally ,
421
- ** kwargs ,
424
+ ** kwargs : Any ,
422
425
) -> Union [None , ConfigurationSetting ]:
423
426
"""Delete a ConfigurationSetting if it exists
424
427
@@ -478,7 +481,7 @@ def list_revisions(
478
481
tags_filter : Optional [List [str ]] = None ,
479
482
accept_datetime : Optional [Union [datetime , str ]] = None ,
480
483
fields : Optional [List [Union [str , ConfigurationSettingFields ]]] = None ,
481
- ** kwargs ,
484
+ ** kwargs : Any ,
482
485
) -> ItemPaged [ConfigurationSetting ]:
483
486
"""
484
487
Find the ConfigurationSetting revision history, optionally filtered by key, label, tags and accept_datetime.
@@ -543,7 +546,7 @@ def set_read_only(
543
546
read_only : bool = True ,
544
547
* ,
545
548
match_condition : MatchConditions = MatchConditions .Unconditionally ,
546
- ** kwargs ,
549
+ ** kwargs : Any ,
547
550
) -> ConfigurationSetting :
548
551
"""Set a configuration setting read only
549
552
@@ -608,7 +611,7 @@ def list_labels(
608
611
after : Optional [str ] = None ,
609
612
accept_datetime : Optional [Union [datetime , str ]] = None ,
610
613
fields : Optional [List [Union [str , LabelFields ]]] = None ,
611
- ** kwargs ,
614
+ ** kwargs : Any ,
612
615
) -> ItemPaged [ConfigurationSettingLabel ]:
613
616
"""Gets a list of labels.
614
617
@@ -649,7 +652,7 @@ def begin_create_snapshot(
649
652
composition_type : Optional [Union [str , SnapshotComposition ]] = None ,
650
653
retention_period : Optional [int ] = None ,
651
654
tags : Optional [Dict [str , str ]] = None ,
652
- ** kwargs ,
655
+ ** kwargs : Any ,
653
656
) -> LROPoller [ConfigurationSnapshot ]:
654
657
"""Create a snapshot of the configuration settings.
655
658
@@ -692,7 +695,7 @@ def archive_snapshot(
692
695
* ,
693
696
match_condition : MatchConditions = MatchConditions .Unconditionally ,
694
697
etag : Optional [str ] = None ,
695
- ** kwargs ,
698
+ ** kwargs : Any ,
696
699
) -> ConfigurationSnapshot :
697
700
"""Archive a configuration setting snapshot. It will update the status of a snapshot from "ready" to "archived".
698
701
The retention period will start to count, the snapshot will expire when the entire retention period elapses.
@@ -733,7 +736,7 @@ def recover_snapshot(
733
736
* ,
734
737
match_condition : MatchConditions = MatchConditions .Unconditionally ,
735
738
etag : Optional [str ] = None ,
736
- ** kwargs ,
739
+ ** kwargs : Any ,
737
740
) -> ConfigurationSnapshot :
738
741
"""Recover a configuration setting snapshot. It will update the status of a snapshot from "archived" to "ready".
739
742
@@ -768,7 +771,7 @@ def recover_snapshot(
768
771
769
772
@distributed_trace
770
773
def get_snapshot (
771
- self , name : str , * , fields : Optional [List [Union [str , SnapshotFields ]]] = None , ** kwargs
774
+ self , name : str , * , fields : Optional [List [Union [str , SnapshotFields ]]] = None , ** kwargs : Any
772
775
) -> ConfigurationSnapshot :
773
776
"""Get a configuration setting snapshot.
774
777
@@ -793,7 +796,7 @@ def list_snapshots(
793
796
name : Optional [str ] = None ,
794
797
fields : Optional [List [Union [str , SnapshotFields ]]] = None ,
795
798
status : Optional [List [Union [str , SnapshotStatus ]]] = None ,
796
- ** kwargs ,
799
+ ** kwargs : Any ,
797
800
) -> ItemPaged [ConfigurationSnapshot ]:
798
801
"""List the configuration setting snapshots stored in the configuration service, optionally filtered by
799
802
snapshot name, snapshot status and fields to present in return.
0 commit comments