Skip to content

Commit d224d46

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.1 automatically generated from ld-openapi.
1 parent 7741cdb commit d224d46

File tree

9 files changed

+88
-16
lines changed

9 files changed

+88
-16
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build launchdarkly_api.gemspec
11-
- gem install ./launchdarkly_api-18.0.0.gem
11+
- gem install ./launchdarkly_api-18.0.1.gem

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
450450
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
451451

452452
- API version: 2.0
453-
- Package version: 18.0.0
453+
- Package version: 18.0.1
454454
- Generator version: 7.16.0
455455
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
456456
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
@@ -468,16 +468,16 @@ gem build launchdarkly_api.gemspec
468468
Then either install the gem locally:
469469

470470
```shell
471-
gem install ./launchdarkly_api-18.0.0.gem
471+
gem install ./launchdarkly_api-18.0.1.gem
472472
```
473473

474-
(for development, run `gem install --dev ./launchdarkly_api-18.0.0.gem` to install the development dependencies)
474+
(for development, run `gem install --dev ./launchdarkly_api-18.0.1.gem` to install the development dependencies)
475475

476476
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
477477

478478
Finally add this to the Gemfile:
479479

480-
gem 'launchdarkly_api', '~> 18.0.0'
480+
gem 'launchdarkly_api', '~> 18.0.1'
481481

482482
### Install from Git
483483

docs/MetricGroupRep.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
| **_version** | **Integer** | The version of this metric group | |
2020
| **experiments** | [**Array<DependentExperimentRep>**](DependentExperimentRep.md) | | [optional] |
2121
| **experiment_count** | **Integer** | The number of experiments using this metric group | [optional] |
22+
| **active_experiment_count** | **Integer** | The number of active experiments using this metric group | [optional] |
23+
| **active_guarded_rollout_count** | **Integer** | The number of active guarded rollouts using this metric group | [optional] |
24+
| **total_connections_count** | **Integer** | The total number of connections using this metric group | [optional] |
25+
| **total_active_connections_count** | **Integer** | The total number of active connections using this metric group | [optional] |
2226

2327
## Example
2428

@@ -40,7 +44,11 @@ instance = LaunchDarklyApi::MetricGroupRep.new(
4044
metrics: null,
4145
_version: 1,
4246
experiments: null,
43-
experiment_count: 0
47+
experiment_count: 0,
48+
active_experiment_count: 0,
49+
active_guarded_rollout_count: 0,
50+
total_connections_count: 0,
51+
total_active_connections_count: 0
4452
)
4553
```
4654

docs/MetricsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ api_instance = LaunchDarklyApi::MetricsApi.new
108108
project_key = 'project_key_example' # String | The project key
109109
metric_key = 'metric_key_example' # String | The metric key
110110
opts = {
111-
expand: 'expand_example', # String | 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`.
111+
expand: 'expand_example', # String | 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`.
112112
version_id: 'version_id_example' # String | The specific version ID of the metric
113113
}
114114

@@ -145,7 +145,7 @@ end
145145
| ---- | ---- | ----------- | ----- |
146146
| **project_key** | **String** | The project key | |
147147
| **metric_key** | **String** | The metric key | |
148-
| **expand** | **String** | 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] |
148+
| **expand** | **String** | 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] |
149149
| **version_id** | **String** | The specific version ID of the metric | [optional] |
150150

151151
### Return type

lib/launchdarkly_api/api/metrics_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def delete_metric_with_http_info(project_key, metric_key, opts = {})
9393
# @param project_key [String] The project key
9494
# @param metric_key [String] The metric key
9595
# @param [Hash] opts the optional parameters
96-
# @option opts [String] :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`.
96+
# @option opts [String] :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`.
9797
# @option opts [String] :version_id The specific version ID of the metric
9898
# @return [MetricRep]
9999
def get_metric(project_key, metric_key, opts = {})
@@ -106,7 +106,7 @@ def get_metric(project_key, metric_key, opts = {})
106106
# @param project_key [String] The project key
107107
# @param metric_key [String] The metric key
108108
# @param [Hash] opts the optional parameters
109-
# @option opts [String] :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`.
109+
# @option opts [String] :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`.
110110
# @option opts [String] :version_id The specific version ID of the metric
111111
# @return [Array<(MetricRep, Integer, Hash)>] MetricRep data, response status code and response headers
112112
def get_metric_with_http_info(project_key, metric_key, opts = {})

lib/launchdarkly_api/models/metric_group_rep.rb

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ class MetricGroupRep
5555
# The number of experiments using this metric group
5656
attr_accessor :experiment_count
5757

58+
# The number of active experiments using this metric group
59+
attr_accessor :active_experiment_count
60+
61+
# The number of active guarded rollouts using this metric group
62+
attr_accessor :active_guarded_rollout_count
63+
64+
# The total number of connections using this metric group
65+
attr_accessor :total_connections_count
66+
67+
# The total number of active connections using this metric group
68+
attr_accessor :total_active_connections_count
69+
5870
class EnumAttributeValidator
5971
attr_reader :datatype
6072
attr_reader :allowable_values
@@ -94,7 +106,11 @@ def self.attribute_map
94106
:'metrics' => :'metrics',
95107
:'_version' => :'_version',
96108
:'experiments' => :'experiments',
97-
:'experiment_count' => :'experimentCount'
109+
:'experiment_count' => :'experimentCount',
110+
:'active_experiment_count' => :'activeExperimentCount',
111+
:'active_guarded_rollout_count' => :'activeGuardedRolloutCount',
112+
:'total_connections_count' => :'totalConnectionsCount',
113+
:'total_active_connections_count' => :'totalActiveConnectionsCount'
98114
}
99115
end
100116

@@ -125,7 +141,11 @@ def self.openapi_types
125141
:'metrics' => :'Array<MetricInGroupRep>',
126142
:'_version' => :'Integer',
127143
:'experiments' => :'Array<DependentExperimentRep>',
128-
:'experiment_count' => :'Integer'
144+
:'experiment_count' => :'Integer',
145+
:'active_experiment_count' => :'Integer',
146+
:'active_guarded_rollout_count' => :'Integer',
147+
:'total_connections_count' => :'Integer',
148+
:'total_active_connections_count' => :'Integer'
129149
}
130150
end
131151

@@ -240,6 +260,22 @@ def initialize(attributes = {})
240260
if attributes.key?(:'experiment_count')
241261
self.experiment_count = attributes[:'experiment_count']
242262
end
263+
264+
if attributes.key?(:'active_experiment_count')
265+
self.active_experiment_count = attributes[:'active_experiment_count']
266+
end
267+
268+
if attributes.key?(:'active_guarded_rollout_count')
269+
self.active_guarded_rollout_count = attributes[:'active_guarded_rollout_count']
270+
end
271+
272+
if attributes.key?(:'total_connections_count')
273+
self.total_connections_count = attributes[:'total_connections_count']
274+
end
275+
276+
if attributes.key?(:'total_active_connections_count')
277+
self.total_active_connections_count = attributes[:'total_active_connections_count']
278+
end
243279
end
244280

245281
# Show invalid properties with the reasons. Usually used together with valid?
@@ -443,7 +479,11 @@ def ==(o)
443479
metrics == o.metrics &&
444480
_version == o._version &&
445481
experiments == o.experiments &&
446-
experiment_count == o.experiment_count
482+
experiment_count == o.experiment_count &&
483+
active_experiment_count == o.active_experiment_count &&
484+
active_guarded_rollout_count == o.active_guarded_rollout_count &&
485+
total_connections_count == o.total_connections_count &&
486+
total_active_connections_count == o.total_active_connections_count
447487
end
448488

449489
# @see the `==` method
@@ -455,7 +495,7 @@ def eql?(o)
455495
# Calculates hash code according to all attributes.
456496
# @return [Integer] Hash code
457497
def hash
458-
[_id, key, name, kind, description, _links, _access, tags, _creation_date, _last_modified, maintainer, metrics, _version, experiments, experiment_count].hash
498+
[_id, key, name, kind, description, _links, _access, tags, _creation_date, _last_modified, maintainer, metrics, _version, experiments, experiment_count, active_experiment_count, active_guarded_rollout_count, total_connections_count, total_active_connections_count].hash
459499
end
460500

461501
# Builds the object from hash

lib/launchdarkly_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module LaunchDarklyApi
14-
VERSION = '18.0.0'
14+
VERSION = '18.0.1'
1515
end

spec/api/metrics_api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# @param project_key The project key
5252
# @param metric_key The metric key
5353
# @param [Hash] opts the optional parameters
54-
# @option opts [String] :expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are &#x60;experiments&#x60;, &#x60;experimentCount&#x60;, &#x60;metricGroups&#x60;, &#x60;metricGroupCount&#x60;, &#x60;eventSources&#x60;, &#x60;guardedRollouts&#x60;, &#x60;guardedRolloutCount&#x60;, and &#x60;lastUsedInEntity&#x60;.
54+
# @option opts [String] :expand A comma-separated list of properties that can reveal additional information in the response. Supported fields are &#x60;experiments&#x60;, &#x60;experimentCount&#x60;, &#x60;metricGroups&#x60;, &#x60;metricGroupCount&#x60;, &#x60;eventSources&#x60;, &#x60;guardedRollouts&#x60;, &#x60;guardedRolloutCount&#x60;, &#x60;lastUsedInExperiment&#x60;, and &#x60;lastUsedInGuardedRollout&#x60;.
5555
# @option opts [String] :version_id The specific version ID of the metric
5656
# @return [MetricRep]
5757
describe 'get_metric test' do

spec/models/metric_group_rep_spec.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,28 @@
121121
end
122122
end
123123

124+
describe 'test attribute "active_experiment_count"' do
125+
it 'should work' do
126+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
127+
end
128+
end
129+
130+
describe 'test attribute "active_guarded_rollout_count"' do
131+
it 'should work' do
132+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
133+
end
134+
end
135+
136+
describe 'test attribute "total_connections_count"' do
137+
it 'should work' do
138+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
139+
end
140+
end
141+
142+
describe 'test attribute "total_active_connections_count"' do
143+
it 'should work' do
144+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
145+
end
146+
end
147+
124148
end

0 commit comments

Comments
 (0)