Skip to content

Commit 4bf9789

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.1 automatically generated from ld-openapi.
1 parent e790e84 commit 4bf9789

File tree

12 files changed

+43
-19
lines changed

12 files changed

+43
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
447447
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
448448

449449
- API version: 2.0
450-
- Package version: 18.0.0
450+
- Package version: 18.0.1
451451
- Generator version: 7.16.0
452452
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
453453
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)

docs/MetricGroupRep.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Name | Type | Description | Notes
2020
**version** | **int** | The version of this metric group |
2121
**experiments** | [**List[DependentExperimentRep]**](DependentExperimentRep.md) | | [optional]
2222
**experiment_count** | **int** | The number of experiments using this metric group | [optional]
23+
**active_experiment_count** | **int** | The number of active experiments using this metric group | [optional]
24+
**active_guarded_rollout_count** | **int** | The number of active guarded rollouts using this metric group | [optional]
25+
**total_connections_count** | **int** | The total number of connections using this metric group | [optional]
26+
**total_active_connections_count** | **int** | The total number of active connections using this metric group | [optional]
2327

2428
## Example
2529

docs/MetricsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ with launchdarkly_api.ApiClient(configuration) as api_client:
146146
api_instance = launchdarkly_api.MetricsApi(api_client)
147147
project_key = 'project_key_example' # str | The project key
148148
metric_key = 'metric_key_example' # str | The metric key
149-
expand = 'expand_example' # str | A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. (optional)
149+
expand = 'expand_example' # str | A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)
150150
version_id = 'version_id_example' # str | The specific version ID of the metric (optional)
151151

152152
try:
@@ -167,7 +167,7 @@ Name | Type | Description | Notes
167167
------------- | ------------- | ------------- | -------------
168168
**project_key** | **str**| The project key |
169169
**metric_key** | **str**| The metric key |
170-
**expand** | **str**| A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`. | [optional]
170+
**expand** | **str**| A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. | [optional]
171171
**version_id** | **str**| The specific version ID of the metric | [optional]
172172

173173
### Return type

launchdarkly_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "18.0.0"
18+
__version__ = "18.0.1"
1919

2020
# Define package exports
2121
__all__ = [

launchdarkly_api/api/metrics_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def get_metric(
336336
self,
337337
project_key: Annotated[StrictStr, Field(description="The project key")],
338338
metric_key: Annotated[StrictStr, Field(description="The metric key")],
339-
expand: Annotated[Optional[StrictStr], Field(description="A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`.")] = None,
339+
expand: Annotated[Optional[StrictStr], Field(description="A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`.")] = None,
340340
version_id: Annotated[Optional[StrictStr], Field(description="The specific version ID of the metric")] = None,
341341
_request_timeout: Union[
342342
None,
@@ -359,7 +359,7 @@ def get_metric(
359359
:type project_key: str
360360
:param metric_key: The metric key (required)
361361
:type metric_key: str
362-
:param expand: A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`.
362+
:param expand: A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`.
363363
:type expand: str
364364
:param version_id: The specific version ID of the metric
365365
:type version_id: str
@@ -419,7 +419,7 @@ def get_metric_with_http_info(
419419
self,
420420
project_key: Annotated[StrictStr, Field(description="The project key")],
421421
metric_key: Annotated[StrictStr, Field(description="The metric key")],
422-
expand: Annotated[Optional[StrictStr], Field(description="A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`.")] = None,
422+
expand: Annotated[Optional[StrictStr], Field(description="A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`.")] = None,
423423
version_id: Annotated[Optional[StrictStr], Field(description="The specific version ID of the metric")] = None,
424424
_request_timeout: Union[
425425
None,
@@ -442,7 +442,7 @@ def get_metric_with_http_info(
442442
:type project_key: str
443443
:param metric_key: The metric key (required)
444444
:type metric_key: str
445-
:param expand: A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`.
445+
:param expand: A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`.
446446
:type expand: str
447447
:param version_id: The specific version ID of the metric
448448
:type version_id: str
@@ -502,7 +502,7 @@ def get_metric_without_preload_content(
502502
self,
503503
project_key: Annotated[StrictStr, Field(description="The project key")],
504504
metric_key: Annotated[StrictStr, Field(description="The metric key")],
505-
expand: Annotated[Optional[StrictStr], Field(description="A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`.")] = None,
505+
expand: Annotated[Optional[StrictStr], Field(description="A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`.")] = None,
506506
version_id: Annotated[Optional[StrictStr], Field(description="The specific version ID of the metric")] = None,
507507
_request_timeout: Union[
508508
None,
@@ -525,7 +525,7 @@ def get_metric_without_preload_content(
525525
:type project_key: str
526526
:param metric_key: The metric key (required)
527527
:type metric_key: str
528-
:param expand: A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, and `lastUsedInEntity`.
528+
:param expand: A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`.
529529
:type expand: str
530530
:param version_id: The specific version ID of the metric
531531
:type version_id: str

launchdarkly_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(
9292
self.default_headers[header_name] = header_value
9393
self.cookie = cookie
9494
# Set default User-Agent.
95-
self.user_agent = 'OpenAPI-Generator/18.0.0/python'
95+
self.user_agent = 'OpenAPI-Generator/18.0.1/python'
9696
self.client_side_validation = configuration.client_side_validation
9797

9898
def __enter__(self):

launchdarkly_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def to_debug_report(self) -> str:
532532
"OS: {env}\n"\
533533
"Python Version: {pyversion}\n"\
534534
"Version of the API: 2.0\n"\
535-
"SDK Package Version: 18.0.0".\
535+
"SDK Package Version: 18.0.1".\
536536
format(env=sys.platform, pyversion=sys.version)
537537

538538
def get_host_settings(self) -> List[HostSetting]:

launchdarkly_api/models/metric_group_rep.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ class MetricGroupRep(BaseModel):
4747
version: StrictInt = Field(description="The version of this metric group", alias="_version")
4848
experiments: Optional[List[DependentExperimentRep]] = None
4949
experiment_count: Optional[StrictInt] = Field(default=None, description="The number of experiments using this metric group", alias="experimentCount")
50-
__properties: ClassVar[List[str]] = ["_id", "key", "name", "kind", "description", "_links", "_access", "tags", "_creationDate", "_lastModified", "maintainer", "metrics", "_version", "experiments", "experimentCount"]
50+
active_experiment_count: Optional[StrictInt] = Field(default=None, description="The number of active experiments using this metric group", alias="activeExperimentCount")
51+
active_guarded_rollout_count: Optional[StrictInt] = Field(default=None, description="The number of active guarded rollouts using this metric group", alias="activeGuardedRolloutCount")
52+
total_connections_count: Optional[StrictInt] = Field(default=None, description="The total number of connections using this metric group", alias="totalConnectionsCount")
53+
total_active_connections_count: Optional[StrictInt] = Field(default=None, description="The total number of active connections using this metric group", alias="totalActiveConnectionsCount")
54+
__properties: ClassVar[List[str]] = ["_id", "key", "name", "kind", "description", "_links", "_access", "tags", "_creationDate", "_lastModified", "maintainer", "metrics", "_version", "experiments", "experimentCount", "activeExperimentCount", "activeGuardedRolloutCount", "totalConnectionsCount", "totalActiveConnectionsCount"]
5155

5256
@field_validator('kind')
5357
def kind_validate_enum(cls, value):
@@ -153,7 +157,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
153157
"metrics": [MetricInGroupRep.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None,
154158
"_version": obj.get("_version"),
155159
"experiments": [DependentExperimentRep.from_dict(_item) for _item in obj["experiments"]] if obj.get("experiments") is not None else None,
156-
"experimentCount": obj.get("experimentCount")
160+
"experimentCount": obj.get("experimentCount"),
161+
"activeExperimentCount": obj.get("activeExperimentCount"),
162+
"activeGuardedRolloutCount": obj.get("activeGuardedRolloutCount"),
163+
"totalConnectionsCount": obj.get("totalConnectionsCount"),
164+
"totalActiveConnectionsCount": obj.get("totalActiveConnectionsCount")
157165
})
158166
return _obj
159167

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "launchdarkly_api"
3-
version = "18.0.0"
3+
version = "18.0.1"
44
description = "LaunchDarkly REST API"
55
authors = [
66
{name = "LaunchDarkly Technical Support Team",email = "[email protected]"},

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "launchdarkly-api"
25-
VERSION = "18.0.0"
25+
VERSION = "18.0.1"
2626
PYTHON_REQUIRES = ">= 3.9"
2727
REQUIRES = [
2828
"urllib3 >= 2.1.0, < 3.0.0",

0 commit comments

Comments
 (0)