openmeter 1.0.0b134__py3-none-any.whl → 1.0.0b136__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.
- openmeter/_operations/_operations.py +181 -93
- openmeter/aio/_operations/_operations.py +134 -75
- {openmeter-1.0.0b134.dist-info → openmeter-1.0.0b136.dist-info}/METADATA +1 -1
- {openmeter-1.0.0b134.dist-info → openmeter-1.0.0b136.dist-info}/RECORD +5 -5
- {openmeter-1.0.0b134.dist-info → openmeter-1.0.0b136.dist-info}/WHEEL +0 -0
|
@@ -876,7 +876,14 @@ def build_get_debug_metrics_request(**kwargs: Any) -> HttpRequest:
|
|
|
876
876
|
|
|
877
877
|
|
|
878
878
|
def build_list_notification_channels_request(
|
|
879
|
-
*,
|
|
879
|
+
*,
|
|
880
|
+
page: int = 1,
|
|
881
|
+
page_size: int = 100,
|
|
882
|
+
order_by: str = "id",
|
|
883
|
+
order: str = "ASC",
|
|
884
|
+
include_disabled: bool = False,
|
|
885
|
+
include_deleted: bool = False,
|
|
886
|
+
**kwargs: Any
|
|
880
887
|
) -> HttpRequest:
|
|
881
888
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
882
889
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
|
@@ -887,14 +894,18 @@ def build_list_notification_channels_request(
|
|
|
887
894
|
_url = "/api/v1/notification/channels"
|
|
888
895
|
|
|
889
896
|
# Construct parameters
|
|
890
|
-
if
|
|
891
|
-
_params["
|
|
892
|
-
if
|
|
893
|
-
_params["
|
|
897
|
+
if page is not None:
|
|
898
|
+
_params["page"] = _SERIALIZER.query("page", page, "int", minimum=1)
|
|
899
|
+
if page_size is not None:
|
|
900
|
+
_params["pageSize"] = _SERIALIZER.query("page_size", page_size, "int", maximum=1000, minimum=1)
|
|
894
901
|
if order_by is not None:
|
|
895
902
|
_params["orderBy"] = _SERIALIZER.query("order_by", order_by, "str")
|
|
903
|
+
if order is not None:
|
|
904
|
+
_params["order"] = _SERIALIZER.query("order", order, "str")
|
|
896
905
|
if include_disabled is not None:
|
|
897
906
|
_params["includeDisabled"] = _SERIALIZER.query("include_disabled", include_disabled, "bool")
|
|
907
|
+
if include_deleted is not None:
|
|
908
|
+
_params["includeDeleted"] = _SERIALIZER.query("include_deleted", include_deleted, "bool")
|
|
898
909
|
|
|
899
910
|
# Construct headers
|
|
900
911
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
@@ -985,11 +996,14 @@ def build_update_notification_channel_request( # pylint: disable=name-too-long
|
|
|
985
996
|
|
|
986
997
|
def build_list_notification_rules_request(
|
|
987
998
|
*,
|
|
988
|
-
|
|
989
|
-
|
|
999
|
+
page: int = 1,
|
|
1000
|
+
page_size: int = 100,
|
|
990
1001
|
order_by: str = "id",
|
|
1002
|
+
order: str = "ASC",
|
|
991
1003
|
include_disabled: bool = False,
|
|
1004
|
+
include_deleted: bool = False,
|
|
992
1005
|
feature: Optional[List[str]] = None,
|
|
1006
|
+
channel: Optional[List[str]] = None,
|
|
993
1007
|
**kwargs: Any
|
|
994
1008
|
) -> HttpRequest:
|
|
995
1009
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
|
@@ -1001,16 +1015,22 @@ def build_list_notification_rules_request(
|
|
|
1001
1015
|
_url = "/api/v1/notification/rules"
|
|
1002
1016
|
|
|
1003
1017
|
# Construct parameters
|
|
1004
|
-
if
|
|
1005
|
-
_params["
|
|
1006
|
-
if
|
|
1007
|
-
_params["
|
|
1018
|
+
if page is not None:
|
|
1019
|
+
_params["page"] = _SERIALIZER.query("page", page, "int", minimum=1)
|
|
1020
|
+
if page_size is not None:
|
|
1021
|
+
_params["pageSize"] = _SERIALIZER.query("page_size", page_size, "int", maximum=1000, minimum=1)
|
|
1008
1022
|
if order_by is not None:
|
|
1009
1023
|
_params["orderBy"] = _SERIALIZER.query("order_by", order_by, "str")
|
|
1024
|
+
if order is not None:
|
|
1025
|
+
_params["order"] = _SERIALIZER.query("order", order, "str")
|
|
1010
1026
|
if include_disabled is not None:
|
|
1011
1027
|
_params["includeDisabled"] = _SERIALIZER.query("include_disabled", include_disabled, "bool")
|
|
1028
|
+
if include_deleted is not None:
|
|
1029
|
+
_params["includeDeleted"] = _SERIALIZER.query("include_deleted", include_deleted, "bool")
|
|
1012
1030
|
if feature is not None:
|
|
1013
1031
|
_params["feature"] = _SERIALIZER.query("feature", feature, "[str]")
|
|
1032
|
+
if channel is not None:
|
|
1033
|
+
_params["channel"] = _SERIALIZER.query("channel", channel, "[str]")
|
|
1014
1034
|
|
|
1015
1035
|
# Construct headers
|
|
1016
1036
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
|
@@ -1097,9 +1117,12 @@ def build_update_notification_rule_request(rule_id: str, **kwargs: Any) -> HttpR
|
|
|
1097
1117
|
|
|
1098
1118
|
def build_list_notification_events_request(
|
|
1099
1119
|
*,
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
order_by: str = "
|
|
1120
|
+
page: int = 1,
|
|
1121
|
+
page_size: int = 100,
|
|
1122
|
+
order_by: str = "createdAt",
|
|
1123
|
+
order: str = "ASC",
|
|
1124
|
+
from_parameter: Optional[datetime.datetime] = None,
|
|
1125
|
+
to: Optional[datetime.datetime] = None,
|
|
1103
1126
|
feature: Optional[List[str]] = None,
|
|
1104
1127
|
subject: Optional[List[str]] = None,
|
|
1105
1128
|
**kwargs: Any
|
|
@@ -1113,12 +1136,18 @@ def build_list_notification_events_request(
|
|
|
1113
1136
|
_url = "/api/v1/notification/events"
|
|
1114
1137
|
|
|
1115
1138
|
# Construct parameters
|
|
1116
|
-
if
|
|
1117
|
-
_params["
|
|
1118
|
-
if
|
|
1119
|
-
_params["
|
|
1139
|
+
if page is not None:
|
|
1140
|
+
_params["page"] = _SERIALIZER.query("page", page, "int", minimum=1)
|
|
1141
|
+
if page_size is not None:
|
|
1142
|
+
_params["pageSize"] = _SERIALIZER.query("page_size", page_size, "int", maximum=1000, minimum=1)
|
|
1120
1143
|
if order_by is not None:
|
|
1121
1144
|
_params["orderBy"] = _SERIALIZER.query("order_by", order_by, "str")
|
|
1145
|
+
if order is not None:
|
|
1146
|
+
_params["order"] = _SERIALIZER.query("order", order, "str")
|
|
1147
|
+
if from_parameter is not None:
|
|
1148
|
+
_params["from"] = _SERIALIZER.query("from_parameter", from_parameter, "iso-8601")
|
|
1149
|
+
if to is not None:
|
|
1150
|
+
_params["to"] = _SERIALIZER.query("to", to, "iso-8601")
|
|
1122
1151
|
if feature is not None:
|
|
1123
1152
|
_params["feature"] = _SERIALIZER.query("feature", feature, "[str]")
|
|
1124
1153
|
if subject is not None:
|
|
@@ -5358,32 +5387,51 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5358
5387
|
|
|
5359
5388
|
@distributed_trace
|
|
5360
5389
|
def list_notification_channels(
|
|
5361
|
-
self,
|
|
5362
|
-
|
|
5390
|
+
self,
|
|
5391
|
+
*,
|
|
5392
|
+
page: int = 1,
|
|
5393
|
+
page_size: int = 100,
|
|
5394
|
+
order_by: str = "id",
|
|
5395
|
+
order: str = "ASC",
|
|
5396
|
+
include_disabled: bool = False,
|
|
5397
|
+
include_deleted: bool = False,
|
|
5398
|
+
**kwargs: Any
|
|
5399
|
+
) -> JSON:
|
|
5363
5400
|
"""List notification channels.
|
|
5364
5401
|
|
|
5365
5402
|
List all notification channels.
|
|
5366
5403
|
|
|
5367
|
-
:keyword
|
|
5368
|
-
:paramtype
|
|
5369
|
-
:keyword
|
|
5370
|
-
:paramtype
|
|
5404
|
+
:keyword page: Page number to return. Default value is 1.
|
|
5405
|
+
:paramtype page: int
|
|
5406
|
+
:keyword page_size: Number of entries to return per page. Default value is 100.
|
|
5407
|
+
:paramtype page_size: int
|
|
5371
5408
|
:keyword order_by: Order by field. Known values are: "id", "type", "createdAt", and
|
|
5372
5409
|
"updatedAt". Default value is "id".
|
|
5373
5410
|
:paramtype order_by: str
|
|
5411
|
+
:keyword order: Order by field.
|
|
5412
|
+
|
|
5413
|
+
Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
|
|
5414
|
+
:paramtype order: str
|
|
5374
5415
|
:keyword include_disabled: Include disabled entries. Default value is False.
|
|
5375
5416
|
:paramtype include_disabled: bool
|
|
5376
|
-
:
|
|
5377
|
-
:
|
|
5417
|
+
:keyword include_deleted: Include deleted entries. Default value is False.
|
|
5418
|
+
:paramtype include_deleted: bool
|
|
5419
|
+
:return: JSON object
|
|
5420
|
+
:rtype: JSON
|
|
5378
5421
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5379
5422
|
|
|
5380
5423
|
Example:
|
|
5381
5424
|
.. code-block:: python
|
|
5382
5425
|
|
|
5383
5426
|
# response body for status code(s): 200
|
|
5384
|
-
response ==
|
|
5385
|
-
|
|
5386
|
-
|
|
5427
|
+
response == {
|
|
5428
|
+
"items": [
|
|
5429
|
+
{}
|
|
5430
|
+
],
|
|
5431
|
+
"page": 0, # Current page number. Required.
|
|
5432
|
+
"pageSize": 0, # Number of channels per page. Required.
|
|
5433
|
+
"totalCount": 0 # Total number of channels. Required.
|
|
5434
|
+
}
|
|
5387
5435
|
"""
|
|
5388
5436
|
error_map = {
|
|
5389
5437
|
404: ResourceNotFoundError,
|
|
@@ -5397,13 +5445,15 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5397
5445
|
_headers = kwargs.pop("headers", {}) or {}
|
|
5398
5446
|
_params = kwargs.pop("params", {}) or {}
|
|
5399
5447
|
|
|
5400
|
-
cls: ClsType[
|
|
5448
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
5401
5449
|
|
|
5402
5450
|
_request = build_list_notification_channels_request(
|
|
5403
|
-
|
|
5404
|
-
|
|
5451
|
+
page=page,
|
|
5452
|
+
page_size=page_size,
|
|
5405
5453
|
order_by=order_by,
|
|
5454
|
+
order=order,
|
|
5406
5455
|
include_disabled=include_disabled,
|
|
5456
|
+
include_deleted=include_deleted,
|
|
5407
5457
|
headers=_headers,
|
|
5408
5458
|
params=_params,
|
|
5409
5459
|
)
|
|
@@ -5428,9 +5478,9 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5428
5478
|
deserialized = None
|
|
5429
5479
|
|
|
5430
5480
|
if cls:
|
|
5431
|
-
return cls(pipeline_response, cast(
|
|
5481
|
+
return cls(pipeline_response, cast(JSON, deserialized), {}) # type: ignore
|
|
5432
5482
|
|
|
5433
|
-
return cast(
|
|
5483
|
+
return cast(JSON, deserialized) # type: ignore
|
|
5434
5484
|
|
|
5435
5485
|
@overload
|
|
5436
5486
|
def create_notification_channel(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> JSON:
|
|
@@ -5841,41 +5891,59 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5841
5891
|
def list_notification_rules(
|
|
5842
5892
|
self,
|
|
5843
5893
|
*,
|
|
5844
|
-
|
|
5845
|
-
|
|
5894
|
+
page: int = 1,
|
|
5895
|
+
page_size: int = 100,
|
|
5846
5896
|
order_by: str = "id",
|
|
5897
|
+
order: str = "ASC",
|
|
5847
5898
|
include_disabled: bool = False,
|
|
5899
|
+
include_deleted: bool = False,
|
|
5848
5900
|
feature: Optional[List[str]] = None,
|
|
5901
|
+
channel: Optional[List[str]] = None,
|
|
5849
5902
|
**kwargs: Any
|
|
5850
|
-
) ->
|
|
5903
|
+
) -> JSON:
|
|
5851
5904
|
"""List notification rules.
|
|
5852
5905
|
|
|
5853
5906
|
List all notification rules.
|
|
5854
5907
|
|
|
5855
|
-
:keyword
|
|
5856
|
-
:paramtype
|
|
5857
|
-
:keyword
|
|
5858
|
-
:paramtype
|
|
5908
|
+
:keyword page: Page number to return. Default value is 1.
|
|
5909
|
+
:paramtype page: int
|
|
5910
|
+
:keyword page_size: Number of entries to return per page. Default value is 100.
|
|
5911
|
+
:paramtype page_size: int
|
|
5859
5912
|
:keyword order_by: Order by field. Known values are: "id", "type", "createdAt", and
|
|
5860
5913
|
"updatedAt". Default value is "id".
|
|
5861
5914
|
:paramtype order_by: str
|
|
5915
|
+
:keyword order: Order by field.
|
|
5916
|
+
|
|
5917
|
+
Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
|
|
5918
|
+
:paramtype order: str
|
|
5862
5919
|
:keyword include_disabled: Include disabled entries. Default value is False.
|
|
5863
5920
|
:paramtype include_disabled: bool
|
|
5921
|
+
:keyword include_deleted: Include deleted entries. Default value is False.
|
|
5922
|
+
:paramtype include_deleted: bool
|
|
5864
5923
|
:keyword feature: Filtering by multiple features.
|
|
5865
5924
|
|
|
5866
5925
|
Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
|
|
5867
5926
|
:paramtype feature: list[str]
|
|
5868
|
-
:
|
|
5869
|
-
|
|
5927
|
+
:keyword channel: Filtering by multiple notification channels.
|
|
5928
|
+
|
|
5929
|
+
Usage: ``?channel=channel-1&channel=channel-2``. Default value is None.
|
|
5930
|
+
:paramtype channel: list[str]
|
|
5931
|
+
:return: JSON object
|
|
5932
|
+
:rtype: JSON
|
|
5870
5933
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5871
5934
|
|
|
5872
5935
|
Example:
|
|
5873
5936
|
.. code-block:: python
|
|
5874
5937
|
|
|
5875
5938
|
# response body for status code(s): 200
|
|
5876
|
-
response ==
|
|
5877
|
-
|
|
5878
|
-
|
|
5939
|
+
response == {
|
|
5940
|
+
"items": [
|
|
5941
|
+
{}
|
|
5942
|
+
],
|
|
5943
|
+
"page": 0, # Current page number. Required.
|
|
5944
|
+
"pageSize": 0, # Number of rules per page. Required.
|
|
5945
|
+
"totalCount": 0 # Total number of rules. Required.
|
|
5946
|
+
}
|
|
5879
5947
|
"""
|
|
5880
5948
|
error_map = {
|
|
5881
5949
|
404: ResourceNotFoundError,
|
|
@@ -5889,14 +5957,17 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5889
5957
|
_headers = kwargs.pop("headers", {}) or {}
|
|
5890
5958
|
_params = kwargs.pop("params", {}) or {}
|
|
5891
5959
|
|
|
5892
|
-
cls: ClsType[
|
|
5960
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
5893
5961
|
|
|
5894
5962
|
_request = build_list_notification_rules_request(
|
|
5895
|
-
|
|
5896
|
-
|
|
5963
|
+
page=page,
|
|
5964
|
+
page_size=page_size,
|
|
5897
5965
|
order_by=order_by,
|
|
5966
|
+
order=order,
|
|
5898
5967
|
include_disabled=include_disabled,
|
|
5968
|
+
include_deleted=include_deleted,
|
|
5899
5969
|
feature=feature,
|
|
5970
|
+
channel=channel,
|
|
5900
5971
|
headers=_headers,
|
|
5901
5972
|
params=_params,
|
|
5902
5973
|
)
|
|
@@ -5921,9 +5992,9 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5921
5992
|
deserialized = None
|
|
5922
5993
|
|
|
5923
5994
|
if cls:
|
|
5924
|
-
return cls(pipeline_response, cast(
|
|
5995
|
+
return cls(pipeline_response, cast(JSON, deserialized), {}) # type: ignore
|
|
5925
5996
|
|
|
5926
|
-
return cast(
|
|
5997
|
+
return cast(JSON, deserialized) # type: ignore
|
|
5927
5998
|
|
|
5928
5999
|
@overload
|
|
5929
6000
|
def create_notification_rule(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> JSON:
|
|
@@ -6334,24 +6405,37 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
6334
6405
|
def list_notification_events(
|
|
6335
6406
|
self,
|
|
6336
6407
|
*,
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
order_by: str = "
|
|
6408
|
+
page: int = 1,
|
|
6409
|
+
page_size: int = 100,
|
|
6410
|
+
order_by: str = "createdAt",
|
|
6411
|
+
order: str = "ASC",
|
|
6412
|
+
from_parameter: Optional[datetime.datetime] = None,
|
|
6413
|
+
to: Optional[datetime.datetime] = None,
|
|
6340
6414
|
feature: Optional[List[str]] = None,
|
|
6341
6415
|
subject: Optional[List[str]] = None,
|
|
6342
6416
|
**kwargs: Any
|
|
6343
|
-
) ->
|
|
6417
|
+
) -> JSON:
|
|
6344
6418
|
"""List notification evens.
|
|
6345
6419
|
|
|
6346
6420
|
List all notification events.
|
|
6347
6421
|
|
|
6348
|
-
:keyword
|
|
6349
|
-
:paramtype
|
|
6350
|
-
:keyword
|
|
6351
|
-
:paramtype
|
|
6422
|
+
:keyword page: Page number to return. Default value is 1.
|
|
6423
|
+
:paramtype page: int
|
|
6424
|
+
:keyword page_size: Number of entries to return per page. Default value is 100.
|
|
6425
|
+
:paramtype page_size: int
|
|
6352
6426
|
:keyword order_by: Order by field. Known values are: "id" and "createdAt". Default value is
|
|
6353
|
-
"
|
|
6427
|
+
"createdAt".
|
|
6354
6428
|
:paramtype order_by: str
|
|
6429
|
+
:keyword order: Order by field.
|
|
6430
|
+
|
|
6431
|
+
Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
|
|
6432
|
+
:paramtype order: str
|
|
6433
|
+
:keyword from_parameter: Start date-time in RFC 3339 format.
|
|
6434
|
+
Inclusive. Default value is None.
|
|
6435
|
+
:paramtype from_parameter: ~datetime.datetime
|
|
6436
|
+
:keyword to: End date-time in RFC 3339 format.
|
|
6437
|
+
Inclusive. Default value is None.
|
|
6438
|
+
:paramtype to: ~datetime.datetime
|
|
6355
6439
|
:keyword feature: Filtering by multiple features.
|
|
6356
6440
|
|
|
6357
6441
|
Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
|
|
@@ -6360,42 +6444,43 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
6360
6444
|
|
|
6361
6445
|
Usage: ``?subject=customer-1&subject=customer-2``. Default value is None.
|
|
6362
6446
|
:paramtype subject: list[str]
|
|
6363
|
-
:return:
|
|
6364
|
-
:rtype:
|
|
6447
|
+
:return: JSON object
|
|
6448
|
+
:rtype: JSON
|
|
6365
6449
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
6366
6450
|
|
|
6367
6451
|
Example:
|
|
6368
6452
|
.. code-block:: python
|
|
6369
6453
|
|
|
6370
6454
|
# response body for status code(s): 200
|
|
6371
|
-
response ==
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
"
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
"payload": {},
|
|
6391
|
-
"rule": {
|
|
6455
|
+
response == {
|
|
6456
|
+
"items": [
|
|
6457
|
+
{
|
|
6458
|
+
"createdAt": "2020-02-20 00:00:00", # Timestamp when the
|
|
6459
|
+
notification event was created. Required.
|
|
6460
|
+
"deliveryStatus": [
|
|
6461
|
+
{
|
|
6462
|
+
"channel": {
|
|
6463
|
+
"id": "str", # A unique identifier
|
|
6464
|
+
for the notification channel. Required.
|
|
6465
|
+
"type": "str" # The type of the
|
|
6466
|
+
notification channel. Required. "WEBHOOK"
|
|
6467
|
+
},
|
|
6468
|
+
"state": "str", # Required. Known values
|
|
6469
|
+
are: "SUCCESS", "FAILED", and "SENDING".
|
|
6470
|
+
"updatedAt": "2020-02-20 00:00:00" #
|
|
6471
|
+
Required.
|
|
6472
|
+
}
|
|
6473
|
+
],
|
|
6392
6474
|
"id": "str", # A unique identifier for the notification
|
|
6393
|
-
|
|
6394
|
-
"
|
|
6395
|
-
|
|
6475
|
+
event. Required.
|
|
6476
|
+
"payload": {},
|
|
6477
|
+
"rule": {}
|
|
6396
6478
|
}
|
|
6397
|
-
|
|
6398
|
-
|
|
6479
|
+
],
|
|
6480
|
+
"page": 0, # Current page number. Required.
|
|
6481
|
+
"pageSize": 0, # Number of rules per page. Required.
|
|
6482
|
+
"totalCount": 0 # Total number of rules. Required.
|
|
6483
|
+
}
|
|
6399
6484
|
"""
|
|
6400
6485
|
error_map = {
|
|
6401
6486
|
404: ResourceNotFoundError,
|
|
@@ -6409,12 +6494,15 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
6409
6494
|
_headers = kwargs.pop("headers", {}) or {}
|
|
6410
6495
|
_params = kwargs.pop("params", {}) or {}
|
|
6411
6496
|
|
|
6412
|
-
cls: ClsType[
|
|
6497
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
6413
6498
|
|
|
6414
6499
|
_request = build_list_notification_events_request(
|
|
6415
|
-
|
|
6416
|
-
|
|
6500
|
+
page=page,
|
|
6501
|
+
page_size=page_size,
|
|
6417
6502
|
order_by=order_by,
|
|
6503
|
+
order=order,
|
|
6504
|
+
from_parameter=from_parameter,
|
|
6505
|
+
to=to,
|
|
6418
6506
|
feature=feature,
|
|
6419
6507
|
subject=subject,
|
|
6420
6508
|
headers=_headers,
|
|
@@ -6441,9 +6529,9 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
6441
6529
|
deserialized = None
|
|
6442
6530
|
|
|
6443
6531
|
if cls:
|
|
6444
|
-
return cls(pipeline_response, cast(
|
|
6532
|
+
return cls(pipeline_response, cast(JSON, deserialized), {}) # type: ignore
|
|
6445
6533
|
|
|
6446
|
-
return cast(
|
|
6534
|
+
return cast(JSON, deserialized) # type: ignore
|
|
6447
6535
|
|
|
6448
6536
|
@distributed_trace
|
|
6449
6537
|
def get_notification_event(self, event_id: str, **kwargs: Any) -> JSON:
|
|
@@ -4298,32 +4298,51 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
4298
4298
|
|
|
4299
4299
|
@distributed_trace_async
|
|
4300
4300
|
async def list_notification_channels(
|
|
4301
|
-
self,
|
|
4302
|
-
|
|
4301
|
+
self,
|
|
4302
|
+
*,
|
|
4303
|
+
page: int = 1,
|
|
4304
|
+
page_size: int = 100,
|
|
4305
|
+
order_by: str = "id",
|
|
4306
|
+
order: str = "ASC",
|
|
4307
|
+
include_disabled: bool = False,
|
|
4308
|
+
include_deleted: bool = False,
|
|
4309
|
+
**kwargs: Any
|
|
4310
|
+
) -> JSON:
|
|
4303
4311
|
"""List notification channels.
|
|
4304
4312
|
|
|
4305
4313
|
List all notification channels.
|
|
4306
4314
|
|
|
4307
|
-
:keyword
|
|
4308
|
-
:paramtype
|
|
4309
|
-
:keyword
|
|
4310
|
-
:paramtype
|
|
4315
|
+
:keyword page: Page number to return. Default value is 1.
|
|
4316
|
+
:paramtype page: int
|
|
4317
|
+
:keyword page_size: Number of entries to return per page. Default value is 100.
|
|
4318
|
+
:paramtype page_size: int
|
|
4311
4319
|
:keyword order_by: Order by field. Known values are: "id", "type", "createdAt", and
|
|
4312
4320
|
"updatedAt". Default value is "id".
|
|
4313
4321
|
:paramtype order_by: str
|
|
4322
|
+
:keyword order: Order by field.
|
|
4323
|
+
|
|
4324
|
+
Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
|
|
4325
|
+
:paramtype order: str
|
|
4314
4326
|
:keyword include_disabled: Include disabled entries. Default value is False.
|
|
4315
4327
|
:paramtype include_disabled: bool
|
|
4316
|
-
:
|
|
4317
|
-
:
|
|
4328
|
+
:keyword include_deleted: Include deleted entries. Default value is False.
|
|
4329
|
+
:paramtype include_deleted: bool
|
|
4330
|
+
:return: JSON object
|
|
4331
|
+
:rtype: JSON
|
|
4318
4332
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
4319
4333
|
|
|
4320
4334
|
Example:
|
|
4321
4335
|
.. code-block:: python
|
|
4322
4336
|
|
|
4323
4337
|
# response body for status code(s): 200
|
|
4324
|
-
response ==
|
|
4325
|
-
|
|
4326
|
-
|
|
4338
|
+
response == {
|
|
4339
|
+
"items": [
|
|
4340
|
+
{}
|
|
4341
|
+
],
|
|
4342
|
+
"page": 0, # Current page number. Required.
|
|
4343
|
+
"pageSize": 0, # Number of channels per page. Required.
|
|
4344
|
+
"totalCount": 0 # Total number of channels. Required.
|
|
4345
|
+
}
|
|
4327
4346
|
"""
|
|
4328
4347
|
error_map = {
|
|
4329
4348
|
404: ResourceNotFoundError,
|
|
@@ -4337,13 +4356,15 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
4337
4356
|
_headers = kwargs.pop("headers", {}) or {}
|
|
4338
4357
|
_params = kwargs.pop("params", {}) or {}
|
|
4339
4358
|
|
|
4340
|
-
cls: ClsType[
|
|
4359
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
4341
4360
|
|
|
4342
4361
|
_request = build_list_notification_channels_request(
|
|
4343
|
-
|
|
4344
|
-
|
|
4362
|
+
page=page,
|
|
4363
|
+
page_size=page_size,
|
|
4345
4364
|
order_by=order_by,
|
|
4365
|
+
order=order,
|
|
4346
4366
|
include_disabled=include_disabled,
|
|
4367
|
+
include_deleted=include_deleted,
|
|
4347
4368
|
headers=_headers,
|
|
4348
4369
|
params=_params,
|
|
4349
4370
|
)
|
|
@@ -4368,9 +4389,9 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
4368
4389
|
deserialized = None
|
|
4369
4390
|
|
|
4370
4391
|
if cls:
|
|
4371
|
-
return cls(pipeline_response, cast(
|
|
4392
|
+
return cls(pipeline_response, cast(JSON, deserialized), {}) # type: ignore
|
|
4372
4393
|
|
|
4373
|
-
return cast(
|
|
4394
|
+
return cast(JSON, deserialized) # type: ignore
|
|
4374
4395
|
|
|
4375
4396
|
@overload
|
|
4376
4397
|
async def create_notification_channel(
|
|
@@ -4783,41 +4804,59 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
4783
4804
|
async def list_notification_rules(
|
|
4784
4805
|
self,
|
|
4785
4806
|
*,
|
|
4786
|
-
|
|
4787
|
-
|
|
4807
|
+
page: int = 1,
|
|
4808
|
+
page_size: int = 100,
|
|
4788
4809
|
order_by: str = "id",
|
|
4810
|
+
order: str = "ASC",
|
|
4789
4811
|
include_disabled: bool = False,
|
|
4812
|
+
include_deleted: bool = False,
|
|
4790
4813
|
feature: Optional[List[str]] = None,
|
|
4814
|
+
channel: Optional[List[str]] = None,
|
|
4791
4815
|
**kwargs: Any
|
|
4792
|
-
) ->
|
|
4816
|
+
) -> JSON:
|
|
4793
4817
|
"""List notification rules.
|
|
4794
4818
|
|
|
4795
4819
|
List all notification rules.
|
|
4796
4820
|
|
|
4797
|
-
:keyword
|
|
4798
|
-
:paramtype
|
|
4799
|
-
:keyword
|
|
4800
|
-
:paramtype
|
|
4821
|
+
:keyword page: Page number to return. Default value is 1.
|
|
4822
|
+
:paramtype page: int
|
|
4823
|
+
:keyword page_size: Number of entries to return per page. Default value is 100.
|
|
4824
|
+
:paramtype page_size: int
|
|
4801
4825
|
:keyword order_by: Order by field. Known values are: "id", "type", "createdAt", and
|
|
4802
4826
|
"updatedAt". Default value is "id".
|
|
4803
4827
|
:paramtype order_by: str
|
|
4828
|
+
:keyword order: Order by field.
|
|
4829
|
+
|
|
4830
|
+
Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
|
|
4831
|
+
:paramtype order: str
|
|
4804
4832
|
:keyword include_disabled: Include disabled entries. Default value is False.
|
|
4805
4833
|
:paramtype include_disabled: bool
|
|
4834
|
+
:keyword include_deleted: Include deleted entries. Default value is False.
|
|
4835
|
+
:paramtype include_deleted: bool
|
|
4806
4836
|
:keyword feature: Filtering by multiple features.
|
|
4807
4837
|
|
|
4808
4838
|
Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
|
|
4809
4839
|
:paramtype feature: list[str]
|
|
4810
|
-
:
|
|
4811
|
-
|
|
4840
|
+
:keyword channel: Filtering by multiple notification channels.
|
|
4841
|
+
|
|
4842
|
+
Usage: ``?channel=channel-1&channel=channel-2``. Default value is None.
|
|
4843
|
+
:paramtype channel: list[str]
|
|
4844
|
+
:return: JSON object
|
|
4845
|
+
:rtype: JSON
|
|
4812
4846
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
4813
4847
|
|
|
4814
4848
|
Example:
|
|
4815
4849
|
.. code-block:: python
|
|
4816
4850
|
|
|
4817
4851
|
# response body for status code(s): 200
|
|
4818
|
-
response ==
|
|
4819
|
-
|
|
4820
|
-
|
|
4852
|
+
response == {
|
|
4853
|
+
"items": [
|
|
4854
|
+
{}
|
|
4855
|
+
],
|
|
4856
|
+
"page": 0, # Current page number. Required.
|
|
4857
|
+
"pageSize": 0, # Number of rules per page. Required.
|
|
4858
|
+
"totalCount": 0 # Total number of rules. Required.
|
|
4859
|
+
}
|
|
4821
4860
|
"""
|
|
4822
4861
|
error_map = {
|
|
4823
4862
|
404: ResourceNotFoundError,
|
|
@@ -4831,14 +4870,17 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
4831
4870
|
_headers = kwargs.pop("headers", {}) or {}
|
|
4832
4871
|
_params = kwargs.pop("params", {}) or {}
|
|
4833
4872
|
|
|
4834
|
-
cls: ClsType[
|
|
4873
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
4835
4874
|
|
|
4836
4875
|
_request = build_list_notification_rules_request(
|
|
4837
|
-
|
|
4838
|
-
|
|
4876
|
+
page=page,
|
|
4877
|
+
page_size=page_size,
|
|
4839
4878
|
order_by=order_by,
|
|
4879
|
+
order=order,
|
|
4840
4880
|
include_disabled=include_disabled,
|
|
4881
|
+
include_deleted=include_deleted,
|
|
4841
4882
|
feature=feature,
|
|
4883
|
+
channel=channel,
|
|
4842
4884
|
headers=_headers,
|
|
4843
4885
|
params=_params,
|
|
4844
4886
|
)
|
|
@@ -4863,9 +4905,9 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
4863
4905
|
deserialized = None
|
|
4864
4906
|
|
|
4865
4907
|
if cls:
|
|
4866
|
-
return cls(pipeline_response, cast(
|
|
4908
|
+
return cls(pipeline_response, cast(JSON, deserialized), {}) # type: ignore
|
|
4867
4909
|
|
|
4868
|
-
return cast(
|
|
4910
|
+
return cast(JSON, deserialized) # type: ignore
|
|
4869
4911
|
|
|
4870
4912
|
@overload
|
|
4871
4913
|
async def create_notification_rule(
|
|
@@ -5278,24 +5320,37 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5278
5320
|
async def list_notification_events(
|
|
5279
5321
|
self,
|
|
5280
5322
|
*,
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
order_by: str = "
|
|
5323
|
+
page: int = 1,
|
|
5324
|
+
page_size: int = 100,
|
|
5325
|
+
order_by: str = "createdAt",
|
|
5326
|
+
order: str = "ASC",
|
|
5327
|
+
from_parameter: Optional[datetime.datetime] = None,
|
|
5328
|
+
to: Optional[datetime.datetime] = None,
|
|
5284
5329
|
feature: Optional[List[str]] = None,
|
|
5285
5330
|
subject: Optional[List[str]] = None,
|
|
5286
5331
|
**kwargs: Any
|
|
5287
|
-
) ->
|
|
5332
|
+
) -> JSON:
|
|
5288
5333
|
"""List notification evens.
|
|
5289
5334
|
|
|
5290
5335
|
List all notification events.
|
|
5291
5336
|
|
|
5292
|
-
:keyword
|
|
5293
|
-
:paramtype
|
|
5294
|
-
:keyword
|
|
5295
|
-
:paramtype
|
|
5337
|
+
:keyword page: Page number to return. Default value is 1.
|
|
5338
|
+
:paramtype page: int
|
|
5339
|
+
:keyword page_size: Number of entries to return per page. Default value is 100.
|
|
5340
|
+
:paramtype page_size: int
|
|
5296
5341
|
:keyword order_by: Order by field. Known values are: "id" and "createdAt". Default value is
|
|
5297
|
-
"
|
|
5342
|
+
"createdAt".
|
|
5298
5343
|
:paramtype order_by: str
|
|
5344
|
+
:keyword order: Order by field.
|
|
5345
|
+
|
|
5346
|
+
Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
|
|
5347
|
+
:paramtype order: str
|
|
5348
|
+
:keyword from_parameter: Start date-time in RFC 3339 format.
|
|
5349
|
+
Inclusive. Default value is None.
|
|
5350
|
+
:paramtype from_parameter: ~datetime.datetime
|
|
5351
|
+
:keyword to: End date-time in RFC 3339 format.
|
|
5352
|
+
Inclusive. Default value is None.
|
|
5353
|
+
:paramtype to: ~datetime.datetime
|
|
5299
5354
|
:keyword feature: Filtering by multiple features.
|
|
5300
5355
|
|
|
5301
5356
|
Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
|
|
@@ -5304,42 +5359,43 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5304
5359
|
|
|
5305
5360
|
Usage: ``?subject=customer-1&subject=customer-2``. Default value is None.
|
|
5306
5361
|
:paramtype subject: list[str]
|
|
5307
|
-
:return:
|
|
5308
|
-
:rtype:
|
|
5362
|
+
:return: JSON object
|
|
5363
|
+
:rtype: JSON
|
|
5309
5364
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
5310
5365
|
|
|
5311
5366
|
Example:
|
|
5312
5367
|
.. code-block:: python
|
|
5313
5368
|
|
|
5314
5369
|
# response body for status code(s): 200
|
|
5315
|
-
response ==
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
"
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
"payload": {},
|
|
5335
|
-
"rule": {
|
|
5370
|
+
response == {
|
|
5371
|
+
"items": [
|
|
5372
|
+
{
|
|
5373
|
+
"createdAt": "2020-02-20 00:00:00", # Timestamp when the
|
|
5374
|
+
notification event was created. Required.
|
|
5375
|
+
"deliveryStatus": [
|
|
5376
|
+
{
|
|
5377
|
+
"channel": {
|
|
5378
|
+
"id": "str", # A unique identifier
|
|
5379
|
+
for the notification channel. Required.
|
|
5380
|
+
"type": "str" # The type of the
|
|
5381
|
+
notification channel. Required. "WEBHOOK"
|
|
5382
|
+
},
|
|
5383
|
+
"state": "str", # Required. Known values
|
|
5384
|
+
are: "SUCCESS", "FAILED", and "SENDING".
|
|
5385
|
+
"updatedAt": "2020-02-20 00:00:00" #
|
|
5386
|
+
Required.
|
|
5387
|
+
}
|
|
5388
|
+
],
|
|
5336
5389
|
"id": "str", # A unique identifier for the notification
|
|
5337
|
-
|
|
5338
|
-
"
|
|
5339
|
-
|
|
5390
|
+
event. Required.
|
|
5391
|
+
"payload": {},
|
|
5392
|
+
"rule": {}
|
|
5340
5393
|
}
|
|
5341
|
-
|
|
5342
|
-
|
|
5394
|
+
],
|
|
5395
|
+
"page": 0, # Current page number. Required.
|
|
5396
|
+
"pageSize": 0, # Number of rules per page. Required.
|
|
5397
|
+
"totalCount": 0 # Total number of rules. Required.
|
|
5398
|
+
}
|
|
5343
5399
|
"""
|
|
5344
5400
|
error_map = {
|
|
5345
5401
|
404: ResourceNotFoundError,
|
|
@@ -5353,12 +5409,15 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5353
5409
|
_headers = kwargs.pop("headers", {}) or {}
|
|
5354
5410
|
_params = kwargs.pop("params", {}) or {}
|
|
5355
5411
|
|
|
5356
|
-
cls: ClsType[
|
|
5412
|
+
cls: ClsType[JSON] = kwargs.pop("cls", None)
|
|
5357
5413
|
|
|
5358
5414
|
_request = build_list_notification_events_request(
|
|
5359
|
-
|
|
5360
|
-
|
|
5415
|
+
page=page,
|
|
5416
|
+
page_size=page_size,
|
|
5361
5417
|
order_by=order_by,
|
|
5418
|
+
order=order,
|
|
5419
|
+
from_parameter=from_parameter,
|
|
5420
|
+
to=to,
|
|
5362
5421
|
feature=feature,
|
|
5363
5422
|
subject=subject,
|
|
5364
5423
|
headers=_headers,
|
|
@@ -5385,9 +5444,9 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
|
|
|
5385
5444
|
deserialized = None
|
|
5386
5445
|
|
|
5387
5446
|
if cls:
|
|
5388
|
-
return cls(pipeline_response, cast(
|
|
5447
|
+
return cls(pipeline_response, cast(JSON, deserialized), {}) # type: ignore
|
|
5389
5448
|
|
|
5390
|
-
return cast(
|
|
5449
|
+
return cast(JSON, deserialized) # type: ignore
|
|
5391
5450
|
|
|
5392
5451
|
@distributed_trace_async
|
|
5393
5452
|
async def get_notification_event(self, event_id: str, **kwargs: Any) -> JSON:
|
|
@@ -2,7 +2,7 @@ openmeter/__init__.py,sha256=7klRT7LAGDqBcZsl7LGZrgrABVwyncgVUlidfaPiJm4,702
|
|
|
2
2
|
openmeter/_client.py,sha256=TIXIPi_UVO-d5BHra7_xIiKmLfZBrmc4L_Xq2gxi4lM,3982
|
|
3
3
|
openmeter/_configuration.py,sha256=CIdMxPaIXwDLaCsnvmdmHTfplV_cRp24101RJCEWtes,1807
|
|
4
4
|
openmeter/_operations/__init__.py,sha256=GVYObnS1nT-wbN8ONRxlAiH6NBeAXlOBi7olGJE9niA,682
|
|
5
|
-
openmeter/_operations/_operations.py,sha256=
|
|
5
|
+
openmeter/_operations/_operations.py,sha256=WpvqPOKgAe5pzABs5ZXeI44DQimBSXyD8n7mGaXF8eU,280022
|
|
6
6
|
openmeter/_operations/_patch.py,sha256=ptSL-JhY1fbGT9Cw2cUkPF1TPz5qVgXwTMMT5h41XUc,4874
|
|
7
7
|
openmeter/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
8
8
|
openmeter/_serialization.py,sha256=vQIv-wuCQabtiIq2DXOr7-InGADqxlXTGNEKv9OlDPs,78873
|
|
@@ -11,11 +11,11 @@ openmeter/aio/__init__.py,sha256=7klRT7LAGDqBcZsl7LGZrgrABVwyncgVUlidfaPiJm4,702
|
|
|
11
11
|
openmeter/aio/_client.py,sha256=O0VpMfw42UuTN_ZTIL3dw944PviLIrBBCSp7UaexyKQ,4100
|
|
12
12
|
openmeter/aio/_configuration.py,sha256=NtT-cxQWkt8q_FvMfwqqil18Tt9zJmWGVju4U9s7OsE,1817
|
|
13
13
|
openmeter/aio/_operations/__init__.py,sha256=GVYObnS1nT-wbN8ONRxlAiH6NBeAXlOBi7olGJE9niA,682
|
|
14
|
-
openmeter/aio/_operations/_operations.py,sha256=
|
|
14
|
+
openmeter/aio/_operations/_operations.py,sha256=otPi2o5XLnstwal4ruMlVjAa9UOVRp57SUT39CrChdI,240552
|
|
15
15
|
openmeter/aio/_operations/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
16
16
|
openmeter/aio/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
|
|
17
17
|
openmeter/aio/_vendor.py,sha256=CFsSbXOBydpg_f_uciu6Pe6cvF__6ofZ6KFEhkaMMEU,862
|
|
18
18
|
openmeter/py.typed,sha256=dcrsqJrcYfTX-ckLFJMTaj6mD8aDe2u0tkQG-ZYxnEg,26
|
|
19
|
-
openmeter-1.0.
|
|
20
|
-
openmeter-1.0.
|
|
21
|
-
openmeter-1.0.
|
|
19
|
+
openmeter-1.0.0b136.dist-info/METADATA,sha256=aV1Aaa-pNey219b_9iNhS0BQU3gk9vaj9JvGDQ1sqb0,2258
|
|
20
|
+
openmeter-1.0.0b136.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
21
|
+
openmeter-1.0.0b136.dist-info/RECORD,,
|
|
File without changes
|