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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: launchdarkly_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LaunchDarkly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -201,35 +201,50 @@ files:
|
|
201
201
|
- LICENSE.txt
|
202
202
|
- README.md
|
203
203
|
- Rakefile
|
204
|
-
- docs/Action.md
|
205
|
-
- docs/Actions.md
|
206
204
|
- docs/AuditLogApi.md
|
207
205
|
- docs/AuditLogEntries.md
|
208
206
|
- docs/AuditLogEntry.md
|
209
207
|
- docs/AuditLogEntryTarget.md
|
210
208
|
- docs/Clause.md
|
211
|
-
- docs/
|
209
|
+
- docs/CopyActions.md
|
212
210
|
- docs/CustomProperty.md
|
213
211
|
- docs/CustomPropertyValues.md
|
214
212
|
- docs/CustomRole.md
|
215
213
|
- docs/CustomRoleBody.md
|
216
|
-
- docs/CustomRoleKeyOrId.md
|
217
214
|
- docs/CustomRoles.md
|
218
215
|
- docs/CustomRolesApi.md
|
216
|
+
- docs/CustomerMetricsApi.md
|
217
|
+
- docs/DataExportDestinationsApi.md
|
218
|
+
- docs/Destination.md
|
219
|
+
- docs/DestinationAmazonKinesis.md
|
220
|
+
- docs/DestinationBody.md
|
221
|
+
- docs/DestinationGooglePubSub.md
|
222
|
+
- docs/DestinationMParticle.md
|
223
|
+
- docs/DestinationSegment.md
|
224
|
+
- docs/Destinations.md
|
219
225
|
- docs/Environment.md
|
220
226
|
- docs/EnvironmentPost.md
|
221
227
|
- docs/EnvironmentsApi.md
|
228
|
+
- docs/EvaluationUsageError.md
|
229
|
+
- docs/Events.md
|
222
230
|
- docs/Fallthrough.md
|
223
231
|
- docs/FeatureFlag.md
|
224
232
|
- docs/FeatureFlagBody.md
|
225
233
|
- docs/FeatureFlagConfig.md
|
234
|
+
- docs/FeatureFlagCopyBody.md
|
235
|
+
- docs/FeatureFlagCopyObject.md
|
226
236
|
- docs/FeatureFlagStatus.md
|
237
|
+
- docs/FeatureFlagStatusAcrossEnvironments.md
|
238
|
+
- docs/FeatureFlagStatusForQueriedEnvironment.md
|
227
239
|
- docs/FeatureFlagStatuses.md
|
228
240
|
- docs/FeatureFlags.md
|
229
241
|
- docs/FeatureFlagsApi.md
|
230
242
|
- docs/Id.md
|
231
243
|
- docs/Link.md
|
232
244
|
- docs/Links.md
|
245
|
+
- docs/MAU.md
|
246
|
+
- docs/MAUMetadata.md
|
247
|
+
- docs/MAUbyCategory.md
|
233
248
|
- docs/Member.md
|
234
249
|
- docs/Members.md
|
235
250
|
- docs/MembersBody.md
|
@@ -241,16 +256,29 @@ files:
|
|
241
256
|
- docs/ProjectBody.md
|
242
257
|
- docs/Projects.md
|
243
258
|
- docs/ProjectsApi.md
|
244
|
-
- docs/Resource.md
|
245
|
-
- docs/Resources.md
|
246
259
|
- docs/Role.md
|
247
260
|
- docs/Rollout.md
|
248
261
|
- docs/RootApi.md
|
249
262
|
- docs/Rule.md
|
250
263
|
- docs/Statement.md
|
251
264
|
- docs/Statements.md
|
265
|
+
- docs/Stream.md
|
266
|
+
- docs/StreamBySDK.md
|
267
|
+
- docs/StreamBySDKLinks.md
|
268
|
+
- docs/StreamBySDKLinksMetadata.md
|
269
|
+
- docs/StreamLinks.md
|
270
|
+
- docs/StreamSDKVersion.md
|
271
|
+
- docs/StreamSDKVersionData.md
|
272
|
+
- docs/StreamUsageError.md
|
273
|
+
- docs/StreamUsageLinks.md
|
274
|
+
- docs/StreamUsageMetadata.md
|
275
|
+
- docs/StreamUsageSeries.md
|
276
|
+
- docs/Streams.md
|
252
277
|
- docs/Target.md
|
253
278
|
- docs/TeamMembersApi.md
|
279
|
+
- docs/Usage.md
|
280
|
+
- docs/UsageError.md
|
281
|
+
- docs/UsageLinks.md
|
254
282
|
- docs/User.md
|
255
283
|
- docs/UserFlagSetting.md
|
256
284
|
- docs/UserFlagSettings.md
|
@@ -275,6 +303,8 @@ files:
|
|
275
303
|
- lib/launchdarkly_api.rb
|
276
304
|
- lib/launchdarkly_api/api/audit_log_api.rb
|
277
305
|
- lib/launchdarkly_api/api/custom_roles_api.rb
|
306
|
+
- lib/launchdarkly_api/api/customer_metrics_api.rb
|
307
|
+
- lib/launchdarkly_api/api/data_export_destinations_api.rb
|
278
308
|
- lib/launchdarkly_api/api/environments_api.rb
|
279
309
|
- lib/launchdarkly_api/api/feature_flags_api.rb
|
280
310
|
- lib/launchdarkly_api/api/projects_api.rb
|
@@ -287,31 +317,44 @@ files:
|
|
287
317
|
- lib/launchdarkly_api/api_client.rb
|
288
318
|
- lib/launchdarkly_api/api_error.rb
|
289
319
|
- lib/launchdarkly_api/configuration.rb
|
290
|
-
- lib/launchdarkly_api/models/action.rb
|
291
|
-
- lib/launchdarkly_api/models/actions.rb
|
292
320
|
- lib/launchdarkly_api/models/audit_log_entries.rb
|
293
321
|
- lib/launchdarkly_api/models/audit_log_entry.rb
|
294
322
|
- lib/launchdarkly_api/models/audit_log_entry_target.rb
|
295
323
|
- lib/launchdarkly_api/models/clause.rb
|
296
|
-
- lib/launchdarkly_api/models/
|
324
|
+
- lib/launchdarkly_api/models/copy_actions.rb
|
297
325
|
- lib/launchdarkly_api/models/custom_property.rb
|
298
326
|
- lib/launchdarkly_api/models/custom_property_values.rb
|
299
327
|
- lib/launchdarkly_api/models/custom_role.rb
|
300
328
|
- lib/launchdarkly_api/models/custom_role_body.rb
|
301
|
-
- lib/launchdarkly_api/models/custom_role_key_or_id.rb
|
302
329
|
- lib/launchdarkly_api/models/custom_roles.rb
|
330
|
+
- lib/launchdarkly_api/models/destination.rb
|
331
|
+
- lib/launchdarkly_api/models/destination_amazon_kinesis.rb
|
332
|
+
- lib/launchdarkly_api/models/destination_body.rb
|
333
|
+
- lib/launchdarkly_api/models/destination_google_pub_sub.rb
|
334
|
+
- lib/launchdarkly_api/models/destination_m_particle.rb
|
335
|
+
- lib/launchdarkly_api/models/destination_segment.rb
|
336
|
+
- lib/launchdarkly_api/models/destinations.rb
|
303
337
|
- lib/launchdarkly_api/models/environment.rb
|
304
338
|
- lib/launchdarkly_api/models/environment_post.rb
|
339
|
+
- lib/launchdarkly_api/models/evaluation_usage_error.rb
|
340
|
+
- lib/launchdarkly_api/models/events.rb
|
305
341
|
- lib/launchdarkly_api/models/fallthrough.rb
|
306
342
|
- lib/launchdarkly_api/models/feature_flag.rb
|
307
343
|
- lib/launchdarkly_api/models/feature_flag_body.rb
|
308
344
|
- lib/launchdarkly_api/models/feature_flag_config.rb
|
345
|
+
- lib/launchdarkly_api/models/feature_flag_copy_body.rb
|
346
|
+
- lib/launchdarkly_api/models/feature_flag_copy_object.rb
|
309
347
|
- lib/launchdarkly_api/models/feature_flag_status.rb
|
348
|
+
- lib/launchdarkly_api/models/feature_flag_status_across_environments.rb
|
349
|
+
- lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb
|
310
350
|
- lib/launchdarkly_api/models/feature_flag_statuses.rb
|
311
351
|
- lib/launchdarkly_api/models/feature_flags.rb
|
312
352
|
- lib/launchdarkly_api/models/id.rb
|
313
353
|
- lib/launchdarkly_api/models/link.rb
|
314
354
|
- lib/launchdarkly_api/models/links.rb
|
355
|
+
- lib/launchdarkly_api/models/ma_uby_category.rb
|
356
|
+
- lib/launchdarkly_api/models/mau.rb
|
357
|
+
- lib/launchdarkly_api/models/mau_metadata.rb
|
315
358
|
- lib/launchdarkly_api/models/member.rb
|
316
359
|
- lib/launchdarkly_api/models/members.rb
|
317
360
|
- lib/launchdarkly_api/models/members_body.rb
|
@@ -322,14 +365,27 @@ files:
|
|
322
365
|
- lib/launchdarkly_api/models/project.rb
|
323
366
|
- lib/launchdarkly_api/models/project_body.rb
|
324
367
|
- lib/launchdarkly_api/models/projects.rb
|
325
|
-
- lib/launchdarkly_api/models/resource.rb
|
326
|
-
- lib/launchdarkly_api/models/resources.rb
|
327
368
|
- lib/launchdarkly_api/models/role.rb
|
328
369
|
- lib/launchdarkly_api/models/rollout.rb
|
329
370
|
- lib/launchdarkly_api/models/rule.rb
|
330
371
|
- lib/launchdarkly_api/models/statement.rb
|
331
372
|
- lib/launchdarkly_api/models/statements.rb
|
373
|
+
- lib/launchdarkly_api/models/stream.rb
|
374
|
+
- lib/launchdarkly_api/models/stream_by_sdk.rb
|
375
|
+
- lib/launchdarkly_api/models/stream_by_sdk_links.rb
|
376
|
+
- lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb
|
377
|
+
- lib/launchdarkly_api/models/stream_links.rb
|
378
|
+
- lib/launchdarkly_api/models/stream_sdk_version.rb
|
379
|
+
- lib/launchdarkly_api/models/stream_sdk_version_data.rb
|
380
|
+
- lib/launchdarkly_api/models/stream_usage_error.rb
|
381
|
+
- lib/launchdarkly_api/models/stream_usage_links.rb
|
382
|
+
- lib/launchdarkly_api/models/stream_usage_metadata.rb
|
383
|
+
- lib/launchdarkly_api/models/stream_usage_series.rb
|
384
|
+
- lib/launchdarkly_api/models/streams.rb
|
332
385
|
- lib/launchdarkly_api/models/target.rb
|
386
|
+
- lib/launchdarkly_api/models/usage.rb
|
387
|
+
- lib/launchdarkly_api/models/usage_error.rb
|
388
|
+
- lib/launchdarkly_api/models/usage_links.rb
|
333
389
|
- lib/launchdarkly_api/models/user.rb
|
334
390
|
- lib/launchdarkly_api/models/user_flag_setting.rb
|
335
391
|
- lib/launchdarkly_api/models/user_flag_settings.rb
|
@@ -349,6 +405,8 @@ files:
|
|
349
405
|
- openapi.yml
|
350
406
|
- spec/api/audit_log_api_spec.rb
|
351
407
|
- spec/api/custom_roles_api_spec.rb
|
408
|
+
- spec/api/customer_metrics_api_spec.rb
|
409
|
+
- spec/api/data_export_destinations_api_spec.rb
|
352
410
|
- spec/api/environments_api_spec.rb
|
353
411
|
- spec/api/feature_flags_api_spec.rb
|
354
412
|
- spec/api/projects_api_spec.rb
|
@@ -360,31 +418,44 @@ files:
|
|
360
418
|
- spec/api/webhooks_api_spec.rb
|
361
419
|
- spec/api_client_spec.rb
|
362
420
|
- spec/configuration_spec.rb
|
363
|
-
- spec/models/action_spec.rb
|
364
|
-
- spec/models/actions_spec.rb
|
365
421
|
- spec/models/audit_log_entries_spec.rb
|
366
422
|
- spec/models/audit_log_entry_spec.rb
|
367
423
|
- spec/models/audit_log_entry_target_spec.rb
|
368
424
|
- spec/models/clause_spec.rb
|
369
|
-
- spec/models/
|
425
|
+
- spec/models/copy_actions_spec.rb
|
370
426
|
- spec/models/custom_property_spec.rb
|
371
427
|
- spec/models/custom_property_values_spec.rb
|
372
428
|
- spec/models/custom_role_body_spec.rb
|
373
|
-
- spec/models/custom_role_key_or_id_spec.rb
|
374
429
|
- spec/models/custom_role_spec.rb
|
375
430
|
- spec/models/custom_roles_spec.rb
|
431
|
+
- spec/models/destination_amazon_kinesis_spec.rb
|
432
|
+
- spec/models/destination_body_spec.rb
|
433
|
+
- spec/models/destination_google_pub_sub_spec.rb
|
434
|
+
- spec/models/destination_m_particle_spec.rb
|
435
|
+
- spec/models/destination_segment_spec.rb
|
436
|
+
- spec/models/destination_spec.rb
|
437
|
+
- spec/models/destinations_spec.rb
|
376
438
|
- spec/models/environment_post_spec.rb
|
377
439
|
- spec/models/environment_spec.rb
|
440
|
+
- spec/models/evaluation_usage_error_spec.rb
|
441
|
+
- spec/models/events_spec.rb
|
378
442
|
- spec/models/fallthrough_spec.rb
|
379
443
|
- spec/models/feature_flag_body_spec.rb
|
380
444
|
- spec/models/feature_flag_config_spec.rb
|
445
|
+
- spec/models/feature_flag_copy_body_spec.rb
|
446
|
+
- spec/models/feature_flag_copy_object_spec.rb
|
381
447
|
- spec/models/feature_flag_spec.rb
|
448
|
+
- spec/models/feature_flag_status_across_environments_spec.rb
|
449
|
+
- spec/models/feature_flag_status_for_queried_environment_spec.rb
|
382
450
|
- spec/models/feature_flag_status_spec.rb
|
383
451
|
- spec/models/feature_flag_statuses_spec.rb
|
384
452
|
- spec/models/feature_flags_spec.rb
|
385
453
|
- spec/models/id_spec.rb
|
386
454
|
- spec/models/link_spec.rb
|
387
455
|
- spec/models/links_spec.rb
|
456
|
+
- spec/models/ma_uby_category_spec.rb
|
457
|
+
- spec/models/mau_metadata_spec.rb
|
458
|
+
- spec/models/mau_spec.rb
|
388
459
|
- spec/models/member_spec.rb
|
389
460
|
- spec/models/members_body_spec.rb
|
390
461
|
- spec/models/members_spec.rb
|
@@ -395,14 +466,27 @@ files:
|
|
395
466
|
- spec/models/project_body_spec.rb
|
396
467
|
- spec/models/project_spec.rb
|
397
468
|
- spec/models/projects_spec.rb
|
398
|
-
- spec/models/resource_spec.rb
|
399
|
-
- spec/models/resources_spec.rb
|
400
469
|
- spec/models/role_spec.rb
|
401
470
|
- spec/models/rollout_spec.rb
|
402
471
|
- spec/models/rule_spec.rb
|
403
472
|
- spec/models/statement_spec.rb
|
404
473
|
- spec/models/statements_spec.rb
|
474
|
+
- spec/models/stream_by_sdk_links_metadata_spec.rb
|
475
|
+
- spec/models/stream_by_sdk_links_spec.rb
|
476
|
+
- spec/models/stream_by_sdk_spec.rb
|
477
|
+
- spec/models/stream_links_spec.rb
|
478
|
+
- spec/models/stream_sdk_version_data_spec.rb
|
479
|
+
- spec/models/stream_sdk_version_spec.rb
|
480
|
+
- spec/models/stream_spec.rb
|
481
|
+
- spec/models/stream_usage_error_spec.rb
|
482
|
+
- spec/models/stream_usage_links_spec.rb
|
483
|
+
- spec/models/stream_usage_metadata_spec.rb
|
484
|
+
- spec/models/stream_usage_series_spec.rb
|
485
|
+
- spec/models/streams_spec.rb
|
405
486
|
- spec/models/target_spec.rb
|
487
|
+
- spec/models/usage_error_spec.rb
|
488
|
+
- spec/models/usage_links_spec.rb
|
489
|
+
- spec/models/usage_spec.rb
|
406
490
|
- spec/models/user_flag_setting_spec.rb
|
407
491
|
- spec/models/user_flag_settings_spec.rb
|
408
492
|
- spec/models/user_record_spec.rb
|
@@ -420,7 +504,8 @@ files:
|
|
420
504
|
- spec/models/weighted_variation_spec.rb
|
421
505
|
- spec/spec_helper.rb
|
422
506
|
homepage: https://github.com/launchdarkly/api-client-ruby
|
423
|
-
licenses:
|
507
|
+
licenses:
|
508
|
+
- Unlicense
|
424
509
|
metadata: {}
|
425
510
|
post_install_message:
|
426
511
|
rdoc_options: []
|
@@ -438,80 +523,108 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
438
523
|
version: '0'
|
439
524
|
requirements: []
|
440
525
|
rubyforge_project:
|
441
|
-
rubygems_version: 2.
|
526
|
+
rubygems_version: 2.5.2.3
|
442
527
|
signing_key:
|
443
528
|
specification_version: 4
|
444
529
|
summary: LaunchDarkly REST API Ruby Gem
|
445
530
|
test_files:
|
446
|
-
- spec/api/root_api_spec.rb
|
447
|
-
- spec/api/user_settings_api_spec.rb
|
448
|
-
- spec/api/webhooks_api_spec.rb
|
449
|
-
- spec/api/audit_log_api_spec.rb
|
450
531
|
- spec/api/user_segments_api_spec.rb
|
451
532
|
- spec/api/custom_roles_api_spec.rb
|
452
|
-
- spec/api/
|
533
|
+
- spec/api/user_settings_api_spec.rb
|
453
534
|
- spec/api/team_members_api_spec.rb
|
535
|
+
- spec/api/webhooks_api_spec.rb
|
454
536
|
- spec/api/environments_api_spec.rb
|
537
|
+
- spec/api/projects_api_spec.rb
|
538
|
+
- spec/api/data_export_destinations_api_spec.rb
|
455
539
|
- spec/api/users_api_spec.rb
|
456
540
|
- spec/api/feature_flags_api_spec.rb
|
541
|
+
- spec/api/root_api_spec.rb
|
542
|
+
- spec/api/customer_metrics_api_spec.rb
|
543
|
+
- spec/api/audit_log_api_spec.rb
|
457
544
|
- spec/api_client_spec.rb
|
458
545
|
- spec/configuration_spec.rb
|
459
|
-
- spec/models/
|
460
|
-
- spec/models/
|
461
|
-
- spec/models/
|
462
|
-
- spec/models/
|
463
|
-
- spec/models/
|
464
|
-
- spec/models/
|
465
|
-
- spec/models/
|
466
|
-
- spec/models/
|
467
|
-
- spec/models/
|
546
|
+
- spec/models/feature_flag_status_across_environments_spec.rb
|
547
|
+
- spec/models/mau_metadata_spec.rb
|
548
|
+
- spec/models/webhook_spec.rb
|
549
|
+
- spec/models/custom_role_body_spec.rb
|
550
|
+
- spec/models/usage_spec.rb
|
551
|
+
- spec/models/destination_amazon_kinesis_spec.rb
|
552
|
+
- spec/models/evaluation_usage_error_spec.rb
|
553
|
+
- spec/models/custom_property_spec.rb
|
554
|
+
- spec/models/stream_links_spec.rb
|
555
|
+
- spec/models/destination_body_spec.rb
|
556
|
+
- spec/models/feature_flag_config_spec.rb
|
468
557
|
- spec/models/user_segment_spec.rb
|
469
|
-
- spec/models/
|
470
|
-
- spec/models/
|
471
|
-
- spec/models/
|
472
|
-
- spec/models/
|
558
|
+
- spec/models/destination_segment_spec.rb
|
559
|
+
- spec/models/stream_usage_error_spec.rb
|
560
|
+
- spec/models/feature_flags_spec.rb
|
561
|
+
- spec/models/copy_actions_spec.rb
|
562
|
+
- spec/models/project_spec.rb
|
563
|
+
- spec/models/feature_flag_statuses_spec.rb
|
564
|
+
- spec/models/usage_error_spec.rb
|
565
|
+
- spec/models/prerequisite_spec.rb
|
566
|
+
- spec/models/audit_log_entries_spec.rb
|
567
|
+
- spec/models/user_segment_body_spec.rb
|
568
|
+
- spec/models/usage_links_spec.rb
|
569
|
+
- spec/models/rollout_spec.rb
|
473
570
|
- spec/models/environment_spec.rb
|
474
|
-
- spec/models/
|
571
|
+
- spec/models/webhook_body_spec.rb
|
572
|
+
- spec/models/user_flag_settings_spec.rb
|
573
|
+
- spec/models/id_spec.rb
|
574
|
+
- spec/models/stream_usage_links_spec.rb
|
575
|
+
- spec/models/custom_property_values_spec.rb
|
576
|
+
- spec/models/environment_post_spec.rb
|
577
|
+
- spec/models/members_body_spec.rb
|
578
|
+
- spec/models/streams_spec.rb
|
475
579
|
- spec/models/statements_spec.rb
|
476
|
-
- spec/models/
|
477
|
-
- spec/models/
|
478
|
-
- spec/models/
|
479
|
-
- spec/models/
|
580
|
+
- spec/models/user_settings_body_spec.rb
|
581
|
+
- spec/models/rule_spec.rb
|
582
|
+
- spec/models/links_spec.rb
|
583
|
+
- spec/models/stream_by_sdk_spec.rb
|
584
|
+
- spec/models/stream_sdk_version_data_spec.rb
|
480
585
|
- spec/models/patch_operation_spec.rb
|
586
|
+
- spec/models/stream_spec.rb
|
587
|
+
- spec/models/custom_roles_spec.rb
|
588
|
+
- spec/models/destination_m_particle_spec.rb
|
481
589
|
- spec/models/feature_flag_spec.rb
|
482
|
-
- spec/models/
|
483
|
-
- spec/models/
|
590
|
+
- spec/models/destinations_spec.rb
|
591
|
+
- spec/models/stream_by_sdk_links_spec.rb
|
592
|
+
- spec/models/feature_flag_status_spec.rb
|
593
|
+
- spec/models/stream_by_sdk_links_metadata_spec.rb
|
594
|
+
- spec/models/audit_log_entry_spec.rb
|
595
|
+
- spec/models/mau_spec.rb
|
596
|
+
- spec/models/feature_flag_copy_body_spec.rb
|
484
597
|
- spec/models/project_body_spec.rb
|
598
|
+
- spec/models/clause_spec.rb
|
599
|
+
- spec/models/custom_role_spec.rb
|
600
|
+
- spec/models/feature_flag_status_for_queried_environment_spec.rb
|
601
|
+
- spec/models/members_spec.rb
|
602
|
+
- spec/models/stream_usage_series_spec.rb
|
485
603
|
- spec/models/target_spec.rb
|
486
|
-
- spec/models/
|
487
|
-
- spec/models/
|
488
|
-
- spec/models/
|
489
|
-
- spec/models/
|
490
|
-
- spec/models/
|
491
|
-
- spec/models/
|
492
|
-
- spec/models/resource_spec.rb
|
493
|
-
- spec/models/link_spec.rb
|
494
|
-
- spec/models/custom_property_spec.rb
|
495
|
-
- spec/models/feature_flags_spec.rb
|
604
|
+
- spec/models/projects_spec.rb
|
605
|
+
- spec/models/feature_flag_copy_object_spec.rb
|
606
|
+
- spec/models/user_record_spec.rb
|
607
|
+
- spec/models/stream_usage_metadata_spec.rb
|
608
|
+
- spec/models/fallthrough_spec.rb
|
609
|
+
- spec/models/stream_sdk_version_spec.rb
|
496
610
|
- spec/models/weighted_variation_spec.rb
|
497
|
-
- spec/models/user_settings_body_spec.rb
|
498
|
-
- spec/models/resources_spec.rb
|
499
|
-
- spec/models/custom_role_spec.rb
|
500
|
-
- spec/models/rule_spec.rb
|
501
|
-
- spec/models/members_body_spec.rb
|
502
611
|
- spec/models/users_spec.rb
|
503
|
-
- spec/models/
|
504
|
-
- spec/models/
|
505
|
-
- spec/models/project_spec.rb
|
506
|
-
- spec/models/user_segment_body_spec.rb
|
507
|
-
- spec/models/id_spec.rb
|
508
|
-
- spec/models/projects_spec.rb
|
509
|
-
- spec/models/feature_flag_statuses_spec.rb
|
510
|
-
- spec/models/feature_flag_config_spec.rb
|
511
|
-
- spec/models/rollout_spec.rb
|
612
|
+
- spec/models/destination_spec.rb
|
613
|
+
- spec/models/user_flag_setting_spec.rb
|
512
614
|
- spec/models/patch_comment_spec.rb
|
615
|
+
- spec/models/webhooks_spec.rb
|
616
|
+
- spec/models/user_spec.rb
|
513
617
|
- spec/models/role_spec.rb
|
514
|
-
- spec/models/
|
515
|
-
- spec/models/
|
516
|
-
- spec/models/
|
618
|
+
- spec/models/user_segments_spec.rb
|
619
|
+
- spec/models/statement_spec.rb
|
620
|
+
- spec/models/destination_google_pub_sub_spec.rb
|
621
|
+
- spec/models/user_segment_rule_spec.rb
|
622
|
+
- spec/models/policy_spec.rb
|
623
|
+
- spec/models/ma_uby_category_spec.rb
|
624
|
+
- spec/models/events_spec.rb
|
625
|
+
- spec/models/variation_spec.rb
|
626
|
+
- spec/models/feature_flag_body_spec.rb
|
627
|
+
- spec/models/link_spec.rb
|
628
|
+
- spec/models/member_spec.rb
|
629
|
+
- spec/models/audit_log_entry_target_spec.rb
|
517
630
|
- spec/spec_helper.rb
|
data/docs/Resource.md
DELETED
data/docs/Resources.md
DELETED
@@ -1,179 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#LaunchDarkly REST API
|
3
|
-
|
4
|
-
#Build custom integrations with the LaunchDarkly REST API
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.0.10
|
7
|
-
Contact: support@launchdarkly.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module LaunchDarklyApi
|
16
|
-
# A resource specifier string
|
17
|
-
class Resource
|
18
|
-
|
19
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
-
def self.attribute_map
|
21
|
-
{
|
22
|
-
}
|
23
|
-
end
|
24
|
-
|
25
|
-
# Attribute type mapping.
|
26
|
-
def self.swagger_types
|
27
|
-
{
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
# Initializes the object
|
32
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
33
|
-
def initialize(attributes = {})
|
34
|
-
return unless attributes.is_a?(Hash)
|
35
|
-
|
36
|
-
# convert string to symbol for hash key
|
37
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
38
|
-
|
39
|
-
end
|
40
|
-
|
41
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
42
|
-
# @return Array for valid properties with the reasons
|
43
|
-
def list_invalid_properties
|
44
|
-
invalid_properties = Array.new
|
45
|
-
return invalid_properties
|
46
|
-
end
|
47
|
-
|
48
|
-
# Check to see if the all the properties in the model are valid
|
49
|
-
# @return true if the model is valid
|
50
|
-
def valid?
|
51
|
-
return true
|
52
|
-
end
|
53
|
-
|
54
|
-
# Checks equality by comparing each attribute.
|
55
|
-
# @param [Object] Object to be compared
|
56
|
-
def ==(o)
|
57
|
-
return true if self.equal?(o)
|
58
|
-
self.class == o.class
|
59
|
-
end
|
60
|
-
|
61
|
-
# @see the `==` method
|
62
|
-
# @param [Object] Object to be compared
|
63
|
-
def eql?(o)
|
64
|
-
self == o
|
65
|
-
end
|
66
|
-
|
67
|
-
# Calculates hash code according to all attributes.
|
68
|
-
# @return [Fixnum] Hash code
|
69
|
-
def hash
|
70
|
-
[].hash
|
71
|
-
end
|
72
|
-
|
73
|
-
# Builds the object from hash
|
74
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
-
# @return [Object] Returns the model itself
|
76
|
-
def build_from_hash(attributes)
|
77
|
-
return nil unless attributes.is_a?(Hash)
|
78
|
-
self.class.swagger_types.each_pair do |key, type|
|
79
|
-
if type =~ /\AArray<(.*)>/i
|
80
|
-
# check to ensure the input is an array given that the the attribute
|
81
|
-
# is documented as an array but the input is not
|
82
|
-
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) } )
|
84
|
-
end
|
85
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
86
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
87
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
88
|
-
end
|
89
|
-
|
90
|
-
self
|
91
|
-
end
|
92
|
-
|
93
|
-
# Deserializes the data based on type
|
94
|
-
# @param string type Data type
|
95
|
-
# @param string value Value to be deserialized
|
96
|
-
# @return [Object] Deserialized data
|
97
|
-
def _deserialize(type, value)
|
98
|
-
case type.to_sym
|
99
|
-
when :DateTime
|
100
|
-
DateTime.parse(value)
|
101
|
-
when :Date
|
102
|
-
Date.parse(value)
|
103
|
-
when :String
|
104
|
-
value.to_s
|
105
|
-
when :Integer
|
106
|
-
value.to_i
|
107
|
-
when :Float
|
108
|
-
value.to_f
|
109
|
-
when :BOOLEAN
|
110
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
111
|
-
true
|
112
|
-
else
|
113
|
-
false
|
114
|
-
end
|
115
|
-
when :Object
|
116
|
-
# generic object (usually a Hash), return directly
|
117
|
-
value
|
118
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
119
|
-
inner_type = Regexp.last_match[:inner_type]
|
120
|
-
value.map { |v| _deserialize(inner_type, v) }
|
121
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
122
|
-
k_type = Regexp.last_match[:k_type]
|
123
|
-
v_type = Regexp.last_match[:v_type]
|
124
|
-
{}.tap do |hash|
|
125
|
-
value.each do |k, v|
|
126
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
127
|
-
end
|
128
|
-
end
|
129
|
-
else # model
|
130
|
-
temp_model = LaunchDarklyApi.const_get(type).new
|
131
|
-
temp_model.build_from_hash(value)
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
# Returns the string representation of the object
|
136
|
-
# @return [String] String presentation of the object
|
137
|
-
def to_s
|
138
|
-
to_hash.to_s
|
139
|
-
end
|
140
|
-
|
141
|
-
# to_body is an alias to to_hash (backward compatibility)
|
142
|
-
# @return [Hash] Returns the object in the form of hash
|
143
|
-
def to_body
|
144
|
-
to_hash
|
145
|
-
end
|
146
|
-
|
147
|
-
# Returns the object in the form of hash
|
148
|
-
# @return [Hash] Returns the object in the form of hash
|
149
|
-
def to_hash
|
150
|
-
hash = {}
|
151
|
-
self.class.attribute_map.each_pair do |attr, param|
|
152
|
-
value = self.send(attr)
|
153
|
-
next if value.nil?
|
154
|
-
hash[param] = _to_hash(value)
|
155
|
-
end
|
156
|
-
hash
|
157
|
-
end
|
158
|
-
|
159
|
-
# Outputs non-array value in the form of hash
|
160
|
-
# For object, use to_hash. Otherwise, just return the value
|
161
|
-
# @param [Object] value Any valid value
|
162
|
-
# @return [Hash] Returns the value in the form of hash
|
163
|
-
def _to_hash(value)
|
164
|
-
if value.is_a?(Array)
|
165
|
-
value.compact.map{ |v| _to_hash(v) }
|
166
|
-
elsif value.is_a?(Hash)
|
167
|
-
{}.tap do |hash|
|
168
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
169
|
-
end
|
170
|
-
elsif value.respond_to? :to_hash
|
171
|
-
value.to_hash
|
172
|
-
else
|
173
|
-
value
|
174
|
-
end
|
175
|
-
end
|
176
|
-
|
177
|
-
end
|
178
|
-
|
179
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#LaunchDarkly REST API
|
3
|
-
|
4
|
-
#Build custom integrations with the LaunchDarkly REST API
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.0.10
|
7
|
-
Contact: support@launchdarkly.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for LaunchDarklyApi::CustomProperties
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'CustomProperties' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = LaunchDarklyApi::CustomProperties.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of CustomProperties' do
|
31
|
-
it 'should create an instance of CustomProperties' do
|
32
|
-
expect(@instance).to be_instance_of(LaunchDarklyApi::CustomProperties)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|