launchdarkly_api 2.0.10 → 2.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +153 -151
- data/docs/AuditLogApi.md +7 -7
- data/docs/{Action.md → CopyActions.md} +1 -1
- data/docs/CustomProperty.md +1 -1
- data/docs/CustomRole.md +1 -1
- data/docs/CustomRoleBody.md +1 -1
- data/docs/CustomRoles.md +1 -1
- data/docs/CustomRolesApi.md +7 -6
- data/docs/CustomerMetricsApi.md +511 -0
- data/docs/DataExportDestinationsApi.md +293 -0
- data/docs/Destination.md +14 -0
- data/docs/DestinationAmazonKinesis.md +10 -0
- data/docs/DestinationBody.md +11 -0
- data/docs/DestinationGooglePubSub.md +9 -0
- data/docs/DestinationMParticle.md +11 -0
- data/docs/{CustomRoleKeyOrId.md → DestinationSegment.md} +2 -1
- data/docs/Destinations.md +9 -0
- data/docs/Environment.md +2 -0
- data/docs/EnvironmentPost.md +5 -0
- data/docs/EnvironmentsApi.md +11 -10
- data/docs/EvaluationUsageError.md +9 -0
- data/docs/Events.md +8 -0
- data/docs/FeatureFlag.md +4 -1
- data/docs/FeatureFlagConfig.md +0 -1
- data/docs/FeatureFlagCopyBody.md +12 -0
- data/docs/FeatureFlagCopyObject.md +9 -0
- data/docs/FeatureFlagStatus.md +1 -1
- data/docs/FeatureFlagStatusAcrossEnvironments.md +10 -0
- data/docs/FeatureFlagStatusForQueriedEnvironment.md +10 -0
- data/docs/FeatureFlagsApi.md +136 -17
- data/docs/MAU.md +10 -0
- data/docs/{Actions.md → MAUMetadata.md} +1 -1
- data/docs/MAUbyCategory.md +10 -0
- data/docs/Member.md +2 -0
- data/docs/Members.md +1 -1
- data/docs/MembersBody.md +1 -1
- data/docs/Policy.md +4 -2
- data/docs/ProjectBody.md +2 -0
- data/docs/ProjectsApi.md +7 -6
- data/docs/Rollout.md +1 -0
- data/docs/Statement.md +4 -4
- data/docs/Stream.md +10 -0
- data/docs/StreamBySDK.md +10 -0
- data/docs/StreamBySDKLinks.md +9 -0
- data/docs/StreamBySDKLinksMetadata.md +10 -0
- data/docs/StreamLinks.md +10 -0
- data/docs/StreamSDKVersion.md +9 -0
- data/docs/StreamSDKVersionData.md +9 -0
- data/docs/StreamUsageError.md +9 -0
- data/docs/StreamUsageLinks.md +10 -0
- data/docs/StreamUsageMetadata.md +10 -0
- data/docs/StreamUsageSeries.md +9 -0
- data/docs/Streams.md +8 -0
- data/docs/TeamMembersApi.md +7 -6
- data/docs/Usage.md +9 -0
- data/docs/{CustomProperties.md → UsageError.md} +2 -1
- data/docs/UsageLinks.md +10 -0
- data/docs/UserSegmentsApi.md +18 -17
- data/docs/UserSettingsApi.md +11 -11
- data/docs/UsersApi.md +15 -15
- data/docs/Webhook.md +1 -0
- data/docs/WebhookBody.md +2 -0
- data/docs/WebhooksApi.md +7 -6
- data/launchdarkly_api.gemspec +5 -6
- data/lib/launchdarkly_api/api/audit_log_api.rb +13 -19
- data/lib/launchdarkly_api/api/custom_roles_api.rb +23 -37
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +519 -0
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +330 -0
- data/lib/launchdarkly_api/api/environments_api.rb +20 -31
- data/lib/launchdarkly_api/api/feature_flags_api.rb +150 -43
- data/lib/launchdarkly_api/api/projects_api.rb +23 -37
- data/lib/launchdarkly_api/api/root_api.rb +6 -9
- data/lib/launchdarkly_api/api/team_members_api.rb +23 -37
- data/lib/launchdarkly_api/api/user_segments_api.rb +23 -37
- data/lib/launchdarkly_api/api/user_settings_api.rb +12 -21
- data/lib/launchdarkly_api/api/users_api.rb +17 -29
- data/lib/launchdarkly_api/api/webhooks_api.rb +23 -37
- data/lib/launchdarkly_api/api_client.rb +10 -10
- data/lib/launchdarkly_api/api_error.rb +2 -2
- data/lib/launchdarkly_api/configuration.rb +3 -3
- data/lib/launchdarkly_api/models/audit_log_entries.rb +7 -12
- data/lib/launchdarkly_api/models/audit_log_entry.rb +7 -12
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +7 -12
- data/lib/launchdarkly_api/models/clause.rb +7 -12
- data/lib/launchdarkly_api/models/copy_actions.rb +34 -0
- data/lib/launchdarkly_api/models/custom_property.rb +13 -14
- data/lib/launchdarkly_api/models/custom_property_values.rb +7 -11
- data/lib/launchdarkly_api/models/custom_role.rb +9 -13
- data/lib/launchdarkly_api/models/custom_role_body.rb +12 -16
- data/lib/launchdarkly_api/models/custom_roles.rb +11 -14
- data/lib/launchdarkly_api/models/destination.rb +276 -0
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +201 -0
- data/lib/launchdarkly_api/models/destination_body.rb +263 -0
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +192 -0
- data/lib/launchdarkly_api/models/destination_m_particle.rb +210 -0
- data/lib/launchdarkly_api/models/destination_segment.rb +183 -0
- data/lib/launchdarkly_api/models/destinations.rb +194 -0
- data/lib/launchdarkly_api/models/environment.rb +29 -14
- data/lib/launchdarkly_api/models/environment_post.rb +64 -17
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +192 -0
- data/lib/launchdarkly_api/models/{action.rb → events.rb} +17 -13
- data/lib/launchdarkly_api/models/fallthrough.rb +7 -12
- data/lib/launchdarkly_api/models/feature_flag.rb +46 -16
- data/lib/launchdarkly_api/models/feature_flag_body.rb +10 -15
- data/lib/launchdarkly_api/models/feature_flag_config.rb +8 -24
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +226 -0
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +199 -0
- data/lib/launchdarkly_api/models/feature_flag_status.rb +22 -26
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +203 -0
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +236 -0
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +7 -12
- data/lib/launchdarkly_api/models/feature_flags.rb +7 -12
- data/lib/launchdarkly_api/models/id.rb +7 -11
- data/lib/launchdarkly_api/models/link.rb +7 -12
- data/lib/launchdarkly_api/models/links.rb +7 -12
- data/lib/launchdarkly_api/models/ma_uby_category.rb +205 -0
- data/lib/launchdarkly_api/models/mau.rb +205 -0
- data/lib/launchdarkly_api/models/{actions.rb → mau_metadata.rb} +8 -13
- data/lib/launchdarkly_api/models/member.rb +26 -13
- data/lib/launchdarkly_api/models/members.rb +11 -14
- data/lib/launchdarkly_api/models/members_body.rb +9 -14
- data/lib/launchdarkly_api/models/patch_comment.rb +7 -12
- data/lib/launchdarkly_api/models/patch_operation.rb +10 -15
- data/lib/launchdarkly_api/models/policy.rb +40 -17
- data/lib/launchdarkly_api/models/prerequisite.rb +7 -12
- data/lib/launchdarkly_api/models/project.rb +7 -12
- data/lib/launchdarkly_api/models/project_body.rb +30 -15
- data/lib/launchdarkly_api/models/projects.rb +7 -12
- data/lib/launchdarkly_api/models/role.rb +7 -8
- data/lib/launchdarkly_api/models/rollout.rb +17 -13
- data/lib/launchdarkly_api/models/rule.rb +7 -12
- data/lib/launchdarkly_api/models/statement.rb +35 -31
- data/lib/launchdarkly_api/models/statements.rb +7 -12
- data/lib/launchdarkly_api/models/stream.rb +205 -0
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +205 -0
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +192 -0
- data/lib/launchdarkly_api/models/{resources.rb → stream_by_sdk_links_metadata.rb} +34 -12
- data/lib/launchdarkly_api/models/stream_links.rb +204 -0
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +194 -0
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +194 -0
- data/lib/launchdarkly_api/models/stream_usage_error.rb +192 -0
- data/lib/launchdarkly_api/models/stream_usage_links.rb +204 -0
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +203 -0
- data/lib/launchdarkly_api/models/stream_usage_series.rb +194 -0
- data/lib/launchdarkly_api/models/{custom_properties.rb → streams.rb} +17 -13
- data/lib/launchdarkly_api/models/target.rb +7 -12
- data/lib/launchdarkly_api/models/usage.rb +194 -0
- data/lib/launchdarkly_api/models/{custom_role_key_or_id.rb → usage_error.rb} +17 -13
- data/lib/launchdarkly_api/models/usage_links.rb +204 -0
- data/lib/launchdarkly_api/models/user.rb +7 -12
- data/lib/launchdarkly_api/models/user_flag_setting.rb +7 -12
- data/lib/launchdarkly_api/models/user_flag_settings.rb +7 -12
- data/lib/launchdarkly_api/models/user_record.rb +7 -12
- data/lib/launchdarkly_api/models/user_segment.rb +10 -15
- data/lib/launchdarkly_api/models/user_segment_body.rb +9 -14
- data/lib/launchdarkly_api/models/user_segment_rule.rb +7 -12
- data/lib/launchdarkly_api/models/user_segments.rb +7 -12
- data/lib/launchdarkly_api/models/user_settings_body.rb +7 -12
- data/lib/launchdarkly_api/models/users.rb +7 -12
- data/lib/launchdarkly_api/models/variation.rb +8 -13
- data/lib/launchdarkly_api/models/webhook.rb +17 -13
- data/lib/launchdarkly_api/models/webhook_body.rb +33 -17
- data/lib/launchdarkly_api/models/webhooks.rb +7 -12
- data/lib/launchdarkly_api/models/weighted_variation.rb +7 -12
- data/lib/launchdarkly_api/version.rb +3 -3
- data/lib/launchdarkly_api.rb +36 -8
- data/openapi.yml +1004 -115
- data/spec/api/audit_log_api_spec.rb +6 -8
- data/spec/api/custom_roles_api_spec.rb +8 -13
- data/spec/api/customer_metrics_api_spec.rb +141 -0
- data/spec/api/data_export_destinations_api_spec.rb +98 -0
- data/spec/api/environments_api_spec.rb +7 -11
- data/spec/api/feature_flags_api_spec.rb +36 -16
- data/spec/api/projects_api_spec.rb +8 -13
- data/spec/api/root_api_spec.rb +3 -4
- data/spec/api/team_members_api_spec.rb +8 -13
- data/spec/api/user_segments_api_spec.rb +8 -13
- data/spec/api/user_settings_api_spec.rb +5 -8
- data/spec/api/users_api_spec.rb +7 -11
- data/spec/api/webhooks_api_spec.rb +8 -13
- data/spec/api_client_spec.rb +36 -36
- data/spec/configuration_spec.rb +10 -10
- data/spec/models/audit_log_entries_spec.rb +4 -5
- data/spec/models/audit_log_entry_spec.rb +14 -15
- data/spec/models/audit_log_entry_target_spec.rb +5 -6
- data/spec/models/clause_spec.rb +6 -7
- data/spec/models/{action_spec.rb → copy_actions_spec.rb} +8 -9
- data/spec/models/custom_property_spec.rb +4 -5
- data/spec/models/custom_property_values_spec.rb +2 -3
- data/spec/models/custom_role_body_spec.rb +6 -7
- data/spec/models/custom_role_spec.rb +8 -9
- data/spec/models/custom_roles_spec.rb +4 -5
- data/spec/models/destination_amazon_kinesis_spec.rb +53 -0
- data/spec/models/destination_body_spec.rb +63 -0
- data/spec/models/destination_google_pub_sub_spec.rb +47 -0
- data/spec/models/destination_m_particle_spec.rb +59 -0
- data/spec/models/destination_segment_spec.rb +41 -0
- data/spec/models/destination_spec.rb +81 -0
- data/spec/models/destinations_spec.rb +47 -0
- data/spec/models/environment_post_spec.rb +36 -7
- data/spec/models/environment_spec.rb +25 -14
- data/spec/models/evaluation_usage_error_spec.rb +47 -0
- data/spec/models/events_spec.rb +41 -0
- data/spec/models/fallthrough_spec.rb +4 -5
- data/spec/models/feature_flag_body_spec.rb +9 -10
- data/spec/models/feature_flag_config_spec.rb +14 -21
- data/spec/models/feature_flag_copy_body_spec.rb +65 -0
- data/spec/models/feature_flag_copy_object_spec.rb +47 -0
- data/spec/models/feature_flag_spec.rb +35 -18
- data/spec/models/feature_flag_status_across_environments_spec.rb +53 -0
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +57 -0
- data/spec/models/feature_flag_status_spec.rb +14 -15
- data/spec/models/feature_flag_statuses_spec.rb +4 -5
- data/spec/models/feature_flags_spec.rb +4 -5
- data/spec/models/id_spec.rb +2 -3
- data/spec/models/link_spec.rb +4 -5
- data/spec/models/links_spec.rb +4 -5
- data/spec/models/ma_uby_category_spec.rb +53 -0
- data/spec/models/{actions_spec.rb → mau_metadata_spec.rb} +8 -9
- data/spec/models/mau_spec.rb +53 -0
- data/spec/models/member_spec.rb +21 -10
- data/spec/models/members_body_spec.rb +8 -9
- data/spec/models/members_spec.rb +4 -5
- data/spec/models/patch_comment_spec.rb +4 -5
- data/spec/models/patch_operation_spec.rb +5 -6
- data/spec/models/policy_spec.rb +17 -6
- data/spec/models/prerequisite_spec.rb +4 -5
- data/spec/models/project_body_spec.rb +17 -6
- data/spec/models/project_spec.rb +8 -9
- data/spec/models/projects_spec.rb +4 -5
- data/spec/models/role_spec.rb +2 -3
- data/spec/models/rollout_spec.rb +9 -4
- data/spec/models/rule_spec.rb +6 -7
- data/spec/models/statement_spec.rb +13 -14
- data/spec/models/statements_spec.rb +2 -3
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +53 -0
- data/spec/models/stream_by_sdk_links_spec.rb +47 -0
- data/spec/models/stream_by_sdk_spec.rb +53 -0
- data/spec/models/stream_links_spec.rb +53 -0
- data/spec/models/stream_sdk_version_data_spec.rb +47 -0
- data/spec/models/stream_sdk_version_spec.rb +47 -0
- data/spec/models/stream_spec.rb +53 -0
- data/spec/models/stream_usage_error_spec.rb +47 -0
- data/spec/models/stream_usage_links_spec.rb +53 -0
- data/spec/models/stream_usage_metadata_spec.rb +53 -0
- data/spec/models/stream_usage_series_spec.rb +47 -0
- data/spec/models/streams_spec.rb +41 -0
- data/spec/models/target_spec.rb +4 -5
- data/spec/models/usage_error_spec.rb +41 -0
- data/spec/models/usage_links_spec.rb +53 -0
- data/spec/models/usage_spec.rb +47 -0
- data/spec/models/user_flag_setting_spec.rb +5 -6
- data/spec/models/user_flag_settings_spec.rb +4 -5
- data/spec/models/user_record_spec.rb +7 -8
- data/spec/models/user_segment_body_spec.rb +6 -7
- data/spec/models/user_segment_rule_spec.rb +5 -6
- data/spec/models/user_segment_spec.rb +12 -13
- data/spec/models/user_segments_spec.rb +4 -5
- data/spec/models/user_settings_body_spec.rb +3 -4
- data/spec/models/user_spec.rb +13 -14
- data/spec/models/users_spec.rb +5 -6
- data/spec/models/variation_spec.rb +5 -6
- data/spec/models/webhook_body_spec.rb +19 -8
- data/spec/models/webhook_spec.rb +15 -10
- data/spec/models/webhooks_spec.rb +4 -5
- data/spec/models/weighted_variation_spec.rb +4 -5
- data/spec/spec_helper.rb +2 -2
- metadata +187 -74
- data/docs/Resource.md +0 -7
- data/docs/Resources.md +0 -7
- data/lib/launchdarkly_api/models/resource.rb +0 -179
- data/spec/models/custom_properties_spec.rb +0 -36
- data/spec/models/custom_role_key_or_id_spec.rb +0 -36
- data/spec/models/resource_spec.rb +0 -36
- data/spec/models/resources_spec.rb +0 -36
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
|
-
|
17
16
|
class AuditLogEntry
|
18
17
|
attr_accessor :_links
|
19
18
|
|
@@ -39,7 +38,6 @@ module LaunchDarklyApi
|
|
39
38
|
|
40
39
|
attr_accessor :target
|
41
40
|
|
42
|
-
|
43
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
42
|
def self.attribute_map
|
45
43
|
{
|
@@ -82,7 +80,7 @@ module LaunchDarklyApi
|
|
82
80
|
return unless attributes.is_a?(Hash)
|
83
81
|
|
84
82
|
# convert string to symbol for hash key
|
85
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
83
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
86
84
|
|
87
85
|
if attributes.has_key?(:'_links')
|
88
86
|
self._links = attributes[:'_links']
|
@@ -131,20 +129,19 @@ module LaunchDarklyApi
|
|
131
129
|
if attributes.has_key?(:'target')
|
132
130
|
self.target = attributes[:'target']
|
133
131
|
end
|
134
|
-
|
135
132
|
end
|
136
133
|
|
137
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
138
135
|
# @return Array for valid properties with the reasons
|
139
136
|
def list_invalid_properties
|
140
137
|
invalid_properties = Array.new
|
141
|
-
|
138
|
+
invalid_properties
|
142
139
|
end
|
143
140
|
|
144
141
|
# Check to see if the all the properties in the model are valid
|
145
142
|
# @return true if the model is valid
|
146
143
|
def valid?
|
147
|
-
|
144
|
+
true
|
148
145
|
end
|
149
146
|
|
150
147
|
# Checks equality by comparing each attribute.
|
@@ -188,7 +185,7 @@ module LaunchDarklyApi
|
|
188
185
|
# check to ensure the input is an array given that the the attribute
|
189
186
|
# is documented as an array but the input is not
|
190
187
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
191
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
188
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
192
189
|
end
|
193
190
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
194
191
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -270,7 +267,7 @@ module LaunchDarklyApi
|
|
270
267
|
# @return [Hash] Returns the value in the form of hash
|
271
268
|
def _to_hash(value)
|
272
269
|
if value.is_a?(Array)
|
273
|
-
value.compact.map{ |v| _to_hash(v) }
|
270
|
+
value.compact.map { |v| _to_hash(v) }
|
274
271
|
elsif value.is_a?(Hash)
|
275
272
|
{}.tap do |hash|
|
276
273
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -281,7 +278,5 @@ module LaunchDarklyApi
|
|
281
278
|
value
|
282
279
|
end
|
283
280
|
end
|
284
|
-
|
285
281
|
end
|
286
|
-
|
287
282
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
|
-
|
17
16
|
class AuditLogEntryTarget
|
18
17
|
attr_accessor :_links
|
19
18
|
|
@@ -21,7 +20,6 @@ module LaunchDarklyApi
|
|
21
20
|
|
22
21
|
attr_accessor :resources
|
23
22
|
|
24
|
-
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
24
|
def self.attribute_map
|
27
25
|
{
|
@@ -46,7 +44,7 @@ module LaunchDarklyApi
|
|
46
44
|
return unless attributes.is_a?(Hash)
|
47
45
|
|
48
46
|
# convert string to symbol for hash key
|
49
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
50
48
|
|
51
49
|
if attributes.has_key?(:'_links')
|
52
50
|
self._links = attributes[:'_links']
|
@@ -61,20 +59,19 @@ module LaunchDarklyApi
|
|
61
59
|
self.resources = value
|
62
60
|
end
|
63
61
|
end
|
64
|
-
|
65
62
|
end
|
66
63
|
|
67
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
65
|
# @return Array for valid properties with the reasons
|
69
66
|
def list_invalid_properties
|
70
67
|
invalid_properties = Array.new
|
71
|
-
|
68
|
+
invalid_properties
|
72
69
|
end
|
73
70
|
|
74
71
|
# Check to see if the all the properties in the model are valid
|
75
72
|
# @return true if the model is valid
|
76
73
|
def valid?
|
77
|
-
|
74
|
+
true
|
78
75
|
end
|
79
76
|
|
80
77
|
# Checks equality by comparing each attribute.
|
@@ -109,7 +106,7 @@ module LaunchDarklyApi
|
|
109
106
|
# check to ensure the input is an array given that the the attribute
|
110
107
|
# is documented as an array but the input is not
|
111
108
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
112
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
113
110
|
end
|
114
111
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
112
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -191,7 +188,7 @@ module LaunchDarklyApi
|
|
191
188
|
# @return [Hash] Returns the value in the form of hash
|
192
189
|
def _to_hash(value)
|
193
190
|
if value.is_a?(Array)
|
194
|
-
value.compact.map{ |v| _to_hash(v) }
|
191
|
+
value.compact.map { |v| _to_hash(v) }
|
195
192
|
elsif value.is_a?(Hash)
|
196
193
|
{}.tap do |hash|
|
197
194
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -202,7 +199,5 @@ module LaunchDarklyApi
|
|
202
199
|
value
|
203
200
|
end
|
204
201
|
end
|
205
|
-
|
206
202
|
end
|
207
|
-
|
208
203
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
|
-
|
17
16
|
class Clause
|
18
17
|
attr_accessor :attribute
|
19
18
|
|
@@ -23,7 +22,6 @@ module LaunchDarklyApi
|
|
23
22
|
|
24
23
|
attr_accessor :negate
|
25
24
|
|
26
|
-
|
27
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
26
|
def self.attribute_map
|
29
27
|
{
|
@@ -50,7 +48,7 @@ module LaunchDarklyApi
|
|
50
48
|
return unless attributes.is_a?(Hash)
|
51
49
|
|
52
50
|
# convert string to symbol for hash key
|
53
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
54
52
|
|
55
53
|
if attributes.has_key?(:'attribute')
|
56
54
|
self.attribute = attributes[:'attribute']
|
@@ -69,20 +67,19 @@ module LaunchDarklyApi
|
|
69
67
|
if attributes.has_key?(:'negate')
|
70
68
|
self.negate = attributes[:'negate']
|
71
69
|
end
|
72
|
-
|
73
70
|
end
|
74
71
|
|
75
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
73
|
# @return Array for valid properties with the reasons
|
77
74
|
def list_invalid_properties
|
78
75
|
invalid_properties = Array.new
|
79
|
-
|
76
|
+
invalid_properties
|
80
77
|
end
|
81
78
|
|
82
79
|
# Check to see if the all the properties in the model are valid
|
83
80
|
# @return true if the model is valid
|
84
81
|
def valid?
|
85
|
-
|
82
|
+
true
|
86
83
|
end
|
87
84
|
|
88
85
|
# Checks equality by comparing each attribute.
|
@@ -118,7 +115,7 @@ module LaunchDarklyApi
|
|
118
115
|
# check to ensure the input is an array given that the the attribute
|
119
116
|
# is documented as an array but the input is not
|
120
117
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
121
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
122
119
|
end
|
123
120
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
121
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -200,7 +197,7 @@ module LaunchDarklyApi
|
|
200
197
|
# @return [Hash] Returns the value in the form of hash
|
201
198
|
def _to_hash(value)
|
202
199
|
if value.is_a?(Array)
|
203
|
-
value.compact.map{ |v| _to_hash(v) }
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
204
201
|
elsif value.is_a?(Hash)
|
205
202
|
{}.tap do |hash|
|
206
203
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -211,7 +208,5 @@ module LaunchDarklyApi
|
|
211
208
|
value
|
212
209
|
end
|
213
210
|
end
|
214
|
-
|
215
211
|
end
|
216
|
-
|
217
212
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#LaunchDarkly REST API
|
3
|
+
|
4
|
+
#Build custom integrations with the LaunchDarkly REST API
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
|
+
Contact: support@launchdarkly.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module LaunchDarklyApi
|
16
|
+
class CopyActions
|
17
|
+
|
18
|
+
UPDATE_ON = 'updateOn'.freeze
|
19
|
+
UPDATE_PREREQUISITES = 'updatePrerequisites'.freeze
|
20
|
+
UPDATE_TARGETS = 'updateTargets'.freeze
|
21
|
+
UPDATE_RULES = 'updateRules'.freeze
|
22
|
+
UPDATE_FALLTHROUGH = 'updateFallthrough'.freeze
|
23
|
+
UPDATE_OFF_VARIATION = 'updateOffVariation'.freeze
|
24
|
+
|
25
|
+
# Builds the enum from string
|
26
|
+
# @param [String] The enum value in the form of the string
|
27
|
+
# @return [String] The enum value
|
28
|
+
def build_from_hash(value)
|
29
|
+
constantValues = CopyActions.constants.select { |c| CopyActions::const_get(c) == value }
|
30
|
+
raise "Invalid ENUM value #{value} for class #CopyActions" if constantValues.empty?
|
31
|
+
value
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,9 +18,9 @@ module LaunchDarklyApi
|
|
18
18
|
# The name of the property.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
+
# Values for this property.
|
21
22
|
attr_accessor :value
|
22
23
|
|
23
|
-
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
@@ -33,7 +33,7 @@ module LaunchDarklyApi
|
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
35
|
:'name' => :'String',
|
36
|
-
:'value' => :'
|
36
|
+
:'value' => :'Array<String>'
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
@@ -43,16 +43,17 @@ module LaunchDarklyApi
|
|
43
43
|
return unless attributes.is_a?(Hash)
|
44
44
|
|
45
45
|
# convert string to symbol for hash key
|
46
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
47
47
|
|
48
48
|
if attributes.has_key?(:'name')
|
49
49
|
self.name = attributes[:'name']
|
50
50
|
end
|
51
51
|
|
52
52
|
if attributes.has_key?(:'value')
|
53
|
-
|
53
|
+
if (value = attributes[:'value']).is_a?(Array)
|
54
|
+
self.value = value
|
55
|
+
end
|
54
56
|
end
|
55
|
-
|
56
57
|
end
|
57
58
|
|
58
59
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -60,17 +61,17 @@ module LaunchDarklyApi
|
|
60
61
|
def list_invalid_properties
|
61
62
|
invalid_properties = Array.new
|
62
63
|
if @name.nil?
|
63
|
-
invalid_properties.push(
|
64
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
64
65
|
end
|
65
66
|
|
66
|
-
|
67
|
+
invalid_properties
|
67
68
|
end
|
68
69
|
|
69
70
|
# Check to see if the all the properties in the model are valid
|
70
71
|
# @return true if the model is valid
|
71
72
|
def valid?
|
72
73
|
return false if @name.nil?
|
73
|
-
|
74
|
+
true
|
74
75
|
end
|
75
76
|
|
76
77
|
# Checks equality by comparing each attribute.
|
@@ -104,7 +105,7 @@ module LaunchDarklyApi
|
|
104
105
|
# check to ensure the input is an array given that the the attribute
|
105
106
|
# is documented as an array but the input is not
|
106
107
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
108
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
108
109
|
end
|
109
110
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
111
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -186,7 +187,7 @@ module LaunchDarklyApi
|
|
186
187
|
# @return [Hash] Returns the value in the form of hash
|
187
188
|
def _to_hash(value)
|
188
189
|
if value.is_a?(Array)
|
189
|
-
value.compact.map{ |v| _to_hash(v) }
|
190
|
+
value.compact.map { |v| _to_hash(v) }
|
190
191
|
elsif value.is_a?(Hash)
|
191
192
|
{}.tap do |hash|
|
192
193
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -197,7 +198,5 @@ module LaunchDarklyApi
|
|
197
198
|
value
|
198
199
|
end
|
199
200
|
end
|
200
|
-
|
201
201
|
end
|
202
|
-
|
203
202
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,7 +15,6 @@ require 'date'
|
|
15
15
|
module LaunchDarklyApi
|
16
16
|
# Values for this property.
|
17
17
|
class CustomPropertyValues
|
18
|
-
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
19
|
def self.attribute_map
|
21
20
|
{
|
@@ -34,21 +33,20 @@ module LaunchDarklyApi
|
|
34
33
|
return unless attributes.is_a?(Hash)
|
35
34
|
|
36
35
|
# convert string to symbol for hash key
|
37
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
38
|
-
|
36
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
39
37
|
end
|
40
38
|
|
41
39
|
# Show invalid properties with the reasons. Usually used together with valid?
|
42
40
|
# @return Array for valid properties with the reasons
|
43
41
|
def list_invalid_properties
|
44
42
|
invalid_properties = Array.new
|
45
|
-
|
43
|
+
invalid_properties
|
46
44
|
end
|
47
45
|
|
48
46
|
# Check to see if the all the properties in the model are valid
|
49
47
|
# @return true if the model is valid
|
50
48
|
def valid?
|
51
|
-
|
49
|
+
true
|
52
50
|
end
|
53
51
|
|
54
52
|
# Checks equality by comparing each attribute.
|
@@ -80,7 +78,7 @@ module LaunchDarklyApi
|
|
80
78
|
# check to ensure the input is an array given that the the attribute
|
81
79
|
# is documented as an array but the input is not
|
82
80
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
83
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
81
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
84
82
|
end
|
85
83
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
86
84
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -162,7 +160,7 @@ module LaunchDarklyApi
|
|
162
160
|
# @return [Hash] Returns the value in the form of hash
|
163
161
|
def _to_hash(value)
|
164
162
|
if value.is_a?(Array)
|
165
|
-
value.compact.map{ |v| _to_hash(v) }
|
163
|
+
value.compact.map { |v| _to_hash(v) }
|
166
164
|
elsif value.is_a?(Hash)
|
167
165
|
{}.tap do |hash|
|
168
166
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -173,7 +171,5 @@ module LaunchDarklyApi
|
|
173
171
|
value
|
174
172
|
end
|
175
173
|
end
|
176
|
-
|
177
174
|
end
|
178
|
-
|
179
175
|
end
|
@@ -3,23 +3,23 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
|
-
|
17
16
|
class CustomRole
|
18
17
|
attr_accessor :_links
|
19
18
|
|
20
19
|
# Name of the custom role.
|
21
20
|
attr_accessor :name
|
22
21
|
|
22
|
+
# The 20-hexdigit id or the key for a custom role.
|
23
23
|
attr_accessor :key
|
24
24
|
|
25
25
|
# Description of the custom role.
|
@@ -29,7 +29,6 @@ module LaunchDarklyApi
|
|
29
29
|
|
30
30
|
attr_accessor :policy
|
31
31
|
|
32
|
-
|
33
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
33
|
def self.attribute_map
|
35
34
|
{
|
@@ -47,7 +46,7 @@ module LaunchDarklyApi
|
|
47
46
|
{
|
48
47
|
:'_links' => :'Links',
|
49
48
|
:'name' => :'String',
|
50
|
-
:'key' => :'
|
49
|
+
:'key' => :'String',
|
51
50
|
:'description' => :'String',
|
52
51
|
:'_id' => :'Id',
|
53
52
|
:'policy' => :'Array<Policy>'
|
@@ -60,7 +59,7 @@ module LaunchDarklyApi
|
|
60
59
|
return unless attributes.is_a?(Hash)
|
61
60
|
|
62
61
|
# convert string to symbol for hash key
|
63
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
64
63
|
|
65
64
|
if attributes.has_key?(:'_links')
|
66
65
|
self._links = attributes[:'_links']
|
@@ -87,20 +86,19 @@ module LaunchDarklyApi
|
|
87
86
|
self.policy = value
|
88
87
|
end
|
89
88
|
end
|
90
|
-
|
91
89
|
end
|
92
90
|
|
93
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
94
92
|
# @return Array for valid properties with the reasons
|
95
93
|
def list_invalid_properties
|
96
94
|
invalid_properties = Array.new
|
97
|
-
|
95
|
+
invalid_properties
|
98
96
|
end
|
99
97
|
|
100
98
|
# Check to see if the all the properties in the model are valid
|
101
99
|
# @return true if the model is valid
|
102
100
|
def valid?
|
103
|
-
|
101
|
+
true
|
104
102
|
end
|
105
103
|
|
106
104
|
# Checks equality by comparing each attribute.
|
@@ -138,7 +136,7 @@ module LaunchDarklyApi
|
|
138
136
|
# check to ensure the input is an array given that the the attribute
|
139
137
|
# is documented as an array but the input is not
|
140
138
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
141
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
142
140
|
end
|
143
141
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
144
142
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -220,7 +218,7 @@ module LaunchDarklyApi
|
|
220
218
|
# @return [Hash] Returns the value in the form of hash
|
221
219
|
def _to_hash(value)
|
222
220
|
if value.is_a?(Array)
|
223
|
-
value.compact.map{ |v| _to_hash(v) }
|
221
|
+
value.compact.map { |v| _to_hash(v) }
|
224
222
|
elsif value.is_a?(Hash)
|
225
223
|
{}.tap do |hash|
|
226
224
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -231,7 +229,5 @@ module LaunchDarklyApi
|
|
231
229
|
value
|
232
230
|
end
|
233
231
|
end
|
234
|
-
|
235
232
|
end
|
236
|
-
|
237
233
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.27
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module LaunchDarklyApi
|
16
|
-
|
17
16
|
class CustomRoleBody
|
18
17
|
# Name of the custom role.
|
19
18
|
attr_accessor :name
|
@@ -21,11 +20,11 @@ module LaunchDarklyApi
|
|
21
20
|
# Description of the custom role.
|
22
21
|
attr_accessor :description
|
23
22
|
|
23
|
+
# The 20-hexdigit id or the key for a custom role.
|
24
24
|
attr_accessor :key
|
25
25
|
|
26
26
|
attr_accessor :policy
|
27
27
|
|
28
|
-
|
29
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
29
|
def self.attribute_map
|
31
30
|
{
|
@@ -41,7 +40,7 @@ module LaunchDarklyApi
|
|
41
40
|
{
|
42
41
|
:'name' => :'String',
|
43
42
|
:'description' => :'String',
|
44
|
-
:'key' => :'
|
43
|
+
:'key' => :'String',
|
45
44
|
:'policy' => :'Array<Policy>'
|
46
45
|
}
|
47
46
|
end
|
@@ -52,7 +51,7 @@ module LaunchDarklyApi
|
|
52
51
|
return unless attributes.is_a?(Hash)
|
53
52
|
|
54
53
|
# convert string to symbol for hash key
|
55
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
55
|
|
57
56
|
if attributes.has_key?(:'name')
|
58
57
|
self.name = attributes[:'name']
|
@@ -71,7 +70,6 @@ module LaunchDarklyApi
|
|
71
70
|
self.policy = value
|
72
71
|
end
|
73
72
|
end
|
74
|
-
|
75
73
|
end
|
76
74
|
|
77
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -79,18 +77,18 @@ module LaunchDarklyApi
|
|
79
77
|
def list_invalid_properties
|
80
78
|
invalid_properties = Array.new
|
81
79
|
if @name.nil?
|
82
|
-
invalid_properties.push(
|
80
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
83
81
|
end
|
84
82
|
|
85
83
|
if @key.nil?
|
86
|
-
invalid_properties.push(
|
84
|
+
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
87
85
|
end
|
88
86
|
|
89
87
|
if @policy.nil?
|
90
|
-
invalid_properties.push(
|
88
|
+
invalid_properties.push('invalid value for "policy", policy cannot be nil.')
|
91
89
|
end
|
92
90
|
|
93
|
-
|
91
|
+
invalid_properties
|
94
92
|
end
|
95
93
|
|
96
94
|
# Check to see if the all the properties in the model are valid
|
@@ -99,7 +97,7 @@ module LaunchDarklyApi
|
|
99
97
|
return false if @name.nil?
|
100
98
|
return false if @key.nil?
|
101
99
|
return false if @policy.nil?
|
102
|
-
|
100
|
+
true
|
103
101
|
end
|
104
102
|
|
105
103
|
# Checks equality by comparing each attribute.
|
@@ -135,7 +133,7 @@ module LaunchDarklyApi
|
|
135
133
|
# check to ensure the input is an array given that the the attribute
|
136
134
|
# is documented as an array but the input is not
|
137
135
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
138
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
136
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
139
137
|
end
|
140
138
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
141
139
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -217,7 +215,7 @@ module LaunchDarklyApi
|
|
217
215
|
# @return [Hash] Returns the value in the form of hash
|
218
216
|
def _to_hash(value)
|
219
217
|
if value.is_a?(Array)
|
220
|
-
value.compact.map{ |v| _to_hash(v) }
|
218
|
+
value.compact.map { |v| _to_hash(v) }
|
221
219
|
elsif value.is_a?(Hash)
|
222
220
|
{}.tap do |hash|
|
223
221
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -228,7 +226,5 @@ module LaunchDarklyApi
|
|
228
226
|
value
|
229
227
|
end
|
230
228
|
end
|
231
|
-
|
232
229
|
end
|
233
|
-
|
234
230
|
end
|