launchdarkly_api 2.0.10 → 2.0.27
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 +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
data/docs/UserSegmentsApi.md
CHANGED
|
@@ -30,11 +30,11 @@ end
|
|
|
30
30
|
|
|
31
31
|
api_instance = LaunchDarklyApi::UserSegmentsApi.new
|
|
32
32
|
|
|
33
|
-
project_key =
|
|
33
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
34
34
|
|
|
35
|
-
environment_key =
|
|
35
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
36
36
|
|
|
37
|
-
user_segment_key =
|
|
37
|
+
user_segment_key = 'user_segment_key_example' # String | The user segment's key. The key identifies the user segment in your code.
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
begin
|
|
@@ -87,11 +87,11 @@ end
|
|
|
87
87
|
|
|
88
88
|
api_instance = LaunchDarklyApi::UserSegmentsApi.new
|
|
89
89
|
|
|
90
|
-
project_key =
|
|
90
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
91
91
|
|
|
92
|
-
environment_key =
|
|
92
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
93
93
|
|
|
94
|
-
user_segment_key =
|
|
94
|
+
user_segment_key = 'user_segment_key_example' # String | The user segment's key. The key identifies the user segment in your code.
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
begin
|
|
@@ -145,12 +145,12 @@ end
|
|
|
145
145
|
|
|
146
146
|
api_instance = LaunchDarklyApi::UserSegmentsApi.new
|
|
147
147
|
|
|
148
|
-
project_key =
|
|
148
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
149
149
|
|
|
150
|
-
environment_key =
|
|
150
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
151
151
|
|
|
152
152
|
opts = {
|
|
153
|
-
tag:
|
|
153
|
+
tag: 'tag_example' # String | Filter by tag. A tag can be used to group flags across projects.
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
begin
|
|
@@ -204,11 +204,11 @@ end
|
|
|
204
204
|
|
|
205
205
|
api_instance = LaunchDarklyApi::UserSegmentsApi.new
|
|
206
206
|
|
|
207
|
-
project_key =
|
|
207
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
208
208
|
|
|
209
|
-
environment_key =
|
|
209
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
210
210
|
|
|
211
|
-
user_segment_key =
|
|
211
|
+
user_segment_key = 'user_segment_key_example' # String | The user segment's key. The key identifies the user segment in your code.
|
|
212
212
|
|
|
213
213
|
patch_only = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' Feature flag patches also support JSON Merge Patch format. 'https://tools.ietf.org/html/rfc7386' The addition of comments is also supported.
|
|
214
214
|
|
|
@@ -247,7 +247,7 @@ Name | Type | Description | Notes
|
|
|
247
247
|
|
|
248
248
|
|
|
249
249
|
# **post_user_segment**
|
|
250
|
-
> post_user_segment(project_key, environment_key, user_segment_body)
|
|
250
|
+
> UserSegment post_user_segment(project_key, environment_key, user_segment_body)
|
|
251
251
|
|
|
252
252
|
Creates a new user segment.
|
|
253
253
|
|
|
@@ -265,16 +265,17 @@ end
|
|
|
265
265
|
|
|
266
266
|
api_instance = LaunchDarklyApi::UserSegmentsApi.new
|
|
267
267
|
|
|
268
|
-
project_key =
|
|
268
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
269
269
|
|
|
270
|
-
environment_key =
|
|
270
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
271
271
|
|
|
272
272
|
user_segment_body = LaunchDarklyApi::UserSegmentBody.new # UserSegmentBody | Create a new user segment.
|
|
273
273
|
|
|
274
274
|
|
|
275
275
|
begin
|
|
276
276
|
#Creates a new user segment.
|
|
277
|
-
api_instance.post_user_segment(project_key, environment_key, user_segment_body)
|
|
277
|
+
result = api_instance.post_user_segment(project_key, environment_key, user_segment_body)
|
|
278
|
+
p result
|
|
278
279
|
rescue LaunchDarklyApi::ApiError => e
|
|
279
280
|
puts "Exception when calling UserSegmentsApi->post_user_segment: #{e}"
|
|
280
281
|
end
|
|
@@ -290,7 +291,7 @@ Name | Type | Description | Notes
|
|
|
290
291
|
|
|
291
292
|
### Return type
|
|
292
293
|
|
|
293
|
-
|
|
294
|
+
[**UserSegment**](UserSegment.md)
|
|
294
295
|
|
|
295
296
|
### Authorization
|
|
296
297
|
|
data/docs/UserSettingsApi.md
CHANGED
|
@@ -28,13 +28,13 @@ end
|
|
|
28
28
|
|
|
29
29
|
api_instance = LaunchDarklyApi::UserSettingsApi.new
|
|
30
30
|
|
|
31
|
-
project_key =
|
|
31
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
32
32
|
|
|
33
|
-
environment_key =
|
|
33
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
34
34
|
|
|
35
|
-
user_key =
|
|
35
|
+
user_key = 'user_key_example' # String | The user's key.
|
|
36
36
|
|
|
37
|
-
feature_flag_key =
|
|
37
|
+
feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
begin
|
|
@@ -89,11 +89,11 @@ end
|
|
|
89
89
|
|
|
90
90
|
api_instance = LaunchDarklyApi::UserSettingsApi.new
|
|
91
91
|
|
|
92
|
-
project_key =
|
|
92
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
93
93
|
|
|
94
|
-
environment_key =
|
|
94
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
95
95
|
|
|
96
|
-
user_key =
|
|
96
|
+
user_key = 'user_key_example' # String | The user's key.
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
begin
|
|
@@ -147,13 +147,13 @@ end
|
|
|
147
147
|
|
|
148
148
|
api_instance = LaunchDarklyApi::UserSettingsApi.new
|
|
149
149
|
|
|
150
|
-
project_key =
|
|
150
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
151
151
|
|
|
152
|
-
environment_key =
|
|
152
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
153
153
|
|
|
154
|
-
user_key =
|
|
154
|
+
user_key = 'user_key_example' # String | The user's key.
|
|
155
155
|
|
|
156
|
-
feature_flag_key =
|
|
156
|
+
feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key. The key identifies the flag in your code.
|
|
157
157
|
|
|
158
158
|
user_settings_body = LaunchDarklyApi::UserSettingsBody.new # UserSettingsBody |
|
|
159
159
|
|
data/docs/UsersApi.md
CHANGED
|
@@ -29,11 +29,11 @@ end
|
|
|
29
29
|
|
|
30
30
|
api_instance = LaunchDarklyApi::UsersApi.new
|
|
31
31
|
|
|
32
|
-
project_key =
|
|
32
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
33
33
|
|
|
34
|
-
environment_key =
|
|
34
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
35
35
|
|
|
36
|
-
user_key =
|
|
36
|
+
user_key = 'user_key_example' # String | The user's key.
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
begin
|
|
@@ -86,15 +86,15 @@ end
|
|
|
86
86
|
|
|
87
87
|
api_instance = LaunchDarklyApi::UsersApi.new
|
|
88
88
|
|
|
89
|
-
project_key =
|
|
89
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
90
90
|
|
|
91
|
-
environment_key =
|
|
91
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
92
92
|
|
|
93
93
|
opts = {
|
|
94
|
-
q:
|
|
94
|
+
q: 'q_example', # String | Search query.
|
|
95
95
|
limit: 56, # Integer | Pagination limit.
|
|
96
96
|
offset: 56, # Integer | Specifies the first item to return in the collection.
|
|
97
|
-
after:
|
|
97
|
+
after: 789, # Integer | A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
begin
|
|
@@ -115,7 +115,7 @@ Name | Type | Description | Notes
|
|
|
115
115
|
**q** | **String**| Search query. | [optional]
|
|
116
116
|
**limit** | **Integer**| Pagination limit. | [optional]
|
|
117
117
|
**offset** | **Integer**| Specifies the first item to return in the collection. | [optional]
|
|
118
|
-
**after** | **
|
|
118
|
+
**after** | **Integer**| A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp. | [optional]
|
|
119
119
|
|
|
120
120
|
### Return type
|
|
121
121
|
|
|
@@ -151,11 +151,11 @@ end
|
|
|
151
151
|
|
|
152
152
|
api_instance = LaunchDarklyApi::UsersApi.new
|
|
153
153
|
|
|
154
|
-
project_key =
|
|
154
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
155
155
|
|
|
156
|
-
environment_key =
|
|
156
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
157
157
|
|
|
158
|
-
user_key =
|
|
158
|
+
user_key = 'user_key_example' # String | The user's key.
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
begin
|
|
@@ -209,14 +209,14 @@ end
|
|
|
209
209
|
|
|
210
210
|
api_instance = LaunchDarklyApi::UsersApi.new
|
|
211
211
|
|
|
212
|
-
project_key =
|
|
212
|
+
project_key = 'project_key_example' # String | The project key, used to tie the flags together under one project so they can be managed together.
|
|
213
213
|
|
|
214
|
-
environment_key =
|
|
214
|
+
environment_key = 'environment_key_example' # String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
|
|
215
215
|
|
|
216
216
|
opts = {
|
|
217
217
|
limit: 56, # Integer | Pagination limit.
|
|
218
|
-
h:
|
|
219
|
-
scroll_id:
|
|
218
|
+
h: 'h_example', # String | This parameter is required when following \"next\" links.
|
|
219
|
+
scroll_id: 'scroll_id_example' # String | This parameter is required when following \"next\" links.
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
begin
|
data/docs/Webhook.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**secret** | **String** | If defined, the webhooks post request will include a X-LD-Signature header whose value will contain an HMAC SHA256 hex digest of the webhook payload, using the secret as the key. | [optional]
|
|
10
10
|
**on** | **BOOLEAN** | Whether this webhook is enabled or not. | [optional]
|
|
11
11
|
**name** | **String** | The name of the webhook. | [optional]
|
|
12
|
+
**statements** | [**Statements**](Statements.md) | | [optional]
|
|
12
13
|
**tags** | **Array<String>** | Tags assigned to this webhook. | [optional]
|
|
13
14
|
|
|
14
15
|
|
data/docs/WebhookBody.md
CHANGED
|
@@ -8,5 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**sign** | **BOOLEAN** | If sign is false, the webhook will not include a signature header, and the secret can be omitted. |
|
|
9
9
|
**on** | **BOOLEAN** | Whether this webhook is enabled or not. |
|
|
10
10
|
**name** | **String** | The name of the webhook. | [optional]
|
|
11
|
+
**statements** | [**Statements**](Statements.md) | | [optional]
|
|
12
|
+
**tags** | **Array<String>** | Tags for the webhook. | [optional]
|
|
11
13
|
|
|
12
14
|
|
data/docs/WebhooksApi.md
CHANGED
|
@@ -30,7 +30,7 @@ end
|
|
|
30
30
|
|
|
31
31
|
api_instance = LaunchDarklyApi::WebhooksApi.new
|
|
32
32
|
|
|
33
|
-
resource_id =
|
|
33
|
+
resource_id = 'resource_id_example' # String | The resource ID.
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
begin
|
|
@@ -81,7 +81,7 @@ end
|
|
|
81
81
|
|
|
82
82
|
api_instance = LaunchDarklyApi::WebhooksApi.new
|
|
83
83
|
|
|
84
|
-
resource_id =
|
|
84
|
+
resource_id = 'resource_id_example' # String | The resource ID.
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
begin
|
|
@@ -179,7 +179,7 @@ end
|
|
|
179
179
|
|
|
180
180
|
api_instance = LaunchDarklyApi::WebhooksApi.new
|
|
181
181
|
|
|
182
|
-
resource_id =
|
|
182
|
+
resource_id = 'resource_id_example' # String | The resource ID.
|
|
183
183
|
|
|
184
184
|
patch_delta = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
|
185
185
|
|
|
@@ -216,7 +216,7 @@ Name | Type | Description | Notes
|
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
# **post_webhook**
|
|
219
|
-
> post_webhook(webhook_body)
|
|
219
|
+
> Webhook post_webhook(webhook_body)
|
|
220
220
|
|
|
221
221
|
Create a webhook.
|
|
222
222
|
|
|
@@ -239,7 +239,8 @@ webhook_body = LaunchDarklyApi::WebhookBody.new # WebhookBody | New webhook.
|
|
|
239
239
|
|
|
240
240
|
begin
|
|
241
241
|
#Create a webhook.
|
|
242
|
-
api_instance.post_webhook(webhook_body)
|
|
242
|
+
result = api_instance.post_webhook(webhook_body)
|
|
243
|
+
p result
|
|
243
244
|
rescue LaunchDarklyApi::ApiError => e
|
|
244
245
|
puts "Exception when calling WebhooksApi->post_webhook: #{e}"
|
|
245
246
|
end
|
|
@@ -253,7 +254,7 @@ Name | Type | Description | Notes
|
|
|
253
254
|
|
|
254
255
|
### Return type
|
|
255
256
|
|
|
256
|
-
|
|
257
|
+
[**Webhook**](Webhook.md)
|
|
257
258
|
|
|
258
259
|
### Authorization
|
|
259
260
|
|
data/launchdarkly_api.gemspec
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
=begin
|
|
4
4
|
#LaunchDarkly REST API
|
|
5
5
|
|
|
6
6
|
#Build custom integrations with the LaunchDarkly REST API
|
|
7
7
|
|
|
8
|
-
OpenAPI spec version: 2.0.
|
|
8
|
+
OpenAPI spec version: 2.0.27
|
|
9
9
|
Contact: support@launchdarkly.com
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
Swagger Codegen version: 2.
|
|
11
|
+
Swagger Codegen version: 2.4.8
|
|
12
12
|
|
|
13
13
|
=end
|
|
14
14
|
|
|
@@ -24,8 +24,7 @@ Gem::Specification.new do |s|
|
|
|
24
24
|
s.homepage = "https://github.com/launchdarkly/api-client-ruby"
|
|
25
25
|
s.summary = "LaunchDarkly REST API Ruby Gem"
|
|
26
26
|
s.description = "Build custom integrations with the LaunchDarkly REST API"
|
|
27
|
-
|
|
28
|
-
#s.license = "Apache 2.0"
|
|
27
|
+
s.license = "Unlicense"
|
|
29
28
|
s.required_ruby_version = ">= 1.9"
|
|
30
29
|
|
|
31
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
@@ -39,7 +38,7 @@ Gem::Specification.new do |s|
|
|
|
39
38
|
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
|
40
39
|
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
|
41
40
|
|
|
42
|
-
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
43
42
|
s.test_files = `find spec/*`.split("\n")
|
|
44
43
|
s.executables = []
|
|
45
44
|
s.require_paths = ["lib"]
|
|
@@ -3,14 +3,14 @@
|
|
|
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
|
-
require
|
|
13
|
+
require 'uri'
|
|
14
14
|
|
|
15
15
|
module LaunchDarklyApi
|
|
16
16
|
class AuditLogApi
|
|
@@ -19,36 +19,33 @@ module LaunchDarklyApi
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
|
|
23
22
|
# Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
|
|
24
|
-
#
|
|
25
23
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @option opts [
|
|
27
|
-
# @option opts [
|
|
24
|
+
# @option opts [Integer] :before A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have before this timestamp.
|
|
25
|
+
# @option opts [Integer] :after A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
|
|
28
26
|
# @option opts [String] :q Text to search for. You can search for the full or partial name of the resource involved or fullpartial email address of the member who made the change.
|
|
29
27
|
# @option opts [Float] :limit A limit on the number of audit log entries to be returned, between 1 and 20.
|
|
30
28
|
# @option opts [String] :spec A resource specifier, allowing you to filter audit log listings by resource.
|
|
31
29
|
# @return [AuditLogEntries]
|
|
32
30
|
def get_audit_log_entries(opts = {})
|
|
33
31
|
data, _status_code, _headers = get_audit_log_entries_with_http_info(opts)
|
|
34
|
-
|
|
32
|
+
data
|
|
35
33
|
end
|
|
36
34
|
|
|
37
35
|
# Get a list of all audit log entries. The query parameters allow you to restrict the returned results by date ranges, resource specifiers, or a full-text search query.
|
|
38
|
-
#
|
|
39
36
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [
|
|
41
|
-
# @option opts [
|
|
37
|
+
# @option opts [Integer] :before A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have before this timestamp.
|
|
38
|
+
# @option opts [Integer] :after A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned will have occured after this timestamp.
|
|
42
39
|
# @option opts [String] :q Text to search for. You can search for the full or partial name of the resource involved or fullpartial email address of the member who made the change.
|
|
43
40
|
# @option opts [Float] :limit A limit on the number of audit log entries to be returned, between 1 and 20.
|
|
44
41
|
# @option opts [String] :spec A resource specifier, allowing you to filter audit log listings by resource.
|
|
45
42
|
# @return [Array<(AuditLogEntries, Fixnum, Hash)>] AuditLogEntries data, response status code and response headers
|
|
46
43
|
def get_audit_log_entries_with_http_info(opts = {})
|
|
47
44
|
if @api_client.config.debugging
|
|
48
|
-
@api_client.config.logger.debug
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: AuditLogApi.get_audit_log_entries ...'
|
|
49
46
|
end
|
|
50
47
|
# resource path
|
|
51
|
-
local_var_path =
|
|
48
|
+
local_var_path = '/auditlog'
|
|
52
49
|
|
|
53
50
|
# query parameters
|
|
54
51
|
query_params = {}
|
|
@@ -83,32 +80,29 @@ module LaunchDarklyApi
|
|
|
83
80
|
end
|
|
84
81
|
return data, status_code, headers
|
|
85
82
|
end
|
|
86
|
-
|
|
87
83
|
# Use this endpoint to fetch a single audit log entry by its resouce ID.
|
|
88
|
-
#
|
|
89
84
|
# @param resource_id The resource ID.
|
|
90
85
|
# @param [Hash] opts the optional parameters
|
|
91
86
|
# @return [AuditLogEntry]
|
|
92
87
|
def get_audit_log_entry(resource_id, opts = {})
|
|
93
88
|
data, _status_code, _headers = get_audit_log_entry_with_http_info(resource_id, opts)
|
|
94
|
-
|
|
89
|
+
data
|
|
95
90
|
end
|
|
96
91
|
|
|
97
92
|
# Use this endpoint to fetch a single audit log entry by its resouce ID.
|
|
98
|
-
#
|
|
99
93
|
# @param resource_id The resource ID.
|
|
100
94
|
# @param [Hash] opts the optional parameters
|
|
101
95
|
# @return [Array<(AuditLogEntry, Fixnum, Hash)>] AuditLogEntry data, response status code and response headers
|
|
102
96
|
def get_audit_log_entry_with_http_info(resource_id, opts = {})
|
|
103
97
|
if @api_client.config.debugging
|
|
104
|
-
@api_client.config.logger.debug
|
|
98
|
+
@api_client.config.logger.debug 'Calling API: AuditLogApi.get_audit_log_entry ...'
|
|
105
99
|
end
|
|
106
100
|
# verify the required parameter 'resource_id' is set
|
|
107
101
|
if @api_client.config.client_side_validation && resource_id.nil?
|
|
108
102
|
fail ArgumentError, "Missing the required parameter 'resource_id' when calling AuditLogApi.get_audit_log_entry"
|
|
109
103
|
end
|
|
110
104
|
# resource path
|
|
111
|
-
local_var_path =
|
|
105
|
+
local_var_path = '/auditlog/{resourceId}'.sub('{' + 'resourceId' + '}', resource_id.to_s)
|
|
112
106
|
|
|
113
107
|
# query parameters
|
|
114
108
|
query_params = {}
|
|
@@ -3,14 +3,14 @@
|
|
|
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
|
-
require
|
|
13
|
+
require 'uri'
|
|
14
14
|
|
|
15
15
|
module LaunchDarklyApi
|
|
16
16
|
class CustomRolesApi
|
|
@@ -19,32 +19,29 @@ module LaunchDarklyApi
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
|
|
23
22
|
# Delete a custom role by key.
|
|
24
|
-
#
|
|
25
23
|
# @param custom_role_key The custom role key.
|
|
26
24
|
# @param [Hash] opts the optional parameters
|
|
27
25
|
# @return [nil]
|
|
28
26
|
def delete_custom_role(custom_role_key, opts = {})
|
|
29
27
|
delete_custom_role_with_http_info(custom_role_key, opts)
|
|
30
|
-
|
|
28
|
+
nil
|
|
31
29
|
end
|
|
32
30
|
|
|
33
31
|
# Delete a custom role by key.
|
|
34
|
-
#
|
|
35
32
|
# @param custom_role_key The custom role key.
|
|
36
33
|
# @param [Hash] opts the optional parameters
|
|
37
34
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
38
35
|
def delete_custom_role_with_http_info(custom_role_key, opts = {})
|
|
39
36
|
if @api_client.config.debugging
|
|
40
|
-
@api_client.config.logger.debug
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: CustomRolesApi.delete_custom_role ...'
|
|
41
38
|
end
|
|
42
39
|
# verify the required parameter 'custom_role_key' is set
|
|
43
40
|
if @api_client.config.client_side_validation && custom_role_key.nil?
|
|
44
41
|
fail ArgumentError, "Missing the required parameter 'custom_role_key' when calling CustomRolesApi.delete_custom_role"
|
|
45
42
|
end
|
|
46
43
|
# resource path
|
|
47
|
-
local_var_path =
|
|
44
|
+
local_var_path = '/roles/{customRoleKey}'.sub('{' + 'customRoleKey' + '}', custom_role_key.to_s)
|
|
48
45
|
|
|
49
46
|
# query parameters
|
|
50
47
|
query_params = {}
|
|
@@ -73,32 +70,29 @@ module LaunchDarklyApi
|
|
|
73
70
|
end
|
|
74
71
|
return data, status_code, headers
|
|
75
72
|
end
|
|
76
|
-
|
|
77
73
|
# Get one custom role by key.
|
|
78
|
-
#
|
|
79
74
|
# @param custom_role_key The custom role key.
|
|
80
75
|
# @param [Hash] opts the optional parameters
|
|
81
76
|
# @return [CustomRole]
|
|
82
77
|
def get_custom_role(custom_role_key, opts = {})
|
|
83
78
|
data, _status_code, _headers = get_custom_role_with_http_info(custom_role_key, opts)
|
|
84
|
-
|
|
79
|
+
data
|
|
85
80
|
end
|
|
86
81
|
|
|
87
82
|
# Get one custom role by key.
|
|
88
|
-
#
|
|
89
83
|
# @param custom_role_key The custom role key.
|
|
90
84
|
# @param [Hash] opts the optional parameters
|
|
91
85
|
# @return [Array<(CustomRole, Fixnum, Hash)>] CustomRole data, response status code and response headers
|
|
92
86
|
def get_custom_role_with_http_info(custom_role_key, opts = {})
|
|
93
87
|
if @api_client.config.debugging
|
|
94
|
-
@api_client.config.logger.debug
|
|
88
|
+
@api_client.config.logger.debug 'Calling API: CustomRolesApi.get_custom_role ...'
|
|
95
89
|
end
|
|
96
90
|
# verify the required parameter 'custom_role_key' is set
|
|
97
91
|
if @api_client.config.client_side_validation && custom_role_key.nil?
|
|
98
92
|
fail ArgumentError, "Missing the required parameter 'custom_role_key' when calling CustomRolesApi.get_custom_role"
|
|
99
93
|
end
|
|
100
94
|
# resource path
|
|
101
|
-
local_var_path =
|
|
95
|
+
local_var_path = '/roles/{customRoleKey}'.sub('{' + 'customRoleKey' + '}', custom_role_key.to_s)
|
|
102
96
|
|
|
103
97
|
# query parameters
|
|
104
98
|
query_params = {}
|
|
@@ -128,26 +122,23 @@ module LaunchDarklyApi
|
|
|
128
122
|
end
|
|
129
123
|
return data, status_code, headers
|
|
130
124
|
end
|
|
131
|
-
|
|
132
125
|
# Return a complete list of custom roles.
|
|
133
|
-
#
|
|
134
126
|
# @param [Hash] opts the optional parameters
|
|
135
127
|
# @return [CustomRoles]
|
|
136
128
|
def get_custom_roles(opts = {})
|
|
137
129
|
data, _status_code, _headers = get_custom_roles_with_http_info(opts)
|
|
138
|
-
|
|
130
|
+
data
|
|
139
131
|
end
|
|
140
132
|
|
|
141
133
|
# Return a complete list of custom roles.
|
|
142
|
-
#
|
|
143
134
|
# @param [Hash] opts the optional parameters
|
|
144
135
|
# @return [Array<(CustomRoles, Fixnum, Hash)>] CustomRoles data, response status code and response headers
|
|
145
136
|
def get_custom_roles_with_http_info(opts = {})
|
|
146
137
|
if @api_client.config.debugging
|
|
147
|
-
@api_client.config.logger.debug
|
|
138
|
+
@api_client.config.logger.debug 'Calling API: CustomRolesApi.get_custom_roles ...'
|
|
148
139
|
end
|
|
149
140
|
# resource path
|
|
150
|
-
local_var_path =
|
|
141
|
+
local_var_path = '/roles'
|
|
151
142
|
|
|
152
143
|
# query parameters
|
|
153
144
|
query_params = {}
|
|
@@ -177,27 +168,24 @@ module LaunchDarklyApi
|
|
|
177
168
|
end
|
|
178
169
|
return data, status_code, headers
|
|
179
170
|
end
|
|
180
|
-
|
|
181
171
|
# Modify a custom role by key.
|
|
182
|
-
#
|
|
183
172
|
# @param custom_role_key The custom role key.
|
|
184
173
|
# @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
|
185
174
|
# @param [Hash] opts the optional parameters
|
|
186
175
|
# @return [CustomRole]
|
|
187
176
|
def patch_custom_role(custom_role_key, patch_delta, opts = {})
|
|
188
177
|
data, _status_code, _headers = patch_custom_role_with_http_info(custom_role_key, patch_delta, opts)
|
|
189
|
-
|
|
178
|
+
data
|
|
190
179
|
end
|
|
191
180
|
|
|
192
181
|
# Modify a custom role by key.
|
|
193
|
-
#
|
|
194
182
|
# @param custom_role_key The custom role key.
|
|
195
183
|
# @param patch_delta Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
|
|
196
184
|
# @param [Hash] opts the optional parameters
|
|
197
185
|
# @return [Array<(CustomRole, Fixnum, Hash)>] CustomRole data, response status code and response headers
|
|
198
186
|
def patch_custom_role_with_http_info(custom_role_key, patch_delta, opts = {})
|
|
199
187
|
if @api_client.config.debugging
|
|
200
|
-
@api_client.config.logger.debug
|
|
188
|
+
@api_client.config.logger.debug 'Calling API: CustomRolesApi.patch_custom_role ...'
|
|
201
189
|
end
|
|
202
190
|
# verify the required parameter 'custom_role_key' is set
|
|
203
191
|
if @api_client.config.client_side_validation && custom_role_key.nil?
|
|
@@ -208,7 +196,7 @@ module LaunchDarklyApi
|
|
|
208
196
|
fail ArgumentError, "Missing the required parameter 'patch_delta' when calling CustomRolesApi.patch_custom_role"
|
|
209
197
|
end
|
|
210
198
|
# resource path
|
|
211
|
-
local_var_path =
|
|
199
|
+
local_var_path = '/roles/{customRoleKey}'.sub('{' + 'customRoleKey' + '}', custom_role_key.to_s)
|
|
212
200
|
|
|
213
201
|
# query parameters
|
|
214
202
|
query_params = {}
|
|
@@ -238,32 +226,29 @@ module LaunchDarklyApi
|
|
|
238
226
|
end
|
|
239
227
|
return data, status_code, headers
|
|
240
228
|
end
|
|
241
|
-
|
|
242
229
|
# Create a new custom role.
|
|
243
|
-
#
|
|
244
230
|
# @param custom_role_body New role or roles to create.
|
|
245
231
|
# @param [Hash] opts the optional parameters
|
|
246
|
-
# @return [
|
|
232
|
+
# @return [CustomRole]
|
|
247
233
|
def post_custom_role(custom_role_body, opts = {})
|
|
248
|
-
post_custom_role_with_http_info(custom_role_body, opts)
|
|
249
|
-
|
|
234
|
+
data, _status_code, _headers = post_custom_role_with_http_info(custom_role_body, opts)
|
|
235
|
+
data
|
|
250
236
|
end
|
|
251
237
|
|
|
252
238
|
# Create a new custom role.
|
|
253
|
-
#
|
|
254
239
|
# @param custom_role_body New role or roles to create.
|
|
255
240
|
# @param [Hash] opts the optional parameters
|
|
256
|
-
# @return [Array<(
|
|
241
|
+
# @return [Array<(CustomRole, Fixnum, Hash)>] CustomRole data, response status code and response headers
|
|
257
242
|
def post_custom_role_with_http_info(custom_role_body, opts = {})
|
|
258
243
|
if @api_client.config.debugging
|
|
259
|
-
@api_client.config.logger.debug
|
|
244
|
+
@api_client.config.logger.debug 'Calling API: CustomRolesApi.post_custom_role ...'
|
|
260
245
|
end
|
|
261
246
|
# verify the required parameter 'custom_role_body' is set
|
|
262
247
|
if @api_client.config.client_side_validation && custom_role_body.nil?
|
|
263
248
|
fail ArgumentError, "Missing the required parameter 'custom_role_body' when calling CustomRolesApi.post_custom_role"
|
|
264
249
|
end
|
|
265
250
|
# resource path
|
|
266
|
-
local_var_path =
|
|
251
|
+
local_var_path = '/roles'
|
|
267
252
|
|
|
268
253
|
# query parameters
|
|
269
254
|
query_params = {}
|
|
@@ -286,7 +271,8 @@ module LaunchDarklyApi
|
|
|
286
271
|
:query_params => query_params,
|
|
287
272
|
:form_params => form_params,
|
|
288
273
|
:body => post_body,
|
|
289
|
-
:auth_names => auth_names
|
|
274
|
+
:auth_names => auth_names,
|
|
275
|
+
:return_type => 'CustomRole')
|
|
290
276
|
if @api_client.config.debugging
|
|
291
277
|
@api_client.config.logger.debug "API called: CustomRolesApi#post_custom_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
292
278
|
end
|