launchdarkly_api 25.2.0 → 25.3.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 +64 -39
- data/docs/AIConfig.md +7 -5
- data/docs/AIConfigPatch.md +8 -4
- data/docs/AIConfigPost.md +8 -6
- data/docs/AIConfigTargeting.md +3 -3
- data/docs/AIConfigTargetingEnvironmentRule.md +8 -0
- data/docs/AIConfigTargetingEnvironmentRuleClause.md +2 -0
- data/docs/AIConfigVariation.md +1 -1
- data/docs/AIConfigVariationPatch.md +1 -1
- data/docs/AgentControlApi.md +110 -110
- data/docs/AgentOptimization.md +1 -1
- data/docs/AgentOptimizationJudge.md +1 -1
- data/docs/AgentOptimizationPost.md +1 -1
- data/docs/AgentSkill.md +3 -1
- data/docs/AgentSkillPatch.md +3 -1
- data/docs/AgentSkillPost.md +3 -1
- data/docs/AiConfigsMetricListingRep.md +2 -0
- data/docs/ApprovalsApi.md +1 -1
- data/docs/CreateFlagReleasePlanRequest.md +32 -0
- data/docs/EnvironmentReleasePlan.md +38 -0
- data/docs/EnvironmentReleasePlanClause.md +28 -0
- data/docs/EnvironmentReleasePlanMetric.md +20 -0
- data/docs/EnvironmentReleasePlanPhase.md +24 -0
- data/docs/EnvironmentReleasePlanProgressiveRelease.md +26 -0
- data/docs/EnvironmentReleasePlanProgressiveReleaseRep.md +26 -0
- data/docs/EnvironmentReleasePlanStep.md +22 -0
- data/docs/EnvironmentReleasePlans.md +22 -0
- data/docs/EnvironmentReleasePlansBetaApi.md +633 -0
- data/docs/EnvironmentReleasePlansLink.md +20 -0
- data/docs/EnvironmentReleasePlansPaginatedLinks.md +26 -0
- data/docs/EnvironmentReleasesMetricListingRep.md +2 -0
- data/docs/{ReleaseMethod.md → ExecutionMode.md} +2 -2
- data/docs/FeatureFlagsApi.md +1 -1
- data/docs/FlagReleasePlan.md +36 -0
- data/docs/FlagReleasePlanEnvironment.md +24 -0
- data/docs/FlagReleasePlanRequest.md +30 -0
- data/docs/FlagReleasePlansBetaApi.md +392 -0
- data/docs/FlagReleasePlansError.md +20 -0
- data/docs/FlagReleasePlansLink.md +20 -0
- data/docs/FlagReleasePlansPaginatedLinks.md +26 -0
- data/docs/ListFlagReleasePlansResponse.md +22 -0
- data/docs/MaintainerIdentifier.md +79 -0
- data/docs/MaintainerIdentifierMember.md +20 -0
- data/docs/MaintainerIdentifierTeam.md +20 -0
- data/docs/MaintainerResponse.md +79 -0
- data/docs/MaintainerResponseMember.md +26 -0
- data/docs/MaintainerResponseTeam.md +22 -0
- data/docs/PinnedSkillToolRef.md +20 -0
- data/docs/PostEnvironmentReleasePlanRequest.md +26 -0
- data/docs/PutDefaultEnvironmentReleasePlanRequest.md +18 -0
- data/docs/PutEnvironmentReleasePlanRequest.md +26 -0
- data/docs/PutFlagReleasePlanRequest.md +32 -0
- data/docs/QuickStats.md +2 -2
- data/docs/SkillToolRef.md +20 -0
- data/docs/ToolReferences.md +5 -1
- data/docs/ToolSkillReference.md +22 -0
- data/docs/TriggerType.md +15 -0
- data/lib/launchdarkly_api/api/agent_control_api.rb +98 -98
- data/lib/launchdarkly_api/api/approvals_api.rb +2 -2
- data/lib/launchdarkly_api/api/environment_release_plans_beta_api.rb +730 -0
- data/lib/launchdarkly_api/api/feature_flags_api.rb +2 -2
- data/lib/launchdarkly_api/api/{release_policies_beta_api.rb → flag_release_plans_beta_api.rb} +173 -212
- data/lib/launchdarkly_api/models/agent_optimization.rb +1 -1
- data/lib/launchdarkly_api/models/agent_optimization_judge.rb +1 -1
- data/lib/launchdarkly_api/models/agent_optimization_post.rb +1 -1
- data/lib/launchdarkly_api/models/agent_skill.rb +14 -2
- data/lib/launchdarkly_api/models/agent_skill_patch.rb +16 -4
- data/lib/launchdarkly_api/models/agent_skill_post.rb +16 -4
- data/lib/launchdarkly_api/models/ai_config.rb +16 -6
- data/lib/launchdarkly_api/models/ai_config_patch.rb +27 -7
- data/lib/launchdarkly_api/models/ai_config_post.rb +19 -9
- data/lib/launchdarkly_api/models/ai_config_targeting.rb +3 -3
- data/lib/launchdarkly_api/models/ai_config_targeting_environment_rule.rb +40 -1
- data/lib/launchdarkly_api/models/ai_config_targeting_environment_rule_clause.rb +11 -1
- data/lib/launchdarkly_api/models/ai_config_variation.rb +1 -1
- data/lib/launchdarkly_api/models/ai_config_variation_patch.rb +1 -1
- data/lib/launchdarkly_api/models/ai_configs_metric_listing_rep.rb +11 -1
- data/lib/launchdarkly_api/models/create_flag_release_plan_request.rb +335 -0
- data/lib/launchdarkly_api/models/environment_release_plan.rb +426 -0
- data/lib/launchdarkly_api/models/{release_policies_access_allowed_reason.rb → environment_release_plan_clause.rb} +98 -65
- data/lib/launchdarkly_api/models/{release_policies_access_allowed_rep.rb → environment_release_plan_metric.rb} +28 -41
- data/lib/launchdarkly_api/models/environment_release_plan_phase.rb +208 -0
- data/lib/launchdarkly_api/models/environment_release_plan_progressive_release.rb +285 -0
- data/lib/launchdarkly_api/models/{release_policies_access_denied_reason.rb → environment_release_plan_progressive_release_rep.rb} +85 -67
- data/lib/launchdarkly_api/models/{release_policy_stage.rb → environment_release_plan_step.rb} +43 -4
- data/lib/launchdarkly_api/models/{release_policies_response.rb → environment_release_plans.rb} +16 -7
- data/lib/launchdarkly_api/models/{release_policies_access_denied.rb → environment_release_plans_link.rb} +16 -50
- data/lib/launchdarkly_api/models/environment_release_plans_paginated_links.rb +200 -0
- data/lib/launchdarkly_api/models/environment_releases_metric_listing_rep.rb +11 -1
- data/lib/launchdarkly_api/models/{release_method.rb → execution_mode.rb} +6 -7
- data/lib/launchdarkly_api/models/expanded_ai_config.rb +1 -1
- data/lib/launchdarkly_api/models/flag_release_plan.rb +359 -0
- data/lib/launchdarkly_api/models/{put_release_policy_request.rb → flag_release_plan_environment.rb} +47 -65
- data/lib/launchdarkly_api/models/{post_release_policy_request.rb → flag_release_plan_request.rb} +64 -67
- data/lib/launchdarkly_api/models/flag_release_plans_error.rb +208 -0
- data/lib/launchdarkly_api/models/flag_release_plans_link.rb +156 -0
- data/lib/launchdarkly_api/models/flag_release_plans_paginated_links.rb +200 -0
- data/lib/launchdarkly_api/models/list_flag_release_plans_response.rb +202 -0
- data/lib/launchdarkly_api/models/maintainer_identifier.rb +56 -0
- data/lib/launchdarkly_api/models/maintainer_identifier_member.rb +214 -0
- data/lib/launchdarkly_api/models/{progressive_release_config.rb → maintainer_identifier_team.rb} +66 -32
- data/lib/launchdarkly_api/models/maintainer_response.rb +56 -0
- data/lib/launchdarkly_api/models/maintainer_response_member.rb +225 -0
- data/lib/launchdarkly_api/models/maintainer_response_team.rb +206 -0
- data/lib/launchdarkly_api/models/{release_policies_access_rep.rb → pinned_skill_tool_ref.rb} +46 -45
- data/lib/launchdarkly_api/models/{release_policy.rb → post_environment_release_plan_request.rb} +93 -120
- data/lib/launchdarkly_api/models/{release_policies_access.rb → put_default_environment_release_plan_request.rb} +33 -44
- data/lib/launchdarkly_api/models/put_environment_release_plan_request.rb +285 -0
- data/lib/launchdarkly_api/models/put_flag_release_plan_request.rb +309 -0
- data/lib/launchdarkly_api/models/quick_stats.rb +2 -2
- data/lib/launchdarkly_api/models/skill_tool_ref.rb +195 -0
- data/lib/launchdarkly_api/models/tool_references.rb +26 -4
- data/lib/launchdarkly_api/models/tool_skill_reference.rb +220 -0
- data/lib/launchdarkly_api/models/trigger_type.rb +42 -0
- data/lib/launchdarkly_api/version.rb +1 -1
- data/lib/launchdarkly_api.rb +35 -16
- data/spec/api/agent_control_api_spec.rb +49 -49
- data/spec/api/approvals_api_spec.rb +1 -1
- data/spec/api/environment_release_plans_beta_api_spec.rb +156 -0
- data/spec/api/feature_flags_api_spec.rb +1 -1
- data/spec/api/{release_policies_beta_api_spec.rb → flag_release_plans_beta_api_spec.rb} +43 -56
- data/spec/models/agent_skill_patch_spec.rb +6 -0
- data/spec/models/agent_skill_post_spec.rb +6 -0
- data/spec/models/agent_skill_spec.rb +6 -0
- data/spec/models/ai_config_patch_spec.rb +12 -0
- data/spec/models/ai_config_post_spec.rb +6 -0
- data/spec/models/ai_config_spec.rb +6 -0
- data/spec/models/ai_config_targeting_environment_rule_clause_spec.rb +6 -0
- data/spec/models/ai_config_targeting_environment_rule_spec.rb +24 -0
- data/spec/models/ai_configs_metric_listing_rep_spec.rb +6 -0
- data/spec/models/{release_policy_spec.rb → create_flag_release_plan_request_spec.rb} +13 -19
- data/spec/models/{release_policies_access_allowed_reason_spec.rb → environment_release_plan_clause_spec.rb} +16 -16
- data/spec/models/{release_policies_access_rep_spec.rb → environment_release_plan_metric_spec.rb} +8 -8
- data/spec/models/environment_release_plan_phase_spec.rb +54 -0
- data/spec/models/environment_release_plan_progressive_release_rep_spec.rb +68 -0
- data/spec/models/environment_release_plan_progressive_release_spec.rb +68 -0
- data/spec/models/environment_release_plan_spec.rb +100 -0
- data/spec/models/{release_policies_access_allowed_rep_spec.rb → environment_release_plan_step_spec.rb} +14 -8
- data/spec/models/{release_policies_access_denied_spec.rb → environment_release_plans_link_spec.rb} +8 -8
- data/spec/models/{guarded_release_config_spec.rb → environment_release_plans_paginated_links_spec.rb} +11 -17
- data/spec/models/environment_release_plans_spec.rb +48 -0
- data/spec/models/environment_releases_metric_listing_rep_spec.rb +6 -0
- data/spec/models/{release_method_spec.rb → execution_mode_spec.rb} +6 -6
- data/spec/models/flag_release_plan_environment_spec.rb +54 -0
- data/spec/models/{release_policies_access_denied_reason_spec.rb → flag_release_plan_request_spec.rb} +18 -16
- data/spec/models/flag_release_plan_spec.rb +90 -0
- data/spec/models/{release_policy_scope_spec.rb → flag_release_plans_error_spec.rb} +8 -8
- data/spec/models/{release_policy_stage_spec.rb → flag_release_plans_link_spec.rb} +8 -8
- data/spec/models/{put_release_policy_request_spec.rb → flag_release_plans_paginated_links_spec.rb} +11 -11
- data/spec/models/list_flag_release_plans_response_spec.rb +48 -0
- data/spec/models/maintainer_identifier_member_spec.rb +46 -0
- data/spec/models/maintainer_identifier_spec.rb +44 -0
- data/spec/models/{progressive_release_config_spec.rb → maintainer_identifier_team_spec.rb} +12 -8
- data/spec/models/maintainer_response_member_spec.rb +64 -0
- data/spec/models/maintainer_response_spec.rb +44 -0
- data/spec/models/maintainer_response_team_spec.rb +52 -0
- data/spec/models/{release_policies_access_spec.rb → pinned_skill_tool_ref_spec.rb} +8 -8
- data/spec/models/{post_release_policy_request_spec.rb → post_environment_release_plan_request_spec.rb} +15 -17
- data/spec/models/put_default_environment_release_plan_request_spec.rb +36 -0
- data/spec/models/put_environment_release_plan_request_spec.rb +64 -0
- data/spec/models/put_flag_release_plan_request_spec.rb +78 -0
- data/spec/models/{release_policies_response_spec.rb → skill_tool_ref_spec.rb} +8 -8
- data/spec/models/tool_references_spec.rb +12 -0
- data/spec/models/tool_skill_reference_spec.rb +48 -0
- data/spec/models/trigger_type_spec.rb +30 -0
- metadata +141 -65
- data/docs/GuardedReleaseConfig.md +0 -28
- data/docs/PostReleasePolicyRequest.md +0 -28
- data/docs/ProgressiveReleaseConfig.md +0 -20
- data/docs/PutReleasePolicyRequest.md +0 -26
- data/docs/ReleasePoliciesAccess.md +0 -20
- data/docs/ReleasePoliciesAccessAllowedReason.md +0 -28
- data/docs/ReleasePoliciesAccessAllowedRep.md +0 -20
- data/docs/ReleasePoliciesAccessDenied.md +0 -20
- data/docs/ReleasePoliciesAccessDeniedReason.md +0 -28
- data/docs/ReleasePoliciesAccessRep.md +0 -20
- data/docs/ReleasePoliciesBetaApi.md +0 -466
- data/docs/ReleasePoliciesResponse.md +0 -20
- data/docs/ReleasePolicy.md +0 -34
- data/docs/ReleasePolicyScope.md +0 -20
- data/docs/ReleasePolicyStage.md +0 -20
- data/lib/launchdarkly_api/models/guarded_release_config.rb +0 -224
- data/lib/launchdarkly_api/models/release_policy_scope.rb +0 -181
|
@@ -36,9 +36,12 @@ module LaunchDarklyApi
|
|
|
36
36
|
# Tags for the agent skill. Tags can be used in custom role policies.
|
|
37
37
|
attr_accessor :tags
|
|
38
38
|
|
|
39
|
-
# Version of the agent skill. Starts at 1, and each update that changes the name, description, or
|
|
39
|
+
# Version of the agent skill. Starts at 1, and each update that changes the name, description, markdown, or tools creates a new version. Pass this value with `key` in a variation's `skills: [{key, version}]`.
|
|
40
40
|
attr_accessor :version
|
|
41
41
|
|
|
42
|
+
# The AI tool versions this version of the agent skill pins, in the order they reach the agent.
|
|
43
|
+
attr_accessor :tools
|
|
44
|
+
|
|
42
45
|
attr_accessor :created_at
|
|
43
46
|
|
|
44
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -53,6 +56,7 @@ module LaunchDarklyApi
|
|
|
53
56
|
:'markdown' => :'markdown',
|
|
54
57
|
:'tags' => :'tags',
|
|
55
58
|
:'version' => :'version',
|
|
59
|
+
:'tools' => :'tools',
|
|
56
60
|
:'created_at' => :'createdAt'
|
|
57
61
|
}
|
|
58
62
|
end
|
|
@@ -79,6 +83,7 @@ module LaunchDarklyApi
|
|
|
79
83
|
:'markdown' => :'String',
|
|
80
84
|
:'tags' => :'Array<String>',
|
|
81
85
|
:'version' => :'Integer',
|
|
86
|
+
:'tools' => :'Array<PinnedSkillToolRef>',
|
|
82
87
|
:'created_at' => :'Integer'
|
|
83
88
|
}
|
|
84
89
|
end
|
|
@@ -153,6 +158,12 @@ module LaunchDarklyApi
|
|
|
153
158
|
self.version = nil
|
|
154
159
|
end
|
|
155
160
|
|
|
161
|
+
if attributes.key?(:'tools')
|
|
162
|
+
if (value = attributes[:'tools']).is_a?(Array)
|
|
163
|
+
self.tools = value
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
156
167
|
if attributes.key?(:'created_at')
|
|
157
168
|
self.created_at = attributes[:'created_at']
|
|
158
169
|
else
|
|
@@ -279,6 +290,7 @@ module LaunchDarklyApi
|
|
|
279
290
|
markdown == o.markdown &&
|
|
280
291
|
tags == o.tags &&
|
|
281
292
|
version == o.version &&
|
|
293
|
+
tools == o.tools &&
|
|
282
294
|
created_at == o.created_at
|
|
283
295
|
end
|
|
284
296
|
|
|
@@ -291,7 +303,7 @@ module LaunchDarklyApi
|
|
|
291
303
|
# Calculates hash code according to all attributes.
|
|
292
304
|
# @return [Integer] Hash code
|
|
293
305
|
def hash
|
|
294
|
-
[key, _access, _links, _maintainer, name, description, markdown, tags, version, created_at].hash
|
|
306
|
+
[key, _access, _links, _maintainer, name, description, markdown, tags, version, tools, created_at].hash
|
|
295
307
|
end
|
|
296
308
|
|
|
297
309
|
# Builds the object from hash
|
|
@@ -33,6 +33,9 @@ module LaunchDarklyApi
|
|
|
33
33
|
# Replaces the tags on the agent skill. Tags can be used in custom role policies. Changing only the tags does not create a new version.
|
|
34
34
|
attr_accessor :tags
|
|
35
35
|
|
|
36
|
+
# Replaces the AI tools pinned to the agent skill, in the order they reach the agent. Leave it out to keep the current tools, or send an empty array to remove them all. A change to the tools or their order creates a new version. Each tool key can appear once, and a skill can pin up to 20 tools by default. You need read access to each tool.
|
|
37
|
+
attr_accessor :tools
|
|
38
|
+
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
40
|
def self.attribute_map
|
|
38
41
|
{
|
|
@@ -41,7 +44,8 @@ module LaunchDarklyApi
|
|
|
41
44
|
:'markdown' => :'markdown',
|
|
42
45
|
:'maintainer_id' => :'maintainerId',
|
|
43
46
|
:'maintainer_team_key' => :'maintainerTeamKey',
|
|
44
|
-
:'tags' => :'tags'
|
|
47
|
+
:'tags' => :'tags',
|
|
48
|
+
:'tools' => :'tools'
|
|
45
49
|
}
|
|
46
50
|
end
|
|
47
51
|
|
|
@@ -63,7 +67,8 @@ module LaunchDarklyApi
|
|
|
63
67
|
:'markdown' => :'String',
|
|
64
68
|
:'maintainer_id' => :'String',
|
|
65
69
|
:'maintainer_team_key' => :'String',
|
|
66
|
-
:'tags' => :'Array<String>'
|
|
70
|
+
:'tags' => :'Array<String>',
|
|
71
|
+
:'tools' => :'Array<SkillToolRef>'
|
|
67
72
|
}
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -114,6 +119,12 @@ module LaunchDarklyApi
|
|
|
114
119
|
self.tags = value
|
|
115
120
|
end
|
|
116
121
|
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'tools')
|
|
124
|
+
if (value = attributes[:'tools']).is_a?(Array)
|
|
125
|
+
self.tools = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
117
128
|
end
|
|
118
129
|
|
|
119
130
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -141,7 +152,8 @@ module LaunchDarklyApi
|
|
|
141
152
|
markdown == o.markdown &&
|
|
142
153
|
maintainer_id == o.maintainer_id &&
|
|
143
154
|
maintainer_team_key == o.maintainer_team_key &&
|
|
144
|
-
tags == o.tags
|
|
155
|
+
tags == o.tags &&
|
|
156
|
+
tools == o.tools
|
|
145
157
|
end
|
|
146
158
|
|
|
147
159
|
# @see the `==` method
|
|
@@ -153,7 +165,7 @@ module LaunchDarklyApi
|
|
|
153
165
|
# Calculates hash code according to all attributes.
|
|
154
166
|
# @return [Integer] Hash code
|
|
155
167
|
def hash
|
|
156
|
-
[name, description, markdown, maintainer_id, maintainer_team_key, tags].hash
|
|
168
|
+
[name, description, markdown, maintainer_id, maintainer_team_key, tags, tools].hash
|
|
157
169
|
end
|
|
158
170
|
|
|
159
171
|
# Builds the object from hash
|
|
@@ -36,6 +36,9 @@ module LaunchDarklyApi
|
|
|
36
36
|
# Tags for the agent skill. Tags can be used in custom role policies.
|
|
37
37
|
attr_accessor :tags
|
|
38
38
|
|
|
39
|
+
# AI tools in the same project to pin to the agent skill, in the order they reach the agent. Each tool key can appear once, and a skill can pin up to 20 tools by default. You need read access to each tool.
|
|
40
|
+
attr_accessor :tools
|
|
41
|
+
|
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
43
|
def self.attribute_map
|
|
41
44
|
{
|
|
@@ -45,7 +48,8 @@ module LaunchDarklyApi
|
|
|
45
48
|
:'markdown' => :'markdown',
|
|
46
49
|
:'maintainer_id' => :'maintainerId',
|
|
47
50
|
:'maintainer_team_key' => :'maintainerTeamKey',
|
|
48
|
-
:'tags' => :'tags'
|
|
51
|
+
:'tags' => :'tags',
|
|
52
|
+
:'tools' => :'tools'
|
|
49
53
|
}
|
|
50
54
|
end
|
|
51
55
|
|
|
@@ -68,7 +72,8 @@ module LaunchDarklyApi
|
|
|
68
72
|
:'markdown' => :'String',
|
|
69
73
|
:'maintainer_id' => :'String',
|
|
70
74
|
:'maintainer_team_key' => :'String',
|
|
71
|
-
:'tags' => :'Array<String>'
|
|
75
|
+
:'tags' => :'Array<String>',
|
|
76
|
+
:'tools' => :'Array<SkillToolRef>'
|
|
72
77
|
}
|
|
73
78
|
end
|
|
74
79
|
|
|
@@ -129,6 +134,12 @@ module LaunchDarklyApi
|
|
|
129
134
|
self.tags = value
|
|
130
135
|
end
|
|
131
136
|
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'tools')
|
|
139
|
+
if (value = attributes[:'tools']).is_a?(Array)
|
|
140
|
+
self.tools = value
|
|
141
|
+
end
|
|
142
|
+
end
|
|
132
143
|
end
|
|
133
144
|
|
|
134
145
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -202,7 +213,8 @@ module LaunchDarklyApi
|
|
|
202
213
|
markdown == o.markdown &&
|
|
203
214
|
maintainer_id == o.maintainer_id &&
|
|
204
215
|
maintainer_team_key == o.maintainer_team_key &&
|
|
205
|
-
tags == o.tags
|
|
216
|
+
tags == o.tags &&
|
|
217
|
+
tools == o.tools
|
|
206
218
|
end
|
|
207
219
|
|
|
208
220
|
# @see the `==` method
|
|
@@ -214,7 +226,7 @@ module LaunchDarklyApi
|
|
|
214
226
|
# Calculates hash code according to all attributes.
|
|
215
227
|
# @return [Integer] Hash code
|
|
216
228
|
def hash
|
|
217
|
-
[key, name, description, markdown, maintainer_id, maintainer_team_key, tags].hash
|
|
229
|
+
[key, name, description, markdown, maintainer_id, maintainer_team_key, tags, tools].hash
|
|
218
230
|
end
|
|
219
231
|
|
|
220
232
|
# Builds the object from hash
|
|
@@ -21,18 +21,18 @@ module LaunchDarklyApi
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :_site
|
|
23
23
|
|
|
24
|
-
# A description of the
|
|
24
|
+
# A description of the agent config
|
|
25
25
|
attr_accessor :description
|
|
26
26
|
|
|
27
|
-
# The
|
|
27
|
+
# The agent config key
|
|
28
28
|
attr_accessor :key
|
|
29
29
|
|
|
30
30
|
attr_accessor :_maintainer
|
|
31
31
|
|
|
32
|
-
# The
|
|
32
|
+
# The agent config mode
|
|
33
33
|
attr_accessor :mode
|
|
34
34
|
|
|
35
|
-
# The
|
|
35
|
+
# The agent config name
|
|
36
36
|
attr_accessor :name
|
|
37
37
|
|
|
38
38
|
# Tags for this resource
|
|
@@ -41,7 +41,7 @@ module LaunchDarklyApi
|
|
|
41
41
|
# The version number of this resource
|
|
42
42
|
attr_accessor :version
|
|
43
43
|
|
|
44
|
-
# The variations of this
|
|
44
|
+
# The variations of this agent config
|
|
45
45
|
attr_accessor :variations
|
|
46
46
|
|
|
47
47
|
attr_accessor :created_at
|
|
@@ -57,6 +57,9 @@ module LaunchDarklyApi
|
|
|
57
57
|
# The success direction of a judge. Offline evaluations use it to decide whether a score passes. - `true`: A lower score is better. Use this for a judge that scores bad output, such as a toxicity or hallucination judge. - `false`: A higher score is better. Use this for a judge that scores good output, such as an accuracy or relevance judge. The response includes this field only when `mode` is `judge`. For a built-in judge key, the value is always the built-in direction. Built-in judge keys are `ld-ai-judge-accuracy`, `ld-ai-judge-relevance`, and `ld-ai-judge-toxicity`, with or without a `-<timestamp>` suffix such as `ld-ai-judge-accuracy-1760000000000`. A custom judge with no stored direction omits this field.
|
|
58
58
|
attr_accessor :is_inverted
|
|
59
59
|
|
|
60
|
+
# The judge's threshold: the pass line for its main score, from 0 to 1. It applies wherever the judge is used. The average score passes when it is at or above this value, or at or below it when `isInverted` is `true`. The response includes this field only when `mode` is `judge` and a threshold is set.
|
|
61
|
+
attr_accessor :default_threshold
|
|
62
|
+
|
|
60
63
|
# Resources that depend on this config, grouped by type
|
|
61
64
|
attr_accessor :dependencies
|
|
62
65
|
|
|
@@ -101,6 +104,7 @@ module LaunchDarklyApi
|
|
|
101
104
|
:'evaluation_metric_key' => :'evaluationMetricKey',
|
|
102
105
|
:'evaluation_metric_keys' => :'evaluationMetricKeys',
|
|
103
106
|
:'is_inverted' => :'isInverted',
|
|
107
|
+
:'default_threshold' => :'defaultThreshold',
|
|
104
108
|
:'dependencies' => :'dependencies'
|
|
105
109
|
}
|
|
106
110
|
end
|
|
@@ -134,6 +138,7 @@ module LaunchDarklyApi
|
|
|
134
138
|
:'evaluation_metric_key' => :'String',
|
|
135
139
|
:'evaluation_metric_keys' => :'Array<String>',
|
|
136
140
|
:'is_inverted' => :'Boolean',
|
|
141
|
+
:'default_threshold' => :'Float',
|
|
137
142
|
:'dependencies' => :'Array<AIConfigDependency>'
|
|
138
143
|
}
|
|
139
144
|
end
|
|
@@ -248,6 +253,10 @@ module LaunchDarklyApi
|
|
|
248
253
|
self.is_inverted = attributes[:'is_inverted']
|
|
249
254
|
end
|
|
250
255
|
|
|
256
|
+
if attributes.key?(:'default_threshold')
|
|
257
|
+
self.default_threshold = attributes[:'default_threshold']
|
|
258
|
+
end
|
|
259
|
+
|
|
251
260
|
if attributes.key?(:'dependencies')
|
|
252
261
|
if (value = attributes[:'dependencies']).is_a?(Array)
|
|
253
262
|
self.dependencies = value
|
|
@@ -423,6 +432,7 @@ module LaunchDarklyApi
|
|
|
423
432
|
evaluation_metric_key == o.evaluation_metric_key &&
|
|
424
433
|
evaluation_metric_keys == o.evaluation_metric_keys &&
|
|
425
434
|
is_inverted == o.is_inverted &&
|
|
435
|
+
default_threshold == o.default_threshold &&
|
|
426
436
|
dependencies == o.dependencies
|
|
427
437
|
end
|
|
428
438
|
|
|
@@ -435,7 +445,7 @@ module LaunchDarklyApi
|
|
|
435
445
|
# Calculates hash code according to all attributes.
|
|
436
446
|
# @return [Integer] Hash code
|
|
437
447
|
def hash
|
|
438
|
-
[_access, _links, _site, description, key, _maintainer, mode, name, tags, version, variations, created_at, updated_at, evaluation_metric_key, evaluation_metric_keys, is_inverted, dependencies].hash
|
|
448
|
+
[_access, _links, _site, description, key, _maintainer, mode, name, tags, version, variations, created_at, updated_at, evaluation_metric_key, evaluation_metric_keys, is_inverted, default_threshold, dependencies].hash
|
|
439
449
|
end
|
|
440
450
|
|
|
441
451
|
# Builds the object from hash
|
|
@@ -18,7 +18,7 @@ module LaunchDarklyApi
|
|
|
18
18
|
# Key of the variation this config serves by default
|
|
19
19
|
attr_accessor :default_variation_key
|
|
20
20
|
|
|
21
|
-
# A description of the
|
|
21
|
+
# A description of the agent config
|
|
22
22
|
attr_accessor :description
|
|
23
23
|
|
|
24
24
|
# The ID of the member who maintains this resource
|
|
@@ -27,7 +27,7 @@ module LaunchDarklyApi
|
|
|
27
27
|
# The key of the team that maintains this resource
|
|
28
28
|
attr_accessor :maintainer_team_key
|
|
29
29
|
|
|
30
|
-
# A human-readable name for the
|
|
30
|
+
# A human-readable name for the agent config
|
|
31
31
|
attr_accessor :name
|
|
32
32
|
|
|
33
33
|
# Tags for this resource
|
|
@@ -36,9 +36,15 @@ module LaunchDarklyApi
|
|
|
36
36
|
# Evaluation metric key for this config
|
|
37
37
|
attr_accessor :evaluation_metric_key
|
|
38
38
|
|
|
39
|
-
# The success direction of a judge. Offline evaluations use it to decide whether a score passes. - `true`: A lower score is better. Use this for a judge that scores bad output, such as a toxicity or hallucination judge. - `false`: A higher score is better. Use this for a judge that scores good output, such as an accuracy or relevance judge. Send this field only when the
|
|
39
|
+
# The success direction of a judge. Offline evaluations use it to decide whether a score passes. - `true`: A lower score is better. Use this for a judge that scores bad output, such as a toxicity or hallucination judge. - `false`: A higher score is better. Use this for a judge that scores good output, such as an accuracy or relevance judge. Send this field only when the agent config's `mode` is `judge`. If you omit it, the current direction does not change. For a built-in judge key, the API always returns the built-in direction. Built-in judge keys are `ld-ai-judge-accuracy`, `ld-ai-judge-relevance`, and `ld-ai-judge-toxicity`, with or without a `-<timestamp>` suffix such as `ld-ai-judge-accuracy-1760000000000`. The API returns a `400` error in these cases: - `isInverted is only supported for judge mode`: You send this field and the agent config's `mode` is `agent` or `completion`. Remove the field. - `isInverted is not supported`: Custom judges are not available for your account. Remove the field from the request.
|
|
40
40
|
attr_accessor :is_inverted
|
|
41
41
|
|
|
42
|
+
# The judge's threshold: the pass line for its main score, from 0 to 1. It applies wherever the judge is used. If you omit it, the current threshold does not change. To remove the threshold, send `clearDefaultThreshold` instead. The API returns a `400` error in these cases: - `Threshold is only supported for judges`: You send this field and the agent config's `mode` is `agent` or `completion`. - `Threshold must be from 0 to 1`: The value is below 0 or above 1. - `Thresholds don't support classifier rules yet`: Every active variation of the judge uses classifier rules. Archived variations don't count. - `Threshold can't be set and cleared in the same request`: You send this field and `clearDefaultThreshold: true`. - `Threshold is not supported`: Thresholds are not available for your account. Remove the field from the request.
|
|
43
|
+
attr_accessor :default_threshold
|
|
44
|
+
|
|
45
|
+
# Set to `true` to remove the judge's threshold. Don't send it with `defaultThreshold`. The API returns a `400` error with `Threshold is not supported` when thresholds are not available for your account.
|
|
46
|
+
attr_accessor :clear_default_threshold
|
|
47
|
+
|
|
42
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
49
|
def self.attribute_map
|
|
44
50
|
{
|
|
@@ -49,7 +55,9 @@ module LaunchDarklyApi
|
|
|
49
55
|
:'name' => :'name',
|
|
50
56
|
:'tags' => :'tags',
|
|
51
57
|
:'evaluation_metric_key' => :'evaluationMetricKey',
|
|
52
|
-
:'is_inverted' => :'isInverted'
|
|
58
|
+
:'is_inverted' => :'isInverted',
|
|
59
|
+
:'default_threshold' => :'defaultThreshold',
|
|
60
|
+
:'clear_default_threshold' => :'clearDefaultThreshold'
|
|
53
61
|
}
|
|
54
62
|
end
|
|
55
63
|
|
|
@@ -73,7 +81,9 @@ module LaunchDarklyApi
|
|
|
73
81
|
:'name' => :'String',
|
|
74
82
|
:'tags' => :'Array<String>',
|
|
75
83
|
:'evaluation_metric_key' => :'String',
|
|
76
|
-
:'is_inverted' => :'Boolean'
|
|
84
|
+
:'is_inverted' => :'Boolean',
|
|
85
|
+
:'default_threshold' => :'Float',
|
|
86
|
+
:'clear_default_threshold' => :'Boolean'
|
|
77
87
|
}
|
|
78
88
|
end
|
|
79
89
|
|
|
@@ -132,6 +142,14 @@ module LaunchDarklyApi
|
|
|
132
142
|
if attributes.key?(:'is_inverted')
|
|
133
143
|
self.is_inverted = attributes[:'is_inverted']
|
|
134
144
|
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'default_threshold')
|
|
147
|
+
self.default_threshold = attributes[:'default_threshold']
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'clear_default_threshold')
|
|
151
|
+
self.clear_default_threshold = attributes[:'clear_default_threshold']
|
|
152
|
+
end
|
|
135
153
|
end
|
|
136
154
|
|
|
137
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -161,7 +179,9 @@ module LaunchDarklyApi
|
|
|
161
179
|
name == o.name &&
|
|
162
180
|
tags == o.tags &&
|
|
163
181
|
evaluation_metric_key == o.evaluation_metric_key &&
|
|
164
|
-
is_inverted == o.is_inverted
|
|
182
|
+
is_inverted == o.is_inverted &&
|
|
183
|
+
default_threshold == o.default_threshold &&
|
|
184
|
+
clear_default_threshold == o.clear_default_threshold
|
|
165
185
|
end
|
|
166
186
|
|
|
167
187
|
# @see the `==` method
|
|
@@ -173,7 +193,7 @@ module LaunchDarklyApi
|
|
|
173
193
|
# Calculates hash code according to all attributes.
|
|
174
194
|
# @return [Integer] Hash code
|
|
175
195
|
def hash
|
|
176
|
-
[default_variation_key, description, maintainer_id, maintainer_team_key, name, tags, evaluation_metric_key, is_inverted].hash
|
|
196
|
+
[default_variation_key, description, maintainer_id, maintainer_team_key, name, tags, evaluation_metric_key, is_inverted, default_threshold, clear_default_threshold].hash
|
|
177
197
|
end
|
|
178
198
|
|
|
179
199
|
# Builds the object from hash
|
|
@@ -15,10 +15,10 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module LaunchDarklyApi
|
|
17
17
|
class AIConfigPost < ApiModelBase
|
|
18
|
-
# A description of the
|
|
18
|
+
# A description of the agent config
|
|
19
19
|
attr_accessor :description
|
|
20
20
|
|
|
21
|
-
# A unique key for the
|
|
21
|
+
# A unique key for the agent config
|
|
22
22
|
attr_accessor :key
|
|
23
23
|
|
|
24
24
|
# The ID of the member who maintains this resource
|
|
@@ -27,16 +27,16 @@ module LaunchDarklyApi
|
|
|
27
27
|
# The key of the team that maintains this resource
|
|
28
28
|
attr_accessor :maintainer_team_key
|
|
29
29
|
|
|
30
|
-
# The
|
|
30
|
+
# The agent config mode
|
|
31
31
|
attr_accessor :mode
|
|
32
32
|
|
|
33
|
-
# A human-readable name for the
|
|
33
|
+
# A human-readable name for the agent config
|
|
34
34
|
attr_accessor :name
|
|
35
35
|
|
|
36
36
|
# Tags for this resource
|
|
37
37
|
attr_accessor :tags
|
|
38
38
|
|
|
39
|
-
# Keys of the views to add the
|
|
39
|
+
# Keys of the views to add the agent config to
|
|
40
40
|
attr_accessor :view_keys
|
|
41
41
|
|
|
42
42
|
attr_accessor :default_variation
|
|
@@ -47,6 +47,9 @@ module LaunchDarklyApi
|
|
|
47
47
|
# The success direction of a judge. Offline evaluations use it to decide whether a score passes. - `true`: A lower score is better. Use this for a judge that scores bad output, such as a toxicity or hallucination judge. - `false`: A higher score is better. Use this for a judge that scores good output, such as an accuracy or relevance judge. **Required for a custom judge.** A custom judge has `mode` set to `judge` and a `key` that is not a built-in judge key. Built-in judge keys are `ld-ai-judge-accuracy`, `ld-ai-judge-relevance`, and `ld-ai-judge-toxicity`, with or without a `-<timestamp>` suffix such as `ld-ai-judge-accuracy-1760000000000`. For a built-in judge key, this field is optional, and the API always uses the built-in direction. Do not send this field when `mode` is `agent` or `completion`. This field is not in the schema's `required` list, because only custom judges need it. The API returns a `400` error in these cases: - `isInverted is required for a custom judge: ...`: You create a custom judge without this field. Send `true` or `false`. - `isInverted is only supported for judge mode`: You send this field and `mode` is `agent` or `completion`. Remove the field, or set `mode` to `judge`. - `isInverted is not supported`: Custom judges are not available for your account. Remove the field from the request.
|
|
48
48
|
attr_accessor :is_inverted
|
|
49
49
|
|
|
50
|
+
# The judge's threshold: the pass line for its main score, from 0 to 1. It applies wherever the judge is used. Omit it to create the judge with no threshold. Send this field only when `mode` is `judge`. The API returns a `400` error in these cases: - `Threshold is only supported for judges`: You send this field and `mode` is `agent` or `completion`. - `Threshold must be from 0 to 1`: The value is below 0 or above 1. - `Thresholds don't support classifier rules yet`: The default variation uses classifier rules. - `Threshold is not supported`: Thresholds are not available for your account. Remove the field from the request.
|
|
51
|
+
attr_accessor :default_threshold
|
|
52
|
+
|
|
50
53
|
class EnumAttributeValidator
|
|
51
54
|
attr_reader :datatype
|
|
52
55
|
attr_reader :allowable_values
|
|
@@ -82,7 +85,8 @@ module LaunchDarklyApi
|
|
|
82
85
|
:'view_keys' => :'viewKeys',
|
|
83
86
|
:'default_variation' => :'defaultVariation',
|
|
84
87
|
:'evaluation_metric_key' => :'evaluationMetricKey',
|
|
85
|
-
:'is_inverted' => :'isInverted'
|
|
88
|
+
:'is_inverted' => :'isInverted',
|
|
89
|
+
:'default_threshold' => :'defaultThreshold'
|
|
86
90
|
}
|
|
87
91
|
end
|
|
88
92
|
|
|
@@ -109,7 +113,8 @@ module LaunchDarklyApi
|
|
|
109
113
|
:'view_keys' => :'Array<String>',
|
|
110
114
|
:'default_variation' => :'AIConfigVariationPost',
|
|
111
115
|
:'evaluation_metric_key' => :'String',
|
|
112
|
-
:'is_inverted' => :'Boolean'
|
|
116
|
+
:'is_inverted' => :'Boolean',
|
|
117
|
+
:'default_threshold' => :'Float'
|
|
113
118
|
}
|
|
114
119
|
end
|
|
115
120
|
|
|
@@ -190,6 +195,10 @@ module LaunchDarklyApi
|
|
|
190
195
|
if attributes.key?(:'is_inverted')
|
|
191
196
|
self.is_inverted = attributes[:'is_inverted']
|
|
192
197
|
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'default_threshold')
|
|
200
|
+
self.default_threshold = attributes[:'default_threshold']
|
|
201
|
+
end
|
|
193
202
|
end
|
|
194
203
|
|
|
195
204
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -264,7 +273,8 @@ module LaunchDarklyApi
|
|
|
264
273
|
view_keys == o.view_keys &&
|
|
265
274
|
default_variation == o.default_variation &&
|
|
266
275
|
evaluation_metric_key == o.evaluation_metric_key &&
|
|
267
|
-
is_inverted == o.is_inverted
|
|
276
|
+
is_inverted == o.is_inverted &&
|
|
277
|
+
default_threshold == o.default_threshold
|
|
268
278
|
end
|
|
269
279
|
|
|
270
280
|
# @see the `==` method
|
|
@@ -276,7 +286,7 @@ module LaunchDarklyApi
|
|
|
276
286
|
# Calculates hash code according to all attributes.
|
|
277
287
|
# @return [Integer] Hash code
|
|
278
288
|
def hash
|
|
279
|
-
[description, key, maintainer_id, maintainer_team_key, mode, name, tags, view_keys, default_variation, evaluation_metric_key, is_inverted].hash
|
|
289
|
+
[description, key, maintainer_id, maintainer_team_key, mode, name, tags, view_keys, default_variation, evaluation_metric_key, is_inverted, default_threshold].hash
|
|
280
290
|
end
|
|
281
291
|
|
|
282
292
|
# Builds the object from hash
|
|
@@ -25,16 +25,16 @@ module LaunchDarklyApi
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :experiments
|
|
27
27
|
|
|
28
|
-
# The
|
|
28
|
+
# The agent config key
|
|
29
29
|
attr_accessor :key
|
|
30
30
|
|
|
31
|
-
# The
|
|
31
|
+
# The agent config name
|
|
32
32
|
attr_accessor :name
|
|
33
33
|
|
|
34
34
|
# Tags for this resource
|
|
35
35
|
attr_accessor :tags
|
|
36
36
|
|
|
37
|
-
# The variations of this
|
|
37
|
+
# The variations of this agent config
|
|
38
38
|
attr_accessor :variations
|
|
39
39
|
|
|
40
40
|
# The version number of this resource
|
|
@@ -18,9 +18,20 @@ module LaunchDarklyApi
|
|
|
18
18
|
# The rule ID. Pass it as ruleId in targeting instructions that change this rule.
|
|
19
19
|
attr_accessor :_id
|
|
20
20
|
|
|
21
|
+
# Whether the rule is disabled. A disabled rule doesn't match any contexts.
|
|
22
|
+
attr_accessor :disabled
|
|
23
|
+
|
|
24
|
+
# The rule description
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
21
27
|
# The clauses a context must match
|
|
22
28
|
attr_accessor :clauses
|
|
23
29
|
|
|
30
|
+
# Index of the variation served by this rule
|
|
31
|
+
attr_accessor :variation
|
|
32
|
+
|
|
33
|
+
attr_accessor :rollout
|
|
34
|
+
|
|
24
35
|
# Whether to send detailed events for evaluations that match this rule
|
|
25
36
|
attr_accessor :track_events
|
|
26
37
|
|
|
@@ -28,7 +39,11 @@ module LaunchDarklyApi
|
|
|
28
39
|
def self.attribute_map
|
|
29
40
|
{
|
|
30
41
|
:'_id' => :'_id',
|
|
42
|
+
:'disabled' => :'disabled',
|
|
43
|
+
:'description' => :'description',
|
|
31
44
|
:'clauses' => :'clauses',
|
|
45
|
+
:'variation' => :'variation',
|
|
46
|
+
:'rollout' => :'rollout',
|
|
32
47
|
:'track_events' => :'trackEvents'
|
|
33
48
|
}
|
|
34
49
|
end
|
|
@@ -47,7 +62,11 @@ module LaunchDarklyApi
|
|
|
47
62
|
def self.openapi_types
|
|
48
63
|
{
|
|
49
64
|
:'_id' => :'String',
|
|
65
|
+
:'disabled' => :'Boolean',
|
|
66
|
+
:'description' => :'String',
|
|
50
67
|
:'clauses' => :'Array<AIConfigTargetingEnvironmentRuleClause>',
|
|
68
|
+
:'variation' => :'Integer',
|
|
69
|
+
:'rollout' => :'AIConfigTargetingEnvironmentFallthroughRollout',
|
|
51
70
|
:'track_events' => :'Boolean'
|
|
52
71
|
}
|
|
53
72
|
end
|
|
@@ -80,6 +99,14 @@ module LaunchDarklyApi
|
|
|
80
99
|
self._id = nil
|
|
81
100
|
end
|
|
82
101
|
|
|
102
|
+
if attributes.key?(:'disabled')
|
|
103
|
+
self.disabled = attributes[:'disabled']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'description')
|
|
107
|
+
self.description = attributes[:'description']
|
|
108
|
+
end
|
|
109
|
+
|
|
83
110
|
if attributes.key?(:'clauses')
|
|
84
111
|
if (value = attributes[:'clauses']).is_a?(Array)
|
|
85
112
|
self.clauses = value
|
|
@@ -88,6 +115,14 @@ module LaunchDarklyApi
|
|
|
88
115
|
self.clauses = nil
|
|
89
116
|
end
|
|
90
117
|
|
|
118
|
+
if attributes.key?(:'variation')
|
|
119
|
+
self.variation = attributes[:'variation']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'rollout')
|
|
123
|
+
self.rollout = attributes[:'rollout']
|
|
124
|
+
end
|
|
125
|
+
|
|
91
126
|
if attributes.key?(:'track_events')
|
|
92
127
|
self.track_events = attributes[:'track_events']
|
|
93
128
|
else
|
|
@@ -161,7 +196,11 @@ module LaunchDarklyApi
|
|
|
161
196
|
return true if self.equal?(o)
|
|
162
197
|
self.class == o.class &&
|
|
163
198
|
_id == o._id &&
|
|
199
|
+
disabled == o.disabled &&
|
|
200
|
+
description == o.description &&
|
|
164
201
|
clauses == o.clauses &&
|
|
202
|
+
variation == o.variation &&
|
|
203
|
+
rollout == o.rollout &&
|
|
165
204
|
track_events == o.track_events
|
|
166
205
|
end
|
|
167
206
|
|
|
@@ -174,7 +213,7 @@ module LaunchDarklyApi
|
|
|
174
213
|
# Calculates hash code according to all attributes.
|
|
175
214
|
# @return [Integer] Hash code
|
|
176
215
|
def hash
|
|
177
|
-
[_id, clauses, track_events].hash
|
|
216
|
+
[_id, disabled, description, clauses, variation, rollout, track_events].hash
|
|
178
217
|
end
|
|
179
218
|
|
|
180
219
|
# Builds the object from hash
|
|
@@ -18,6 +18,9 @@ module LaunchDarklyApi
|
|
|
18
18
|
# The context attribute to match
|
|
19
19
|
attr_accessor :attribute
|
|
20
20
|
|
|
21
|
+
# The context kind of the attribute to match. Omitted for clauses on the kind attribute, which match the context kind itself.
|
|
22
|
+
attr_accessor :context_kind
|
|
23
|
+
|
|
21
24
|
# The clause ID
|
|
22
25
|
attr_accessor :id
|
|
23
26
|
|
|
@@ -34,6 +37,7 @@ module LaunchDarklyApi
|
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
36
39
|
:'attribute' => :'attribute',
|
|
40
|
+
:'context_kind' => :'contextKind',
|
|
37
41
|
:'id' => :'id',
|
|
38
42
|
:'negate' => :'negate',
|
|
39
43
|
:'op' => :'op',
|
|
@@ -55,6 +59,7 @@ module LaunchDarklyApi
|
|
|
55
59
|
def self.openapi_types
|
|
56
60
|
{
|
|
57
61
|
:'attribute' => :'String',
|
|
62
|
+
:'context_kind' => :'String',
|
|
58
63
|
:'id' => :'String',
|
|
59
64
|
:'negate' => :'Boolean',
|
|
60
65
|
:'op' => :'String',
|
|
@@ -90,6 +95,10 @@ module LaunchDarklyApi
|
|
|
90
95
|
self.attribute = nil
|
|
91
96
|
end
|
|
92
97
|
|
|
98
|
+
if attributes.key?(:'context_kind')
|
|
99
|
+
self.context_kind = attributes[:'context_kind']
|
|
100
|
+
end
|
|
101
|
+
|
|
93
102
|
if attributes.key?(:'id')
|
|
94
103
|
self.id = attributes[:'id']
|
|
95
104
|
else
|
|
@@ -213,6 +222,7 @@ module LaunchDarklyApi
|
|
|
213
222
|
return true if self.equal?(o)
|
|
214
223
|
self.class == o.class &&
|
|
215
224
|
attribute == o.attribute &&
|
|
225
|
+
context_kind == o.context_kind &&
|
|
216
226
|
id == o.id &&
|
|
217
227
|
negate == o.negate &&
|
|
218
228
|
op == o.op &&
|
|
@@ -228,7 +238,7 @@ module LaunchDarklyApi
|
|
|
228
238
|
# Calculates hash code according to all attributes.
|
|
229
239
|
# @return [Integer] Hash code
|
|
230
240
|
def hash
|
|
231
|
-
[attribute, id, negate, op, values].hash
|
|
241
|
+
[attribute, context_kind, id, negate, op, values].hash
|
|
232
242
|
end
|
|
233
243
|
|
|
234
244
|
# Builds the object from hash
|
|
@@ -76,7 +76,7 @@ module LaunchDarklyApi
|
|
|
76
76
|
|
|
77
77
|
attr_accessor :judge_configuration
|
|
78
78
|
|
|
79
|
-
# Keys of the judge
|
|
79
|
+
# Keys of the judge agent configs attached to this variation
|
|
80
80
|
attr_accessor :judging_config_keys
|
|
81
81
|
|
|
82
82
|
class EnumAttributeValidator
|
|
@@ -48,7 +48,7 @@ module LaunchDarklyApi
|
|
|
48
48
|
# Whether to publish this version of the variation
|
|
49
49
|
attr_accessor :published
|
|
50
50
|
|
|
51
|
-
# The state to move the variation to. Omit this field to keep the current state. - `archived`: Archive a published variation. You cannot archive a variation that is already archived. You also cannot archive the only variation of an
|
|
51
|
+
# The state to move the variation to. Omit this field to keep the current state. - `archived`: Archive a published variation. You cannot archive a variation that is already archived. You also cannot archive the only variation of an agent config. An agent config itself cannot be archived. - `published`: Restore an archived variation. You cannot publish a variation that is already published.
|
|
52
52
|
attr_accessor :state
|
|
53
53
|
|
|
54
54
|
# List of tools to use for this variation. The latest version of the tool will be used.
|