launchdarkly_api 21.0.0 → 22.0.0
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.
- checksums.yaml +4 -4
- data/README.md +15 -6
- data/docs/AIConfig.md +3 -1
- data/docs/AIConfigDependency.md +20 -0
- data/docs/AIConfigPatch.md +2 -2
- data/docs/AIConfigPost.md +2 -2
- data/docs/AITool.md +3 -1
- data/docs/AIToolPatch.md +6 -4
- data/docs/AIToolPost.md +6 -4
- data/docs/AccountUsageBetaApi.md +164 -0
- data/docs/AgentGraph.md +4 -0
- data/docs/AgentGraphMaintainer.md +49 -0
- data/docs/AgentGraphPatch.md +4 -0
- data/docs/AgentGraphPost.md +4 -0
- data/docs/AiConfigsMetricListingRep.md +4 -0
- data/docs/AuditLogApi.md +80 -0
- data/docs/CallerIdentityRep.md +3 -1
- data/docs/CountBucket.md +20 -0
- data/docs/CountBucketsResult.md +22 -0
- data/docs/EventFilter.md +1 -1
- data/docs/ExpandedFlag.md +4 -2
- data/docs/ExpandedFlagMaintainer.md +24 -0
- data/docs/ExpandedLinkedResourcesItems.md +1 -5
- data/docs/ExperimentsApi.md +1 -1
- data/docs/MetricListingRep.md +2 -0
- data/docs/MetricRep.md +2 -0
- data/docs/ResourceSummary.md +0 -4
- data/docs/VariationTool.md +3 -1
- data/docs/ViewLinkRequest.md +3 -1
- data/docs/ViewLinkRequestFilter.md +22 -0
- data/docs/ViewLinkRequestKeys.md +4 -2
- data/docs/ViewLinkRequestSegmentIdentifiers.md +4 -0
- data/docs/ViewLinkedResource.md +1 -1
- data/docs/ViewsBetaApi.md +17 -11
- data/docs/ViewsMemberSummary.md +28 -0
- data/docs/ViewsMemberTeamSummaryRep.md +24 -0
- data/lib/launchdarkly_api/api/account_usage_beta_api.rb +144 -0
- data/lib/launchdarkly_api/api/audit_log_api.rb +81 -0
- data/lib/launchdarkly_api/api/experiments_api.rb +2 -2
- data/lib/launchdarkly_api/api/views_beta_api.rb +31 -18
- data/lib/launchdarkly_api/models/agent_graph.rb +19 -1
- data/lib/launchdarkly_api/models/agent_graph_maintainer.rb +104 -0
- data/lib/launchdarkly_api/models/agent_graph_patch.rb +21 -1
- data/lib/launchdarkly_api/models/agent_graph_post.rb +21 -1
- data/lib/launchdarkly_api/models/ai_config.rb +16 -4
- data/lib/launchdarkly_api/models/ai_config_dependency.rb +217 -0
- data/lib/launchdarkly_api/models/ai_configs_metric_listing_rep.rb +20 -1
- data/lib/launchdarkly_api/models/ai_tool.rb +12 -1
- data/lib/launchdarkly_api/models/ai_tool_patch.rb +15 -4
- data/lib/launchdarkly_api/models/ai_tool_post.rb +15 -4
- data/lib/launchdarkly_api/models/caller_identity_rep.rb +15 -4
- data/lib/launchdarkly_api/models/{expanded_linked_resources_metrics.rb → count_bucket.rb} +34 -36
- data/lib/launchdarkly_api/models/{expanded_linked_resources_ai_configs.rb → count_buckets_result.rb} +49 -23
- data/lib/launchdarkly_api/models/event_filter.rb +1 -1
- data/lib/launchdarkly_api/models/expanded_flag.rb +16 -7
- data/lib/launchdarkly_api/models/expanded_flag_maintainer.rb +234 -0
- data/lib/launchdarkly_api/models/expanded_linked_resources_items.rb +4 -22
- data/lib/launchdarkly_api/models/failed_resource_link.rb +2 -2
- data/lib/launchdarkly_api/models/metric_group_post.rb +2 -2
- data/lib/launchdarkly_api/models/metric_listing_rep.rb +10 -1
- data/lib/launchdarkly_api/models/metric_rep.rb +10 -1
- data/lib/launchdarkly_api/models/resource_summary.rb +1 -19
- data/lib/launchdarkly_api/models/variation_tool.rb +16 -4
- data/lib/launchdarkly_api/models/view_link_request.rb +1 -0
- data/lib/launchdarkly_api/models/view_link_request_filter.rb +187 -0
- data/lib/launchdarkly_api/models/view_link_request_keys.rb +12 -2
- data/lib/launchdarkly_api/models/view_link_request_segment_identifiers.rb +21 -1
- data/lib/launchdarkly_api/models/view_linked_resource.rb +3 -3
- data/lib/launchdarkly_api/models/views_member_summary.rb +268 -0
- data/lib/launchdarkly_api/models/views_member_team_summary_rep.rb +232 -0
- data/lib/launchdarkly_api/version.rb +1 -1
- data/lib/launchdarkly_api.rb +8 -2
- data/spec/api/account_usage_beta_api_spec.rb +32 -0
- data/spec/api/audit_log_api_spec.rb +15 -0
- data/spec/api/experiments_api_spec.rb +1 -1
- data/spec/api/views_beta_api_spec.rb +9 -6
- data/spec/models/agent_graph_maintainer_spec.rb +32 -0
- data/spec/models/agent_graph_patch_spec.rb +12 -0
- data/spec/models/agent_graph_post_spec.rb +12 -0
- data/spec/models/agent_graph_spec.rb +12 -0
- data/spec/models/ai_config_dependency_spec.rb +46 -0
- data/spec/models/ai_config_spec.rb +6 -0
- data/spec/models/ai_configs_metric_listing_rep_spec.rb +12 -0
- data/spec/models/ai_tool_patch_spec.rb +6 -0
- data/spec/models/ai_tool_post_spec.rb +6 -0
- data/spec/models/ai_tool_spec.rb +6 -0
- data/spec/models/caller_identity_rep_spec.rb +6 -0
- data/spec/models/{expanded_linked_resources_metrics_spec.rb → count_bucket_spec.rb} +8 -8
- data/spec/models/{expanded_linked_resources_ai_configs_spec.rb → count_buckets_result_spec.rb} +13 -7
- data/spec/models/expanded_flag_maintainer_spec.rb +58 -0
- data/spec/models/expanded_flag_spec.rb +7 -1
- data/spec/models/expanded_linked_resources_items_spec.rb +0 -12
- data/spec/models/failed_resource_link_spec.rb +1 -1
- data/spec/models/metric_group_post_spec.rb +1 -1
- data/spec/models/metric_listing_rep_spec.rb +6 -0
- data/spec/models/metric_rep_spec.rb +6 -0
- data/spec/models/resource_summary_spec.rb +0 -12
- data/spec/models/variation_tool_spec.rb +6 -0
- data/spec/models/view_link_request_filter_spec.rb +48 -0
- data/spec/models/view_link_request_keys_spec.rb +6 -0
- data/spec/models/view_link_request_segment_identifiers_spec.rb +12 -0
- data/spec/models/view_linked_resource_spec.rb +1 -1
- data/spec/models/views_member_summary_spec.rb +66 -0
- data/spec/models/views_member_team_summary_rep_spec.rb +54 -0
- metadata +626 -602
- data/docs/ExpandedLinkedResourcesAIConfigs.md +0 -20
- data/docs/ExpandedLinkedResourcesMetrics.md +0 -20
|
@@ -24,6 +24,9 @@ module LaunchDarklyApi
|
|
|
24
24
|
# The number of guarded rollouts using this metric
|
|
25
25
|
attr_accessor :guarded_rollout_count
|
|
26
26
|
|
|
27
|
+
# The number of release policies using this metric
|
|
28
|
+
attr_accessor :release_policy_count
|
|
29
|
+
|
|
27
30
|
# The number of active experiments using this metric
|
|
28
31
|
attr_accessor :active_experiment_count
|
|
29
32
|
|
|
@@ -106,6 +109,8 @@ module LaunchDarklyApi
|
|
|
106
109
|
|
|
107
110
|
attr_accessor :data_source
|
|
108
111
|
|
|
112
|
+
attr_accessor :last_seen
|
|
113
|
+
|
|
109
114
|
# Whether the metric version is archived
|
|
110
115
|
attr_accessor :archived
|
|
111
116
|
|
|
@@ -144,6 +149,7 @@ module LaunchDarklyApi
|
|
|
144
149
|
:'experiment_count' => :'experimentCount',
|
|
145
150
|
:'metric_group_count' => :'metricGroupCount',
|
|
146
151
|
:'guarded_rollout_count' => :'guardedRolloutCount',
|
|
152
|
+
:'release_policy_count' => :'releasePolicyCount',
|
|
147
153
|
:'active_experiment_count' => :'activeExperimentCount',
|
|
148
154
|
:'active_guarded_rollout_count' => :'activeGuardedRolloutCount',
|
|
149
155
|
:'_id' => :'_id',
|
|
@@ -174,6 +180,7 @@ module LaunchDarklyApi
|
|
|
174
180
|
:'percentile_value' => :'percentileValue',
|
|
175
181
|
:'event_default' => :'eventDefault',
|
|
176
182
|
:'data_source' => :'dataSource',
|
|
183
|
+
:'last_seen' => :'lastSeen',
|
|
177
184
|
:'archived' => :'archived',
|
|
178
185
|
:'archived_at' => :'archivedAt',
|
|
179
186
|
:'selector' => :'selector',
|
|
@@ -197,6 +204,7 @@ module LaunchDarklyApi
|
|
|
197
204
|
:'experiment_count' => :'Integer',
|
|
198
205
|
:'metric_group_count' => :'Integer',
|
|
199
206
|
:'guarded_rollout_count' => :'Integer',
|
|
207
|
+
:'release_policy_count' => :'Integer',
|
|
200
208
|
:'active_experiment_count' => :'Integer',
|
|
201
209
|
:'active_guarded_rollout_count' => :'Integer',
|
|
202
210
|
:'_id' => :'String',
|
|
@@ -227,6 +235,7 @@ module LaunchDarklyApi
|
|
|
227
235
|
:'percentile_value' => :'Integer',
|
|
228
236
|
:'event_default' => :'AiConfigsMetricEventDefaultRep',
|
|
229
237
|
:'data_source' => :'AiConfigsMetricDataSourceRefRep',
|
|
238
|
+
:'last_seen' => :'Integer',
|
|
230
239
|
:'archived' => :'Boolean',
|
|
231
240
|
:'archived_at' => :'Integer',
|
|
232
241
|
:'selector' => :'String',
|
|
@@ -268,6 +277,10 @@ module LaunchDarklyApi
|
|
|
268
277
|
self.guarded_rollout_count = attributes[:'guarded_rollout_count']
|
|
269
278
|
end
|
|
270
279
|
|
|
280
|
+
if attributes.key?(:'release_policy_count')
|
|
281
|
+
self.release_policy_count = attributes[:'release_policy_count']
|
|
282
|
+
end
|
|
283
|
+
|
|
271
284
|
if attributes.key?(:'active_experiment_count')
|
|
272
285
|
self.active_experiment_count = attributes[:'active_experiment_count']
|
|
273
286
|
end
|
|
@@ -412,6 +425,10 @@ module LaunchDarklyApi
|
|
|
412
425
|
self.data_source = nil
|
|
413
426
|
end
|
|
414
427
|
|
|
428
|
+
if attributes.key?(:'last_seen')
|
|
429
|
+
self.last_seen = attributes[:'last_seen']
|
|
430
|
+
end
|
|
431
|
+
|
|
415
432
|
if attributes.key?(:'archived')
|
|
416
433
|
self.archived = attributes[:'archived']
|
|
417
434
|
end
|
|
@@ -627,6 +644,7 @@ module LaunchDarklyApi
|
|
|
627
644
|
experiment_count == o.experiment_count &&
|
|
628
645
|
metric_group_count == o.metric_group_count &&
|
|
629
646
|
guarded_rollout_count == o.guarded_rollout_count &&
|
|
647
|
+
release_policy_count == o.release_policy_count &&
|
|
630
648
|
active_experiment_count == o.active_experiment_count &&
|
|
631
649
|
active_guarded_rollout_count == o.active_guarded_rollout_count &&
|
|
632
650
|
_id == o._id &&
|
|
@@ -657,6 +675,7 @@ module LaunchDarklyApi
|
|
|
657
675
|
percentile_value == o.percentile_value &&
|
|
658
676
|
event_default == o.event_default &&
|
|
659
677
|
data_source == o.data_source &&
|
|
678
|
+
last_seen == o.last_seen &&
|
|
660
679
|
archived == o.archived &&
|
|
661
680
|
archived_at == o.archived_at &&
|
|
662
681
|
selector == o.selector &&
|
|
@@ -672,7 +691,7 @@ module LaunchDarklyApi
|
|
|
672
691
|
# Calculates hash code according to all attributes.
|
|
673
692
|
# @return [Integer] Hash code
|
|
674
693
|
def hash
|
|
675
|
-
[experiment_count, metric_group_count, guarded_rollout_count, active_experiment_count, active_guarded_rollout_count, _id, _version_id, _version, key, name, kind, _attached_flag_count, _links, _site, _access, tags, _creation_date, last_modified, maintainer_id, _maintainer, description, category, is_numeric, success_criteria, unit, event_key, randomization_units, filters, unit_aggregation_type, analysis_type, percentile_value, event_default, data_source, archived, archived_at, selector, urls].hash
|
|
694
|
+
[experiment_count, metric_group_count, guarded_rollout_count, release_policy_count, active_experiment_count, active_guarded_rollout_count, _id, _version_id, _version, key, name, kind, _attached_flag_count, _links, _site, _access, tags, _creation_date, last_modified, maintainer_id, _maintainer, description, category, is_numeric, success_criteria, unit, event_key, randomization_units, filters, unit_aggregation_type, analysis_type, percentile_value, event_default, data_source, last_seen, archived, archived_at, selector, urls].hash
|
|
676
695
|
end
|
|
677
696
|
|
|
678
697
|
# Builds the object from hash
|
|
@@ -25,8 +25,12 @@ module LaunchDarklyApi
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :description
|
|
27
27
|
|
|
28
|
+
# JSON Schema defining the tool's parameters for LLM consumption
|
|
28
29
|
attr_accessor :schema
|
|
29
30
|
|
|
31
|
+
# Custom metadata and configuration for application-level use (not sent to LLM)
|
|
32
|
+
attr_accessor :custom_parameters
|
|
33
|
+
|
|
30
34
|
attr_accessor :version
|
|
31
35
|
|
|
32
36
|
attr_accessor :created_at
|
|
@@ -40,6 +44,7 @@ module LaunchDarklyApi
|
|
|
40
44
|
:'_maintainer' => :'_maintainer',
|
|
41
45
|
:'description' => :'description',
|
|
42
46
|
:'schema' => :'schema',
|
|
47
|
+
:'custom_parameters' => :'customParameters',
|
|
43
48
|
:'version' => :'version',
|
|
44
49
|
:'created_at' => :'createdAt'
|
|
45
50
|
}
|
|
@@ -64,6 +69,7 @@ module LaunchDarklyApi
|
|
|
64
69
|
:'_maintainer' => :'AIConfigMaintainer',
|
|
65
70
|
:'description' => :'String',
|
|
66
71
|
:'schema' => :'Object',
|
|
72
|
+
:'custom_parameters' => :'Object',
|
|
67
73
|
:'version' => :'Integer',
|
|
68
74
|
:'created_at' => :'Integer'
|
|
69
75
|
}
|
|
@@ -119,6 +125,10 @@ module LaunchDarklyApi
|
|
|
119
125
|
self.schema = nil
|
|
120
126
|
end
|
|
121
127
|
|
|
128
|
+
if attributes.key?(:'custom_parameters')
|
|
129
|
+
self.custom_parameters = attributes[:'custom_parameters']
|
|
130
|
+
end
|
|
131
|
+
|
|
122
132
|
if attributes.key?(:'version')
|
|
123
133
|
self.version = attributes[:'version']
|
|
124
134
|
else
|
|
@@ -218,6 +228,7 @@ module LaunchDarklyApi
|
|
|
218
228
|
_maintainer == o._maintainer &&
|
|
219
229
|
description == o.description &&
|
|
220
230
|
schema == o.schema &&
|
|
231
|
+
custom_parameters == o.custom_parameters &&
|
|
221
232
|
version == o.version &&
|
|
222
233
|
created_at == o.created_at
|
|
223
234
|
end
|
|
@@ -231,7 +242,7 @@ module LaunchDarklyApi
|
|
|
231
242
|
# Calculates hash code according to all attributes.
|
|
232
243
|
# @return [Integer] Hash code
|
|
233
244
|
def hash
|
|
234
|
-
[key, _access, _links, _maintainer, description, schema, version, created_at].hash
|
|
245
|
+
[key, _access, _links, _maintainer, description, schema, custom_parameters, version, created_at].hash
|
|
235
246
|
end
|
|
236
247
|
|
|
237
248
|
# Builds the object from hash
|
|
@@ -21,15 +21,20 @@ module LaunchDarklyApi
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :description
|
|
23
23
|
|
|
24
|
+
# JSON Schema defining the tool's parameters for LLM consumption
|
|
24
25
|
attr_accessor :schema
|
|
25
26
|
|
|
27
|
+
# Custom metadata and configuration for application-level use (not sent to LLM)
|
|
28
|
+
attr_accessor :custom_parameters
|
|
29
|
+
|
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
31
|
def self.attribute_map
|
|
28
32
|
{
|
|
29
33
|
:'maintainer_id' => :'maintainerId',
|
|
30
34
|
:'maintainer_team_key' => :'maintainerTeamKey',
|
|
31
35
|
:'description' => :'description',
|
|
32
|
-
:'schema' => :'schema'
|
|
36
|
+
:'schema' => :'schema',
|
|
37
|
+
:'custom_parameters' => :'customParameters'
|
|
33
38
|
}
|
|
34
39
|
end
|
|
35
40
|
|
|
@@ -49,7 +54,8 @@ module LaunchDarklyApi
|
|
|
49
54
|
:'maintainer_id' => :'String',
|
|
50
55
|
:'maintainer_team_key' => :'String',
|
|
51
56
|
:'description' => :'String',
|
|
52
|
-
:'schema' => :'Object'
|
|
57
|
+
:'schema' => :'Object',
|
|
58
|
+
:'custom_parameters' => :'Object'
|
|
53
59
|
}
|
|
54
60
|
end
|
|
55
61
|
|
|
@@ -90,6 +96,10 @@ module LaunchDarklyApi
|
|
|
90
96
|
if attributes.key?(:'schema')
|
|
91
97
|
self.schema = attributes[:'schema']
|
|
92
98
|
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'custom_parameters')
|
|
101
|
+
self.custom_parameters = attributes[:'custom_parameters']
|
|
102
|
+
end
|
|
93
103
|
end
|
|
94
104
|
|
|
95
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -115,7 +125,8 @@ module LaunchDarklyApi
|
|
|
115
125
|
maintainer_id == o.maintainer_id &&
|
|
116
126
|
maintainer_team_key == o.maintainer_team_key &&
|
|
117
127
|
description == o.description &&
|
|
118
|
-
schema == o.schema
|
|
128
|
+
schema == o.schema &&
|
|
129
|
+
custom_parameters == o.custom_parameters
|
|
119
130
|
end
|
|
120
131
|
|
|
121
132
|
# @see the `==` method
|
|
@@ -127,7 +138,7 @@ module LaunchDarklyApi
|
|
|
127
138
|
# Calculates hash code according to all attributes.
|
|
128
139
|
# @return [Integer] Hash code
|
|
129
140
|
def hash
|
|
130
|
-
[maintainer_id, maintainer_team_key, description, schema].hash
|
|
141
|
+
[maintainer_id, maintainer_team_key, description, schema, custom_parameters].hash
|
|
131
142
|
end
|
|
132
143
|
|
|
133
144
|
# Builds the object from hash
|
|
@@ -23,8 +23,12 @@ module LaunchDarklyApi
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :description
|
|
25
25
|
|
|
26
|
+
# JSON Schema defining the tool's parameters for LLM consumption
|
|
26
27
|
attr_accessor :schema
|
|
27
28
|
|
|
29
|
+
# Custom metadata and configuration for application-level use (not sent to LLM)
|
|
30
|
+
attr_accessor :custom_parameters
|
|
31
|
+
|
|
28
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
33
|
def self.attribute_map
|
|
30
34
|
{
|
|
@@ -32,7 +36,8 @@ module LaunchDarklyApi
|
|
|
32
36
|
:'maintainer_id' => :'maintainerId',
|
|
33
37
|
:'maintainer_team_key' => :'maintainerTeamKey',
|
|
34
38
|
:'description' => :'description',
|
|
35
|
-
:'schema' => :'schema'
|
|
39
|
+
:'schema' => :'schema',
|
|
40
|
+
:'custom_parameters' => :'customParameters'
|
|
36
41
|
}
|
|
37
42
|
end
|
|
38
43
|
|
|
@@ -53,7 +58,8 @@ module LaunchDarklyApi
|
|
|
53
58
|
:'maintainer_id' => :'String',
|
|
54
59
|
:'maintainer_team_key' => :'String',
|
|
55
60
|
:'description' => :'String',
|
|
56
|
-
:'schema' => :'Object'
|
|
61
|
+
:'schema' => :'Object',
|
|
62
|
+
:'custom_parameters' => :'Object'
|
|
57
63
|
}
|
|
58
64
|
end
|
|
59
65
|
|
|
@@ -102,6 +108,10 @@ module LaunchDarklyApi
|
|
|
102
108
|
else
|
|
103
109
|
self.schema = nil
|
|
104
110
|
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'custom_parameters')
|
|
113
|
+
self.custom_parameters = attributes[:'custom_parameters']
|
|
114
|
+
end
|
|
105
115
|
end
|
|
106
116
|
|
|
107
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -158,7 +168,8 @@ module LaunchDarklyApi
|
|
|
158
168
|
maintainer_id == o.maintainer_id &&
|
|
159
169
|
maintainer_team_key == o.maintainer_team_key &&
|
|
160
170
|
description == o.description &&
|
|
161
|
-
schema == o.schema
|
|
171
|
+
schema == o.schema &&
|
|
172
|
+
custom_parameters == o.custom_parameters
|
|
162
173
|
end
|
|
163
174
|
|
|
164
175
|
# @see the `==` method
|
|
@@ -170,7 +181,7 @@ module LaunchDarklyApi
|
|
|
170
181
|
# Calculates hash code according to all attributes.
|
|
171
182
|
# @return [Integer] Hash code
|
|
172
183
|
def hash
|
|
173
|
-
[key, maintainer_id, maintainer_team_key, description, schema].hash
|
|
184
|
+
[key, maintainer_id, maintainer_team_key, description, schema, custom_parameters].hash
|
|
174
185
|
end
|
|
175
186
|
|
|
176
187
|
# Builds the object from hash
|
|
@@ -39,6 +39,8 @@ module LaunchDarklyApi
|
|
|
39
39
|
|
|
40
40
|
attr_accessor :service_token
|
|
41
41
|
|
|
42
|
+
attr_accessor :scopes
|
|
43
|
+
|
|
42
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
45
|
def self.attribute_map
|
|
44
46
|
{
|
|
@@ -53,7 +55,8 @@ module LaunchDarklyApi
|
|
|
53
55
|
:'token_name' => :'tokenName',
|
|
54
56
|
:'token_id' => :'tokenId',
|
|
55
57
|
:'member_id' => :'memberId',
|
|
56
|
-
:'service_token' => :'serviceToken'
|
|
58
|
+
:'service_token' => :'serviceToken',
|
|
59
|
+
:'scopes' => :'scopes'
|
|
57
60
|
}
|
|
58
61
|
end
|
|
59
62
|
|
|
@@ -81,7 +84,8 @@ module LaunchDarklyApi
|
|
|
81
84
|
:'token_name' => :'String',
|
|
82
85
|
:'token_id' => :'String',
|
|
83
86
|
:'member_id' => :'String',
|
|
84
|
-
:'service_token' => :'Boolean'
|
|
87
|
+
:'service_token' => :'Boolean',
|
|
88
|
+
:'scopes' => :'Array<String>'
|
|
85
89
|
}
|
|
86
90
|
end
|
|
87
91
|
|
|
@@ -154,6 +158,12 @@ module LaunchDarklyApi
|
|
|
154
158
|
if attributes.key?(:'service_token')
|
|
155
159
|
self.service_token = attributes[:'service_token']
|
|
156
160
|
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'scopes')
|
|
163
|
+
if (value = attributes[:'scopes']).is_a?(Array)
|
|
164
|
+
self.scopes = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
157
167
|
end
|
|
158
168
|
|
|
159
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -187,7 +197,8 @@ module LaunchDarklyApi
|
|
|
187
197
|
token_name == o.token_name &&
|
|
188
198
|
token_id == o.token_id &&
|
|
189
199
|
member_id == o.member_id &&
|
|
190
|
-
service_token == o.service_token
|
|
200
|
+
service_token == o.service_token &&
|
|
201
|
+
scopes == o.scopes
|
|
191
202
|
end
|
|
192
203
|
|
|
193
204
|
# @see the `==` method
|
|
@@ -199,7 +210,7 @@ module LaunchDarklyApi
|
|
|
199
210
|
# Calculates hash code according to all attributes.
|
|
200
211
|
# @return [Integer] Hash code
|
|
201
212
|
def hash
|
|
202
|
-
[account_id, environment_id, project_id, environment_name, project_name, auth_kind, token_kind, client_id, token_name, token_id, member_id, service_token].hash
|
|
213
|
+
[account_id, environment_id, project_id, environment_name, project_name, auth_kind, token_kind, client_id, token_name, token_id, member_id, service_token, scopes].hash
|
|
203
214
|
end
|
|
204
215
|
|
|
205
216
|
# Builds the object from hash
|
|
@@ -14,16 +14,16 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module LaunchDarklyApi
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
17
|
+
class CountBucket < ApiModelBase
|
|
18
|
+
attr_accessor :timestamp
|
|
19
19
|
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :count
|
|
21
21
|
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
23
|
def self.attribute_map
|
|
24
24
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'
|
|
25
|
+
:'timestamp' => :'timestamp',
|
|
26
|
+
:'count' => :'count'
|
|
27
27
|
}
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -40,8 +40,8 @@ module LaunchDarklyApi
|
|
|
40
40
|
# Attribute type mapping.
|
|
41
41
|
def self.openapi_types
|
|
42
42
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
43
|
+
:'timestamp' => :'Integer',
|
|
44
|
+
:'count' => :'Integer'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -55,30 +55,28 @@ module LaunchDarklyApi
|
|
|
55
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
56
|
def initialize(attributes = {})
|
|
57
57
|
if (!attributes.is_a?(Hash))
|
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `LaunchDarklyApi::
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `LaunchDarklyApi::CountBucket` initialize method"
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
62
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
64
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `LaunchDarklyApi::
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `LaunchDarklyApi::CountBucket`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
66
|
end
|
|
67
67
|
h[k.to_sym] = v
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
|
|
72
|
-
self.items = value
|
|
73
|
-
end
|
|
70
|
+
if attributes.key?(:'timestamp')
|
|
71
|
+
self.timestamp = attributes[:'timestamp']
|
|
74
72
|
else
|
|
75
|
-
self.
|
|
73
|
+
self.timestamp = nil
|
|
76
74
|
end
|
|
77
75
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
self.
|
|
76
|
+
if attributes.key?(:'count')
|
|
77
|
+
self.count = attributes[:'count']
|
|
80
78
|
else
|
|
81
|
-
self.
|
|
79
|
+
self.count = nil
|
|
82
80
|
end
|
|
83
81
|
end
|
|
84
82
|
|
|
@@ -87,12 +85,12 @@ module LaunchDarklyApi
|
|
|
87
85
|
def list_invalid_properties
|
|
88
86
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
89
87
|
invalid_properties = Array.new
|
|
90
|
-
if @
|
|
91
|
-
invalid_properties.push('invalid value for "
|
|
88
|
+
if @timestamp.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
|
92
90
|
end
|
|
93
91
|
|
|
94
|
-
if @
|
|
95
|
-
invalid_properties.push('invalid value for "
|
|
92
|
+
if @count.nil?
|
|
93
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
96
94
|
end
|
|
97
95
|
|
|
98
96
|
invalid_properties
|
|
@@ -102,29 +100,29 @@ module LaunchDarklyApi
|
|
|
102
100
|
# @return true if the model is valid
|
|
103
101
|
def valid?
|
|
104
102
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
-
return false if @
|
|
106
|
-
return false if @
|
|
103
|
+
return false if @timestamp.nil?
|
|
104
|
+
return false if @count.nil?
|
|
107
105
|
true
|
|
108
106
|
end
|
|
109
107
|
|
|
110
108
|
# Custom attribute writer method with validation
|
|
111
|
-
# @param [Object]
|
|
112
|
-
def
|
|
113
|
-
if
|
|
114
|
-
fail ArgumentError, '
|
|
109
|
+
# @param [Object] timestamp Value to be assigned
|
|
110
|
+
def timestamp=(timestamp)
|
|
111
|
+
if timestamp.nil?
|
|
112
|
+
fail ArgumentError, 'timestamp cannot be nil'
|
|
115
113
|
end
|
|
116
114
|
|
|
117
|
-
@
|
|
115
|
+
@timestamp = timestamp
|
|
118
116
|
end
|
|
119
117
|
|
|
120
118
|
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object]
|
|
122
|
-
def
|
|
123
|
-
if
|
|
124
|
-
fail ArgumentError, '
|
|
119
|
+
# @param [Object] count Value to be assigned
|
|
120
|
+
def count=(count)
|
|
121
|
+
if count.nil?
|
|
122
|
+
fail ArgumentError, 'count cannot be nil'
|
|
125
123
|
end
|
|
126
124
|
|
|
127
|
-
@
|
|
125
|
+
@count = count
|
|
128
126
|
end
|
|
129
127
|
|
|
130
128
|
# Checks equality by comparing each attribute.
|
|
@@ -132,8 +130,8 @@ module LaunchDarklyApi
|
|
|
132
130
|
def ==(o)
|
|
133
131
|
return true if self.equal?(o)
|
|
134
132
|
self.class == o.class &&
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
timestamp == o.timestamp &&
|
|
134
|
+
count == o.count
|
|
137
135
|
end
|
|
138
136
|
|
|
139
137
|
# @see the `==` method
|
|
@@ -145,7 +143,7 @@ module LaunchDarklyApi
|
|
|
145
143
|
# Calculates hash code according to all attributes.
|
|
146
144
|
# @return [Integer] Hash code
|
|
147
145
|
def hash
|
|
148
|
-
[
|
|
146
|
+
[timestamp, count].hash
|
|
149
147
|
end
|
|
150
148
|
|
|
151
149
|
# Builds the object from hash
|
data/lib/launchdarkly_api/models/{expanded_linked_resources_ai_configs.rb → count_buckets_result.rb}
RENAMED
|
@@ -14,16 +14,19 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module LaunchDarklyApi
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
17
|
+
class CountBucketsResult < ApiModelBase
|
|
18
|
+
attr_accessor :buckets
|
|
19
19
|
|
|
20
20
|
attr_accessor :total_count
|
|
21
21
|
|
|
22
|
+
attr_accessor :bucket_interval_ms
|
|
23
|
+
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
25
|
def self.attribute_map
|
|
24
26
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'total_count' => :'totalCount'
|
|
27
|
+
:'buckets' => :'buckets',
|
|
28
|
+
:'total_count' => :'totalCount',
|
|
29
|
+
:'bucket_interval_ms' => :'bucketIntervalMs'
|
|
27
30
|
}
|
|
28
31
|
end
|
|
29
32
|
|
|
@@ -40,8 +43,9 @@ module LaunchDarklyApi
|
|
|
40
43
|
# Attribute type mapping.
|
|
41
44
|
def self.openapi_types
|
|
42
45
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'total_count' => :'Integer'
|
|
46
|
+
:'buckets' => :'Array<CountBucket>',
|
|
47
|
+
:'total_count' => :'Integer',
|
|
48
|
+
:'bucket_interval_ms' => :'Integer'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -55,24 +59,24 @@ module LaunchDarklyApi
|
|
|
55
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
60
|
def initialize(attributes = {})
|
|
57
61
|
if (!attributes.is_a?(Hash))
|
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `LaunchDarklyApi::
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `LaunchDarklyApi::CountBucketsResult` initialize method"
|
|
59
63
|
end
|
|
60
64
|
|
|
61
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
66
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
68
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `LaunchDarklyApi::
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `LaunchDarklyApi::CountBucketsResult`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
70
|
end
|
|
67
71
|
h[k.to_sym] = v
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
if (value = attributes[:'
|
|
72
|
-
self.
|
|
74
|
+
if attributes.key?(:'buckets')
|
|
75
|
+
if (value = attributes[:'buckets']).is_a?(Array)
|
|
76
|
+
self.buckets = value
|
|
73
77
|
end
|
|
74
78
|
else
|
|
75
|
-
self.
|
|
79
|
+
self.buckets = nil
|
|
76
80
|
end
|
|
77
81
|
|
|
78
82
|
if attributes.key?(:'total_count')
|
|
@@ -80,6 +84,12 @@ module LaunchDarklyApi
|
|
|
80
84
|
else
|
|
81
85
|
self.total_count = nil
|
|
82
86
|
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'bucket_interval_ms')
|
|
89
|
+
self.bucket_interval_ms = attributes[:'bucket_interval_ms']
|
|
90
|
+
else
|
|
91
|
+
self.bucket_interval_ms = nil
|
|
92
|
+
end
|
|
83
93
|
end
|
|
84
94
|
|
|
85
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -87,14 +97,18 @@ module LaunchDarklyApi
|
|
|
87
97
|
def list_invalid_properties
|
|
88
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
89
99
|
invalid_properties = Array.new
|
|
90
|
-
if @
|
|
91
|
-
invalid_properties.push('invalid value for "
|
|
100
|
+
if @buckets.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "buckets", buckets cannot be nil.')
|
|
92
102
|
end
|
|
93
103
|
|
|
94
104
|
if @total_count.nil?
|
|
95
105
|
invalid_properties.push('invalid value for "total_count", total_count cannot be nil.')
|
|
96
106
|
end
|
|
97
107
|
|
|
108
|
+
if @bucket_interval_ms.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "bucket_interval_ms", bucket_interval_ms cannot be nil.')
|
|
110
|
+
end
|
|
111
|
+
|
|
98
112
|
invalid_properties
|
|
99
113
|
end
|
|
100
114
|
|
|
@@ -102,19 +116,20 @@ module LaunchDarklyApi
|
|
|
102
116
|
# @return true if the model is valid
|
|
103
117
|
def valid?
|
|
104
118
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
-
return false if @
|
|
119
|
+
return false if @buckets.nil?
|
|
106
120
|
return false if @total_count.nil?
|
|
121
|
+
return false if @bucket_interval_ms.nil?
|
|
107
122
|
true
|
|
108
123
|
end
|
|
109
124
|
|
|
110
125
|
# Custom attribute writer method with validation
|
|
111
|
-
# @param [Object]
|
|
112
|
-
def
|
|
113
|
-
if
|
|
114
|
-
fail ArgumentError, '
|
|
126
|
+
# @param [Object] buckets Value to be assigned
|
|
127
|
+
def buckets=(buckets)
|
|
128
|
+
if buckets.nil?
|
|
129
|
+
fail ArgumentError, 'buckets cannot be nil'
|
|
115
130
|
end
|
|
116
131
|
|
|
117
|
-
@
|
|
132
|
+
@buckets = buckets
|
|
118
133
|
end
|
|
119
134
|
|
|
120
135
|
# Custom attribute writer method with validation
|
|
@@ -127,13 +142,24 @@ module LaunchDarklyApi
|
|
|
127
142
|
@total_count = total_count
|
|
128
143
|
end
|
|
129
144
|
|
|
145
|
+
# Custom attribute writer method with validation
|
|
146
|
+
# @param [Object] bucket_interval_ms Value to be assigned
|
|
147
|
+
def bucket_interval_ms=(bucket_interval_ms)
|
|
148
|
+
if bucket_interval_ms.nil?
|
|
149
|
+
fail ArgumentError, 'bucket_interval_ms cannot be nil'
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
@bucket_interval_ms = bucket_interval_ms
|
|
153
|
+
end
|
|
154
|
+
|
|
130
155
|
# Checks equality by comparing each attribute.
|
|
131
156
|
# @param [Object] Object to be compared
|
|
132
157
|
def ==(o)
|
|
133
158
|
return true if self.equal?(o)
|
|
134
159
|
self.class == o.class &&
|
|
135
|
-
|
|
136
|
-
total_count == o.total_count
|
|
160
|
+
buckets == o.buckets &&
|
|
161
|
+
total_count == o.total_count &&
|
|
162
|
+
bucket_interval_ms == o.bucket_interval_ms
|
|
137
163
|
end
|
|
138
164
|
|
|
139
165
|
# @see the `==` method
|
|
@@ -145,7 +171,7 @@ module LaunchDarklyApi
|
|
|
145
171
|
# Calculates hash code according to all attributes.
|
|
146
172
|
# @return [Integer] Hash code
|
|
147
173
|
def hash
|
|
148
|
-
[
|
|
174
|
+
[buckets, total_count, bucket_interval_ms].hash
|
|
149
175
|
end
|
|
150
176
|
|
|
151
177
|
# Builds the object from hash
|
|
@@ -23,7 +23,7 @@ module LaunchDarklyApi
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :op
|
|
25
25
|
|
|
26
|
-
# The context attribute / event property values or group member nodes
|
|
26
|
+
# The context attribute / event property values or group member nodes. Numeric values must not exceed 14 decimal places.
|
|
27
27
|
attr_accessor :values
|
|
28
28
|
|
|
29
29
|
# For context attribute filters, the context kind.
|