launchdarkly_api 6.0.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +830 -295
- data/docs/AccessDeniedReasonRep.md +4 -4
- data/docs/AccessTokensApi.md +1 -1
- data/docs/AccountMembersApi.md +86 -12
- data/docs/ActionInputRep.md +18 -0
- data/docs/ActionOutputRep.md +20 -0
- data/docs/ApprovalConditionInputRep.md +20 -0
- data/docs/ApprovalConditionOutputRep.md +26 -0
- data/docs/ApprovalSettings.md +1 -1
- data/docs/ApprovalsApi.md +3 -3
- data/docs/BranchCollectionRep.md +1 -1
- data/docs/BranchRep.md +9 -9
- data/docs/CodeReferencesApi.md +37 -32
- data/docs/ConditionBaseOutputRep.md +22 -0
- data/docs/ConditionInputRep.md +26 -0
- data/docs/ConditionOutputRep.md +34 -0
- data/docs/ConflictOutputRep.md +20 -0
- data/docs/CreateCopyFlagConfigApprovalRequestRequest.md +1 -1
- data/docs/CustomRole.md +10 -8
- data/docs/CustomRolePost.md +3 -1
- data/docs/CustomRolePostData.md +3 -1
- data/docs/CustomRolesApi.md +11 -11
- data/docs/CustomRolesRep.md +24 -0
- data/docs/CustomWorkflowInputRep.md +24 -0
- data/docs/CustomWorkflowMeta.md +20 -0
- data/docs/CustomWorkflowOutputRep.md +38 -0
- data/docs/CustomWorkflowStageMeta.md +20 -0
- data/docs/CustomWorkflowsListingOutputRep.md +18 -0
- data/docs/DataExportDestinationsApi.md +1 -1
- data/docs/DerivedAttribute.md +20 -0
- data/docs/Environment.md +4 -0
- data/docs/EnvironmentsApi.md +3 -3
- data/docs/ExecutionOutputRep.md +18 -0
- data/docs/ExpandedTeamRep.md +44 -0
- data/docs/ExperimentResultsRep.md +3 -1
- data/docs/ExperimentsBetaApi.md +1 -1
- data/docs/Extinction.md +8 -8
- data/docs/ExtinctionCollectionRep.md +1 -1
- data/docs/FeatureFlagBody.md +1 -1
- data/docs/FeatureFlagsApi.md +2 -4
- data/docs/FlagConfigApprovalRequestResponse.md +3 -1
- data/docs/FlagTriggerInput.md +20 -0
- data/docs/FlagTriggersApi.md +396 -0
- data/docs/ForbiddenErrorRep.md +20 -0
- data/docs/HunkRep.md +10 -10
- data/docs/Integration.md +40 -0
- data/docs/IntegrationAuditLogSubscriptionsApi.md +376 -0
- data/docs/IntegrationStatusRep.md +22 -0
- data/docs/IntegrationSubscriptionStatusRep.md +26 -0
- data/docs/Integrations.md +22 -0
- data/docs/InvalidRequestErrorRep.md +20 -0
- data/docs/Member.md +3 -1
- data/docs/MemberImportItemRep.md +22 -0
- data/docs/MemberTeamsPostInput.md +18 -0
- data/docs/MethodNotAllowedErrorRep.md +20 -0
- data/docs/MetricListingRep.md +1 -1
- data/docs/MetricPost.md +1 -1
- data/docs/MetricRep.md +1 -1
- data/docs/MetricSeen.md +20 -0
- data/docs/MetricsApi.md +2 -2
- data/docs/NotFoundErrorRep.md +20 -0
- data/docs/OtherApi.md +4 -4
- data/docs/PatchFailedErrorRep.md +20 -0
- data/docs/PermissionGrantInput.md +22 -0
- data/docs/PermissionGrantRep.md +24 -0
- data/docs/ProjectPost.md +1 -1
- data/docs/ProjectsApi.md +2 -2
- data/docs/PutBranch.md +28 -0
- data/docs/RateLimitedErrorRep.md +20 -0
- data/docs/RecentTriggerBody.md +20 -0
- data/docs/ReferenceRep.md +5 -5
- data/docs/RelayProxyConfigurationsApi.md +2 -2
- data/docs/RepositoryCollectionRep.md +1 -1
- data/docs/RepositoryPost.md +8 -8
- data/docs/RepositoryRep.md +17 -17
- data/docs/ReviewOutputRep.md +26 -0
- data/docs/Rule.md +3 -1
- data/docs/ScheduleConditionInputRep.md +20 -0
- data/docs/ScheduleConditionOutputRep.md +18 -0
- data/docs/ScheduledChangesApi.md +2 -2
- data/docs/SegmentsApi.md +6 -6
- data/docs/StageInputRep.md +22 -0
- data/docs/StageOutputRep.md +26 -0
- data/docs/Statement.md +4 -4
- data/docs/StatementRep.md +3 -3
- data/docs/StatusConflictErrorRep.md +20 -0
- data/docs/SubscriptionPost.md +30 -0
- data/docs/TeamCollectionRep.md +22 -0
- data/docs/TeamImportsRep.md +18 -0
- data/docs/TeamPatchInput.md +20 -0
- data/docs/TeamPostInput.md +28 -0
- data/docs/TeamRep.md +40 -0
- data/docs/TeamsBetaApi.md +450 -0
- data/docs/TriggerPost.md +22 -0
- data/docs/TriggerWorkflowCollectionRep.md +20 -0
- data/docs/TriggerWorkflowRep.md +42 -0
- data/docs/UnauthorizedErrorRep.md +20 -0
- data/docs/User.md +26 -14
- data/docs/UserRecord.md +5 -1
- data/docs/UserRecordRep.md +26 -0
- data/docs/UserSegment.md +3 -1
- data/docs/UserSettingsApi.md +1 -1
- data/docs/Users.md +1 -1
- data/docs/UsersApi.md +11 -7
- data/docs/WebhooksApi.md +1 -1
- data/docs/WorkflowsBetaApi.md +316 -0
- data/git_push.sh +3 -3
- data/launchdarkly_api.gemspec +5 -5
- data/lib/launchdarkly_api/api/access_tokens_api.rb +12 -4
- data/lib/launchdarkly_api/api/account_members_api.rb +103 -21
- data/lib/launchdarkly_api/api/account_usage_beta_api.rb +2 -2
- data/lib/launchdarkly_api/api/approvals_api.rb +21 -7
- data/lib/launchdarkly_api/api/audit_log_api.rb +2 -2
- data/lib/launchdarkly_api/api/code_references_api.rb +66 -35
- data/lib/launchdarkly_api/api/custom_roles_api.rb +24 -16
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +12 -4
- data/lib/launchdarkly_api/api/environments_api.rb +16 -8
- data/lib/launchdarkly_api/api/experiments_beta_api.rb +4 -2
- data/lib/launchdarkly_api/api/feature_flags_api.rb +22 -11
- data/lib/launchdarkly_api/api/feature_flags_beta_api.rb +2 -2
- data/lib/launchdarkly_api/api/flag_triggers_api.rb +437 -0
- data/lib/launchdarkly_api/api/integration_audit_log_subscriptions_api.rb +377 -0
- data/lib/launchdarkly_api/api/metrics_api.rb +14 -6
- data/lib/launchdarkly_api/api/other_api.rb +5 -5
- data/lib/launchdarkly_api/api/projects_api.rb +14 -6
- data/lib/launchdarkly_api/api/relay_proxy_configurations_api.rb +12 -4
- data/lib/launchdarkly_api/api/scheduled_changes_api.rb +14 -6
- data/lib/launchdarkly_api/api/segments_api.rb +28 -12
- data/lib/launchdarkly_api/api/teams_beta_api.rb +427 -0
- data/lib/launchdarkly_api/api/user_settings_api.rb +12 -4
- data/lib/launchdarkly_api/api/users_api.rb +15 -7
- data/lib/launchdarkly_api/api/users_beta_api.rb +2 -2
- data/lib/launchdarkly_api/api/webhooks_api.rb +12 -4
- data/lib/launchdarkly_api/api/workflows_beta_api.rb +345 -0
- data/lib/launchdarkly_api/api_client.rb +5 -5
- data/lib/launchdarkly_api/api_error.rb +2 -2
- data/lib/launchdarkly_api/configuration.rb +4 -3
- data/lib/launchdarkly_api/models/access_denied_reason_rep.rb +8 -4
- data/lib/launchdarkly_api/models/access_denied_rep.rb +2 -2
- data/lib/launchdarkly_api/models/access_rep.rb +2 -2
- data/lib/launchdarkly_api/models/access_token_post.rb +2 -2
- data/lib/launchdarkly_api/models/action_input_rep.rb +219 -0
- data/lib/launchdarkly_api/models/action_output_rep.rb +239 -0
- data/lib/launchdarkly_api/models/approval_condition_input_rep.rb +229 -0
- data/lib/launchdarkly_api/models/approval_condition_output_rep.rb +278 -0
- data/lib/launchdarkly_api/models/approval_settings.rb +3 -3
- data/lib/launchdarkly_api/models/audit_log_entry_listing_rep.rb +2 -2
- data/lib/launchdarkly_api/models/audit_log_entry_listing_rep_collection.rb +2 -2
- data/lib/launchdarkly_api/models/audit_log_entry_rep.rb +2 -2
- data/lib/launchdarkly_api/models/authorized_app_data_rep.rb +2 -2
- data/lib/launchdarkly_api/models/big_segment_target.rb +2 -2
- data/lib/launchdarkly_api/models/branch_collection_rep.rb +3 -2
- data/lib/launchdarkly_api/models/branch_rep.rb +26 -2
- data/lib/launchdarkly_api/models/clause.rb +2 -2
- data/lib/launchdarkly_api/models/client_side_availability.rb +2 -2
- data/lib/launchdarkly_api/models/client_side_availability_post.rb +2 -2
- data/lib/launchdarkly_api/models/condition_base_output_rep.rb +246 -0
- data/lib/launchdarkly_api/models/condition_input_rep.rb +256 -0
- data/lib/launchdarkly_api/models/condition_output_rep.rb +324 -0
- data/lib/launchdarkly_api/models/confidence_interval_rep.rb +2 -2
- data/lib/launchdarkly_api/models/conflict.rb +2 -2
- data/lib/launchdarkly_api/models/conflict_output_rep.rb +237 -0
- data/lib/launchdarkly_api/models/copied_from_env.rb +2 -2
- data/lib/launchdarkly_api/models/create_copy_flag_config_approval_request_request.rb +7 -2
- data/lib/launchdarkly_api/models/create_flag_config_approval_request_request.rb +2 -2
- data/lib/launchdarkly_api/models/custom_property.rb +2 -2
- data/lib/launchdarkly_api/models/custom_role.rb +47 -38
- data/lib/launchdarkly_api/models/custom_role_post.rb +15 -6
- data/lib/launchdarkly_api/models/custom_role_post_data.rb +15 -6
- data/lib/launchdarkly_api/models/custom_roles.rb +2 -2
- data/lib/launchdarkly_api/models/custom_roles_rep.rb +247 -0
- data/lib/launchdarkly_api/models/custom_workflow_input_rep.rb +252 -0
- data/lib/launchdarkly_api/models/custom_workflow_meta.rb +227 -0
- data/lib/launchdarkly_api/models/custom_workflow_output_rep.rb +354 -0
- data/lib/launchdarkly_api/models/custom_workflow_stage_meta.rb +227 -0
- data/lib/launchdarkly_api/models/custom_workflows_listing_output_rep.rb +225 -0
- data/lib/launchdarkly_api/models/default_client_side_availability_post.rb +2 -2
- data/lib/launchdarkly_api/models/defaults.rb +2 -2
- data/lib/launchdarkly_api/models/dependent_flag.rb +2 -2
- data/lib/launchdarkly_api/models/dependent_flag_environment.rb +2 -2
- data/lib/launchdarkly_api/models/dependent_flags_by_environment.rb +2 -2
- data/lib/launchdarkly_api/models/derived_attribute.rb +228 -0
- data/lib/launchdarkly_api/models/destination.rb +2 -2
- data/lib/launchdarkly_api/models/destination_post.rb +2 -2
- data/lib/launchdarkly_api/models/destinations.rb +2 -2
- data/lib/launchdarkly_api/models/environment.rb +31 -3
- data/lib/launchdarkly_api/models/environment_post.rb +2 -2
- data/lib/launchdarkly_api/models/execution_output_rep.rb +223 -0
- data/lib/launchdarkly_api/models/expanded_team_rep.rb +349 -0
- data/lib/launchdarkly_api/models/experiment_allocation_rep.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_enabled_period_rep.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_environment_setting_rep.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_info_rep.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_metadata_rep.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_rep.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_results_rep.rb +15 -6
- data/lib/launchdarkly_api/models/experiment_stats_rep.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_time_series_slice.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_time_series_variation_slice.rb +2 -2
- data/lib/launchdarkly_api/models/experiment_totals_rep.rb +2 -2
- data/lib/launchdarkly_api/models/expiring_user_target_error.rb +2 -2
- data/lib/launchdarkly_api/models/expiring_user_target_get_response.rb +2 -2
- data/lib/launchdarkly_api/models/expiring_user_target_item.rb +2 -2
- data/lib/launchdarkly_api/models/expiring_user_target_patch_response.rb +2 -2
- data/lib/launchdarkly_api/models/extinction.rb +22 -13
- data/lib/launchdarkly_api/models/extinction_collection_rep.rb +4 -3
- data/lib/launchdarkly_api/models/feature_flag.rb +2 -2
- data/lib/launchdarkly_api/models/feature_flag_body.rb +3 -3
- data/lib/launchdarkly_api/models/feature_flag_config.rb +2 -2
- data/lib/launchdarkly_api/models/feature_flag_scheduled_change.rb +2 -2
- data/lib/launchdarkly_api/models/feature_flag_scheduled_changes.rb +2 -2
- data/lib/launchdarkly_api/models/feature_flag_status.rb +2 -2
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +2 -2
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +2 -2
- data/lib/launchdarkly_api/models/feature_flags.rb +2 -2
- data/lib/launchdarkly_api/models/flag_config_approval_request_response.rb +15 -6
- data/lib/launchdarkly_api/models/flag_config_approval_requests_response.rb +2 -2
- data/lib/launchdarkly_api/models/flag_copy_config_environment.rb +2 -2
- data/lib/launchdarkly_api/models/flag_copy_config_post.rb +2 -2
- data/lib/launchdarkly_api/models/flag_global_attributes_rep.rb +2 -2
- data/lib/launchdarkly_api/models/flag_listing_rep.rb +2 -2
- data/lib/launchdarkly_api/models/flag_scheduled_changes_input.rb +2 -2
- data/lib/launchdarkly_api/models/flag_status_rep.rb +2 -2
- data/lib/launchdarkly_api/models/flag_summary.rb +2 -2
- data/lib/launchdarkly_api/models/flag_trigger_input.rb +230 -0
- data/lib/launchdarkly_api/models/forbidden_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/hunk_rep.rb +12 -2
- data/lib/launchdarkly_api/models/integration.rb +325 -0
- data/lib/launchdarkly_api/models/integration_metadata.rb +2 -2
- data/lib/launchdarkly_api/models/integration_status.rb +2 -2
- data/lib/launchdarkly_api/models/integration_status_rep.rb +236 -0
- data/lib/launchdarkly_api/models/integration_subscription_status_rep.rb +256 -0
- data/lib/launchdarkly_api/models/integrations.rb +240 -0
- data/lib/launchdarkly_api/models/invalid_request_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/ip_list.rb +2 -2
- data/lib/launchdarkly_api/models/last_seen_metadata.rb +2 -2
- data/lib/launchdarkly_api/models/link.rb +2 -2
- data/lib/launchdarkly_api/models/member.rb +20 -6
- data/lib/launchdarkly_api/models/member_data_rep.rb +2 -2
- data/lib/launchdarkly_api/models/member_import_item_rep.rb +246 -0
- data/lib/launchdarkly_api/models/member_permission_grant_summary_rep.rb +2 -2
- data/lib/launchdarkly_api/models/member_summary_rep.rb +2 -2
- data/lib/launchdarkly_api/models/member_team_summary_rep.rb +2 -2
- data/lib/launchdarkly_api/models/member_teams_post_input.rb +226 -0
- data/lib/launchdarkly_api/models/members.rb +2 -2
- data/lib/launchdarkly_api/models/method_not_allowed_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/metric_collection_rep.rb +2 -2
- data/lib/launchdarkly_api/models/metric_listing_rep.rb +15 -3
- data/lib/launchdarkly_api/models/metric_post.rb +15 -3
- data/lib/launchdarkly_api/models/metric_rep.rb +15 -3
- data/lib/launchdarkly_api/models/metric_seen.rb +227 -0
- data/lib/launchdarkly_api/models/modification.rb +2 -2
- data/lib/launchdarkly_api/models/multi_environment_dependent_flag.rb +2 -2
- data/lib/launchdarkly_api/models/multi_environment_dependent_flags.rb +2 -2
- data/lib/launchdarkly_api/models/new_member_form.rb +2 -2
- data/lib/launchdarkly_api/models/not_found_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/parent_resource_rep.rb +2 -2
- data/lib/launchdarkly_api/models/patch_failed_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/patch_operation.rb +2 -2
- data/lib/launchdarkly_api/models/patch_segment_instruction.rb +2 -2
- data/lib/launchdarkly_api/models/patch_segment_request.rb +2 -2
- data/lib/launchdarkly_api/models/patch_with_comment.rb +2 -2
- data/lib/launchdarkly_api/models/permission_grant_input.rb +240 -0
- data/lib/launchdarkly_api/models/permission_grant_rep.rb +249 -0
- data/lib/launchdarkly_api/models/post_approval_request_apply_request.rb +2 -2
- data/lib/launchdarkly_api/models/post_approval_request_review_request.rb +2 -2
- data/lib/launchdarkly_api/models/post_flag_scheduled_changes_input.rb +2 -2
- data/lib/launchdarkly_api/models/prerequisite.rb +2 -2
- data/lib/launchdarkly_api/models/project.rb +2 -2
- data/lib/launchdarkly_api/models/project_listing_rep.rb +2 -2
- data/lib/launchdarkly_api/models/project_post.rb +3 -3
- data/lib/launchdarkly_api/models/projects.rb +2 -2
- data/lib/launchdarkly_api/models/pub_nub_detail_rep.rb +2 -2
- data/lib/launchdarkly_api/models/put_branch.rb +284 -0
- data/lib/launchdarkly_api/models/rate_limited_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/recent_trigger_body.rb +229 -0
- data/lib/launchdarkly_api/models/reference_rep.rb +14 -2
- data/lib/launchdarkly_api/models/relay_auto_config_collection_rep.rb +2 -2
- data/lib/launchdarkly_api/models/relay_auto_config_post.rb +2 -2
- data/lib/launchdarkly_api/models/relay_auto_config_rep.rb +2 -2
- data/lib/launchdarkly_api/models/repository_collection_rep.rb +3 -2
- data/lib/launchdarkly_api/models/repository_post.rb +4 -2
- data/lib/launchdarkly_api/models/repository_rep.rb +45 -2
- data/lib/launchdarkly_api/models/resource_access.rb +2 -2
- data/lib/launchdarkly_api/models/resource_id_response.rb +2 -2
- data/lib/launchdarkly_api/models/review_output_rep.rb +264 -0
- data/lib/launchdarkly_api/models/review_response.rb +2 -2
- data/lib/launchdarkly_api/models/rollout.rb +2 -2
- data/lib/launchdarkly_api/models/rule.rb +15 -6
- data/lib/launchdarkly_api/models/schedule_condition_input_rep.rb +227 -0
- data/lib/launchdarkly_api/models/schedule_condition_output_rep.rb +218 -0
- data/lib/launchdarkly_api/models/sdk_list_rep.rb +2 -2
- data/lib/launchdarkly_api/models/sdk_version_list_rep.rb +2 -2
- data/lib/launchdarkly_api/models/sdk_version_rep.rb +2 -2
- data/lib/launchdarkly_api/models/segment_body.rb +2 -2
- data/lib/launchdarkly_api/models/segment_metadata.rb +2 -2
- data/lib/launchdarkly_api/models/segment_user_list.rb +2 -2
- data/lib/launchdarkly_api/models/segment_user_state.rb +2 -2
- data/lib/launchdarkly_api/models/series_list_rep.rb +2 -2
- data/lib/launchdarkly_api/models/source_flag.rb +2 -2
- data/lib/launchdarkly_api/models/stage_input_rep.rb +238 -0
- data/lib/launchdarkly_api/models/stage_output_rep.rb +276 -0
- data/lib/launchdarkly_api/models/statement.rb +8 -4
- data/lib/launchdarkly_api/models/statement_post.rb +2 -2
- data/lib/launchdarkly_api/models/statement_post_data.rb +2 -2
- data/lib/launchdarkly_api/models/statement_rep.rb +9 -4
- data/lib/launchdarkly_api/models/statistic_collection_rep.rb +2 -2
- data/lib/launchdarkly_api/models/statistic_rep.rb +2 -2
- data/lib/launchdarkly_api/models/statistics_root.rb +2 -2
- data/lib/launchdarkly_api/models/status_conflict_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/subject_data_rep.rb +2 -2
- data/lib/launchdarkly_api/models/subscription_post.rb +293 -0
- data/lib/launchdarkly_api/models/target.rb +2 -2
- data/lib/launchdarkly_api/models/target_resource_rep.rb +2 -2
- data/lib/launchdarkly_api/models/team_collection_rep.rb +240 -0
- data/lib/launchdarkly_api/models/team_imports_rep.rb +220 -0
- data/lib/launchdarkly_api/models/team_patch_input.rb +229 -0
- data/lib/launchdarkly_api/models/team_post_input.rb +285 -0
- data/lib/launchdarkly_api/models/team_rep.rb +327 -0
- data/lib/launchdarkly_api/models/title_rep.rb +2 -2
- data/lib/launchdarkly_api/models/token.rb +2 -2
- data/lib/launchdarkly_api/models/token_data_rep.rb +2 -2
- data/lib/launchdarkly_api/models/tokens.rb +2 -2
- data/lib/launchdarkly_api/models/trigger_post.rb +245 -0
- data/lib/launchdarkly_api/models/trigger_workflow_collection_rep.rb +231 -0
- data/lib/launchdarkly_api/models/trigger_workflow_rep.rb +332 -0
- data/lib/launchdarkly_api/models/unauthorized_error_rep.rb +227 -0
- data/lib/launchdarkly_api/models/url_post.rb +2 -2
- data/lib/launchdarkly_api/models/user.rb +104 -47
- data/lib/launchdarkly_api/models/user_attribute_names_rep.rb +2 -2
- data/lib/launchdarkly_api/models/user_flag_setting.rb +2 -2
- data/lib/launchdarkly_api/models/user_flag_settings.rb +2 -2
- data/lib/launchdarkly_api/models/user_record.rb +27 -7
- data/lib/launchdarkly_api/models/user_record_rep.rb +255 -0
- data/lib/launchdarkly_api/models/user_segment.rb +15 -6
- data/lib/launchdarkly_api/models/user_segment_rule.rb +2 -2
- data/lib/launchdarkly_api/models/user_segments.rb +2 -2
- data/lib/launchdarkly_api/models/users.rb +3 -3
- data/lib/launchdarkly_api/models/value_put.rb +2 -2
- data/lib/launchdarkly_api/models/variation.rb +2 -2
- data/lib/launchdarkly_api/models/variation_or_rollout_rep.rb +2 -2
- data/lib/launchdarkly_api/models/variation_summary.rb +2 -2
- data/lib/launchdarkly_api/models/versions_rep.rb +2 -2
- data/lib/launchdarkly_api/models/webhook.rb +2 -2
- data/lib/launchdarkly_api/models/webhook_post.rb +2 -2
- data/lib/launchdarkly_api/models/webhooks.rb +2 -2
- data/lib/launchdarkly_api/models/weighted_variation.rb +2 -2
- data/lib/launchdarkly_api/version.rb +3 -3
- data/lib/launchdarkly_api.rb +58 -7
- data/spec/api/access_tokens_api_spec.rb +2 -2
- data/spec/api/account_members_api_spec.rb +20 -7
- data/spec/api/account_usage_beta_api_spec.rb +2 -2
- data/spec/api/approvals_api_spec.rb +2 -2
- data/spec/api/audit_log_api_spec.rb +2 -2
- data/spec/api/code_references_api_spec.rb +9 -7
- data/spec/api/custom_roles_api_spec.rb +4 -4
- data/spec/api/data_export_destinations_api_spec.rb +2 -2
- data/spec/api/environments_api_spec.rb +4 -4
- data/spec/api/experiments_beta_api_spec.rb +2 -2
- data/spec/api/feature_flags_api_spec.rb +3 -4
- data/spec/api/feature_flags_beta_api_spec.rb +2 -2
- data/spec/api/flag_triggers_api_spec.rb +110 -0
- data/spec/api/integration_audit_log_subscriptions_api_spec.rb +100 -0
- data/spec/api/metrics_api_spec.rb +3 -3
- data/spec/api/other_api_spec.rb +3 -3
- data/spec/api/projects_api_spec.rb +3 -3
- data/spec/api/relay_proxy_configurations_api_spec.rb +2 -2
- data/spec/api/scheduled_changes_api_spec.rb +3 -3
- data/spec/api/segments_api_spec.rb +5 -5
- data/spec/api/teams_beta_api_spec.rb +111 -0
- data/spec/api/user_settings_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +6 -4
- data/spec/api/users_beta_api_spec.rb +2 -2
- data/spec/api/webhooks_api_spec.rb +2 -2
- data/spec/api/workflows_beta_api_spec.rb +94 -0
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/access_denied_reason_rep_spec.rb +2 -2
- data/spec/models/access_denied_rep_spec.rb +2 -2
- data/spec/models/access_rep_spec.rb +2 -2
- data/spec/models/access_token_post_spec.rb +2 -2
- data/spec/models/action_input_rep_spec.rb +34 -0
- data/spec/models/action_output_rep_spec.rb +40 -0
- data/spec/models/approval_condition_input_rep_spec.rb +40 -0
- data/spec/models/approval_condition_output_rep_spec.rb +58 -0
- data/spec/models/approval_settings_spec.rb +2 -2
- data/spec/models/audit_log_entry_listing_rep_collection_spec.rb +2 -2
- data/spec/models/audit_log_entry_listing_rep_spec.rb +2 -2
- data/spec/models/audit_log_entry_rep_spec.rb +2 -2
- data/spec/models/authorized_app_data_rep_spec.rb +2 -2
- data/spec/models/big_segment_target_spec.rb +2 -2
- data/spec/models/branch_collection_rep_spec.rb +2 -2
- data/spec/models/branch_rep_spec.rb +2 -2
- data/spec/models/clause_spec.rb +2 -2
- data/spec/models/client_side_availability_post_spec.rb +2 -2
- data/spec/models/client_side_availability_spec.rb +2 -2
- data/spec/models/condition_base_output_rep_spec.rb +46 -0
- data/spec/models/condition_input_rep_spec.rb +58 -0
- data/spec/models/condition_output_rep_spec.rb +82 -0
- data/spec/models/confidence_interval_rep_spec.rb +2 -2
- data/spec/models/conflict_output_rep_spec.rb +40 -0
- data/spec/models/conflict_spec.rb +2 -2
- data/spec/models/copied_from_env_spec.rb +2 -2
- data/spec/models/create_copy_flag_config_approval_request_request_spec.rb +2 -2
- data/spec/models/create_flag_config_approval_request_request_spec.rb +2 -2
- data/spec/models/custom_property_spec.rb +2 -2
- data/spec/models/custom_role_post_data_spec.rb +8 -2
- data/spec/models/custom_role_post_spec.rb +8 -2
- data/spec/models/custom_role_spec.rb +13 -7
- data/spec/models/custom_roles_rep_spec.rb +52 -0
- data/spec/models/custom_roles_spec.rb +2 -2
- data/spec/models/custom_workflow_input_rep_spec.rb +52 -0
- data/spec/models/custom_workflow_meta_spec.rb +40 -0
- data/spec/models/custom_workflow_output_rep_spec.rb +94 -0
- data/spec/models/custom_workflow_stage_meta_spec.rb +40 -0
- data/spec/models/custom_workflows_listing_output_rep_spec.rb +34 -0
- data/spec/models/default_client_side_availability_post_spec.rb +2 -2
- data/spec/models/defaults_spec.rb +2 -2
- data/spec/models/dependent_flag_environment_spec.rb +2 -2
- data/spec/models/dependent_flag_spec.rb +2 -2
- data/spec/models/dependent_flags_by_environment_spec.rb +2 -2
- data/spec/models/derived_attribute_spec.rb +40 -0
- data/spec/models/destination_post_spec.rb +2 -2
- data/spec/models/destination_spec.rb +2 -2
- data/spec/models/destinations_spec.rb +2 -2
- data/spec/models/environment_post_spec.rb +2 -2
- data/spec/models/environment_spec.rb +14 -2
- data/spec/models/execution_output_rep_spec.rb +34 -0
- data/spec/models/expanded_team_rep_spec.rb +112 -0
- data/spec/models/experiment_allocation_rep_spec.rb +2 -2
- data/spec/models/experiment_enabled_period_rep_spec.rb +2 -2
- data/spec/models/experiment_environment_setting_rep_spec.rb +2 -2
- data/spec/models/experiment_info_rep_spec.rb +2 -2
- data/spec/models/experiment_metadata_rep_spec.rb +2 -2
- data/spec/models/experiment_rep_spec.rb +2 -2
- data/spec/models/experiment_results_rep_spec.rb +8 -2
- data/spec/models/experiment_stats_rep_spec.rb +2 -2
- data/spec/models/experiment_time_series_slice_spec.rb +2 -2
- data/spec/models/experiment_time_series_variation_slice_spec.rb +2 -2
- data/spec/models/experiment_totals_rep_spec.rb +2 -2
- data/spec/models/expiring_user_target_error_spec.rb +2 -2
- data/spec/models/expiring_user_target_get_response_spec.rb +2 -2
- data/spec/models/expiring_user_target_item_spec.rb +2 -2
- data/spec/models/expiring_user_target_patch_response_spec.rb +2 -2
- data/spec/models/extinction_collection_rep_spec.rb +2 -2
- data/spec/models/extinction_spec.rb +3 -3
- data/spec/models/feature_flag_body_spec.rb +2 -2
- data/spec/models/feature_flag_config_spec.rb +2 -2
- data/spec/models/feature_flag_scheduled_change_spec.rb +2 -2
- data/spec/models/feature_flag_scheduled_changes_spec.rb +2 -2
- data/spec/models/feature_flag_spec.rb +2 -2
- data/spec/models/feature_flag_status_across_environments_spec.rb +2 -2
- data/spec/models/feature_flag_status_spec.rb +2 -2
- data/spec/models/feature_flag_statuses_spec.rb +2 -2
- data/spec/models/feature_flags_spec.rb +2 -2
- data/spec/models/flag_config_approval_request_response_spec.rb +8 -2
- data/spec/models/flag_config_approval_requests_response_spec.rb +2 -2
- data/spec/models/flag_copy_config_environment_spec.rb +2 -2
- data/spec/models/flag_copy_config_post_spec.rb +2 -2
- data/spec/models/flag_global_attributes_rep_spec.rb +2 -2
- data/spec/models/flag_listing_rep_spec.rb +2 -2
- data/spec/models/flag_scheduled_changes_input_spec.rb +2 -2
- data/spec/models/flag_status_rep_spec.rb +2 -2
- data/spec/models/flag_summary_spec.rb +2 -2
- data/spec/models/flag_trigger_input_spec.rb +40 -0
- data/spec/models/forbidden_error_rep_spec.rb +40 -0
- data/spec/models/hunk_rep_spec.rb +2 -2
- data/spec/models/integration_metadata_spec.rb +2 -2
- data/spec/models/integration_spec.rb +100 -0
- data/spec/models/integration_status_rep_spec.rb +46 -0
- data/spec/models/integration_status_spec.rb +2 -2
- data/spec/models/integration_subscription_status_rep_spec.rb +58 -0
- data/spec/models/integrations_spec.rb +46 -0
- data/spec/models/invalid_request_error_rep_spec.rb +40 -0
- data/spec/models/ip_list_spec.rb +2 -2
- data/spec/models/last_seen_metadata_spec.rb +2 -2
- data/spec/models/link_spec.rb +2 -2
- data/spec/models/member_data_rep_spec.rb +2 -2
- data/spec/models/member_import_item_rep_spec.rb +46 -0
- data/spec/models/member_permission_grant_summary_rep_spec.rb +2 -2
- data/spec/models/member_spec.rb +8 -2
- data/spec/models/member_summary_rep_spec.rb +2 -2
- data/spec/models/member_team_summary_rep_spec.rb +2 -2
- data/spec/models/member_teams_post_input_spec.rb +34 -0
- data/spec/models/members_spec.rb +2 -2
- data/spec/models/method_not_allowed_error_rep_spec.rb +40 -0
- data/spec/models/metric_collection_rep_spec.rb +2 -2
- data/spec/models/metric_listing_rep_spec.rb +6 -2
- data/spec/models/metric_post_spec.rb +6 -2
- data/spec/models/metric_rep_spec.rb +6 -2
- data/spec/models/metric_seen_spec.rb +40 -0
- data/spec/models/modification_spec.rb +2 -2
- data/spec/models/multi_environment_dependent_flag_spec.rb +2 -2
- data/spec/models/multi_environment_dependent_flags_spec.rb +2 -2
- data/spec/models/new_member_form_spec.rb +2 -2
- data/spec/models/not_found_error_rep_spec.rb +40 -0
- data/spec/models/parent_resource_rep_spec.rb +2 -2
- data/spec/models/patch_failed_error_rep_spec.rb +40 -0
- data/spec/models/patch_operation_spec.rb +2 -2
- data/spec/models/patch_segment_instruction_spec.rb +2 -2
- data/spec/models/patch_segment_request_spec.rb +2 -2
- data/spec/models/patch_with_comment_spec.rb +2 -2
- data/spec/models/permission_grant_input_spec.rb +46 -0
- data/spec/models/permission_grant_rep_spec.rb +52 -0
- data/spec/models/post_approval_request_apply_request_spec.rb +2 -2
- data/spec/models/post_approval_request_review_request_spec.rb +2 -2
- data/spec/models/post_flag_scheduled_changes_input_spec.rb +2 -2
- data/spec/models/prerequisite_spec.rb +2 -2
- data/spec/models/project_listing_rep_spec.rb +2 -2
- data/spec/models/project_post_spec.rb +2 -2
- data/spec/models/project_spec.rb +2 -2
- data/spec/models/projects_spec.rb +2 -2
- data/spec/models/pub_nub_detail_rep_spec.rb +2 -2
- data/spec/models/put_branch_spec.rb +64 -0
- data/spec/models/rate_limited_error_rep_spec.rb +40 -0
- data/spec/models/recent_trigger_body_spec.rb +40 -0
- data/spec/models/reference_rep_spec.rb +2 -2
- data/spec/models/relay_auto_config_collection_rep_spec.rb +2 -2
- data/spec/models/relay_auto_config_post_spec.rb +2 -2
- data/spec/models/relay_auto_config_rep_spec.rb +2 -2
- data/spec/models/repository_collection_rep_spec.rb +2 -2
- data/spec/models/repository_post_spec.rb +2 -2
- data/spec/models/repository_rep_spec.rb +6 -2
- data/spec/models/resource_access_spec.rb +2 -2
- data/spec/models/resource_id_response_spec.rb +2 -2
- data/spec/models/review_output_rep_spec.rb +58 -0
- data/spec/models/review_response_spec.rb +2 -2
- data/spec/models/rollout_spec.rb +2 -2
- data/spec/models/rule_spec.rb +8 -2
- data/spec/models/schedule_condition_input_rep_spec.rb +40 -0
- data/spec/models/schedule_condition_output_rep_spec.rb +34 -0
- data/spec/models/sdk_list_rep_spec.rb +2 -2
- data/spec/models/sdk_version_list_rep_spec.rb +2 -2
- data/spec/models/sdk_version_rep_spec.rb +2 -2
- data/spec/models/segment_body_spec.rb +2 -2
- data/spec/models/segment_metadata_spec.rb +2 -2
- data/spec/models/segment_user_list_spec.rb +2 -2
- data/spec/models/segment_user_state_spec.rb +2 -2
- data/spec/models/series_list_rep_spec.rb +2 -2
- data/spec/models/source_flag_spec.rb +2 -2
- data/spec/models/stage_input_rep_spec.rb +46 -0
- data/spec/models/stage_output_rep_spec.rb +58 -0
- data/spec/models/statement_post_data_spec.rb +2 -2
- data/spec/models/statement_post_spec.rb +2 -2
- data/spec/models/statement_rep_spec.rb +2 -2
- data/spec/models/statement_spec.rb +2 -2
- data/spec/models/statistic_collection_rep_spec.rb +2 -2
- data/spec/models/statistic_rep_spec.rb +2 -2
- data/spec/models/statistics_root_spec.rb +2 -2
- data/spec/models/status_conflict_error_rep_spec.rb +40 -0
- data/spec/models/subject_data_rep_spec.rb +2 -2
- data/spec/models/subscription_post_spec.rb +70 -0
- data/spec/models/target_resource_rep_spec.rb +2 -2
- data/spec/models/target_spec.rb +2 -2
- data/spec/models/team_collection_rep_spec.rb +46 -0
- data/spec/models/team_imports_rep_spec.rb +34 -0
- data/spec/models/team_patch_input_spec.rb +40 -0
- data/spec/models/team_post_input_spec.rb +64 -0
- data/spec/models/team_rep_spec.rb +100 -0
- data/spec/models/title_rep_spec.rb +2 -2
- data/spec/models/token_data_rep_spec.rb +2 -2
- data/spec/models/token_spec.rb +2 -2
- data/spec/models/tokens_spec.rb +2 -2
- data/spec/models/trigger_post_spec.rb +46 -0
- data/spec/models/trigger_workflow_collection_rep_spec.rb +40 -0
- data/spec/models/trigger_workflow_rep_spec.rb +106 -0
- data/spec/models/unauthorized_error_rep_spec.rb +40 -0
- data/spec/models/url_post_spec.rb +2 -2
- data/spec/models/user_attribute_names_rep_spec.rb +2 -2
- data/spec/models/user_flag_setting_spec.rb +2 -2
- data/spec/models/user_flag_settings_spec.rb +2 -2
- data/spec/models/user_record_rep_spec.rb +58 -0
- data/spec/models/user_record_spec.rb +14 -2
- data/spec/models/user_segment_rule_spec.rb +2 -2
- data/spec/models/user_segment_spec.rb +8 -2
- data/spec/models/user_segments_spec.rb +2 -2
- data/spec/models/user_spec.rb +45 -9
- data/spec/models/users_spec.rb +2 -2
- data/spec/models/value_put_spec.rb +2 -2
- data/spec/models/variation_or_rollout_rep_spec.rb +2 -2
- data/spec/models/variation_spec.rb +2 -2
- data/spec/models/variation_summary_spec.rb +2 -2
- data/spec/models/versions_rep_spec.rb +2 -2
- data/spec/models/webhook_post_spec.rb +2 -2
- data/spec/models/webhook_spec.rb +2 -2
- data/spec/models/webhooks_spec.rb +2 -2
- data/spec/models/weighted_variation_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +474 -270
- data/docs/ExtinctionRep.md +0 -26
- data/docs/InlineObject.md +0 -26
- data/docs/InlineObject1.md +0 -28
- data/docs/InlineResponse200.md +0 -20
- data/docs/Variate.md +0 -24
- data/lib/launchdarkly_api/models/extinction_rep.rb +0 -279
- data/lib/launchdarkly_api/models/inline_object.rb +0 -274
- data/lib/launchdarkly_api/models/inline_object1.rb +0 -276
- data/lib/launchdarkly_api/models/inline_response200.rb +0 -227
- data/lib/launchdarkly_api/models/variate.rb +0 -246
- data/spec/models/extinction_rep_spec.rb +0 -58
- data/spec/models/inline_object1_spec.rb +0 -64
- data/spec/models/inline_object_spec.rb +0 -58
- data/spec/models/inline_response200_spec.rb +0 -40
- data/spec/models/variate_spec.rb +0 -52
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **resources** | **Array<
|
8
|
-
| **not_resources** | **Array<
|
9
|
-
| **actions** | **Array<String>** |
|
10
|
-
| **not_actions** | **Array<String>** |
|
7
|
+
| **resources** | **Array<String>** | Resource specifier strings | [optional] |
|
8
|
+
| **not_resources** | **Array<String>** | Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field. | [optional] |
|
9
|
+
| **actions** | **Array<String>** | Actions to perform on a resource | [optional] |
|
10
|
+
| **not_actions** | **Array<String>** | Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field. | [optional] |
|
11
11
|
| **effect** | **String** | | |
|
12
12
|
| **role_name** | **String** | | [optional] |
|
13
13
|
|
data/docs/AccessTokensApi.md
CHANGED
data/docs/AccountMembersApi.md
CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *https://app.launchdarkly.com*
|
|
8
8
|
| [**get_member**](AccountMembersApi.md#get_member) | **GET** /api/v2/members/{id} | Get account member |
|
9
9
|
| [**get_members**](AccountMembersApi.md#get_members) | **GET** /api/v2/members | List account members |
|
10
10
|
| [**patch_member**](AccountMembersApi.md#patch_member) | **PATCH** /api/v2/members/{id} | Modify an account member |
|
11
|
+
| [**post_member_teams**](AccountMembersApi.md#post_member_teams) | **POST** /api/v2/members/{id}/teams | Add member to teams |
|
11
12
|
| [**post_members**](AccountMembersApi.md#post_members) | **POST** /api/v2/members | Invite new members |
|
12
13
|
|
13
14
|
|
@@ -17,7 +18,7 @@ All URIs are relative to *https://app.launchdarkly.com*
|
|
17
18
|
|
18
19
|
Delete account member
|
19
20
|
|
20
|
-
Delete a single account member by ID
|
21
|
+
Delete a single account member by ID. Requests to delete account members will not work if SCIM is enabled for the account.
|
21
22
|
|
22
23
|
### Examples
|
23
24
|
|
@@ -78,7 +79,7 @@ nil (empty response body)
|
|
78
79
|
### HTTP request headers
|
79
80
|
|
80
81
|
- **Content-Type**: Not defined
|
81
|
-
- **Accept**:
|
82
|
+
- **Accept**: application/json
|
82
83
|
|
83
84
|
|
84
85
|
## get_member
|
@@ -177,7 +178,7 @@ api_instance = LaunchDarklyApi::AccountMembersApi.new
|
|
177
178
|
opts = {
|
178
179
|
limit: 789, # Integer | The number of members to return in the response. Defaults to 20.
|
179
180
|
offset: 789, # Integer | Where to start in the list. This is for use with pagination. For example, an offset of 10 would skip the first ten items and then return the next `limit` items.
|
180
|
-
filter: 'filter_example', # String | A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained
|
181
|
+
filter: 'filter_example', # String | A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained above.
|
181
182
|
sort: 'sort_example' # String | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order.
|
182
183
|
}
|
183
184
|
|
@@ -214,7 +215,7 @@ end
|
|
214
215
|
| ---- | ---- | ----------- | ----- |
|
215
216
|
| **limit** | **Integer** | The number of members to return in the response. Defaults to 20. | [optional] |
|
216
217
|
| **offset** | **Integer** | Where to start in the list. This is for use with pagination. For example, an offset of 10 would skip the first ten items and then return the next `limit` items. | [optional] |
|
217
|
-
| **filter** | **String** | A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained
|
218
|
+
| **filter** | **String** | A comma-separated list of filters. Each filter is of the form `field:value`. Supported fields are explained above. | [optional] |
|
218
219
|
| **sort** | **String** | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order. | [optional] |
|
219
220
|
|
220
221
|
### Return type
|
@@ -237,7 +238,7 @@ end
|
|
237
238
|
|
238
239
|
Modify an account member
|
239
240
|
|
240
|
-
Update a single account member. The request should be a valid JSON Patch document describing the changes to be made to the member.
|
241
|
+
Update a single account member. The request should be a valid JSON Patch document describing the changes to be made to the member. To update fields in the account member object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Using `/0` appends to the beginning of the array. For example, to add a new custom role to a member, use the following request body: ``` [ { \"op\": \"add\", \"path\": \"/customRoles/0\", \"value\": \"some-role-id\" } ] ``` Requests to update account members will not work if SCIM is enabled for the account.
|
241
242
|
|
242
243
|
### Examples
|
243
244
|
|
@@ -304,13 +305,86 @@ end
|
|
304
305
|
- **Accept**: application/json
|
305
306
|
|
306
307
|
|
308
|
+
## post_member_teams
|
309
|
+
|
310
|
+
> <Member> post_member_teams(id, member_teams_post_input)
|
311
|
+
|
312
|
+
Add member to teams
|
313
|
+
|
314
|
+
Add member to team(s)
|
315
|
+
|
316
|
+
### Examples
|
317
|
+
|
318
|
+
```ruby
|
319
|
+
require 'time'
|
320
|
+
require 'launchdarkly_api'
|
321
|
+
# setup authorization
|
322
|
+
LaunchDarklyApi.configure do |config|
|
323
|
+
# Configure API key authorization: ApiKey
|
324
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
325
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
326
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
327
|
+
end
|
328
|
+
|
329
|
+
api_instance = LaunchDarklyApi::AccountMembersApi.new
|
330
|
+
id = 'id_example' # String | The member ID
|
331
|
+
member_teams_post_input = LaunchDarklyApi::MemberTeamsPostInput.new({team_keys: ['team_keys_example']}) # MemberTeamsPostInput |
|
332
|
+
|
333
|
+
begin
|
334
|
+
# Add member to teams
|
335
|
+
result = api_instance.post_member_teams(id, member_teams_post_input)
|
336
|
+
p result
|
337
|
+
rescue LaunchDarklyApi::ApiError => e
|
338
|
+
puts "Error when calling AccountMembersApi->post_member_teams: #{e}"
|
339
|
+
end
|
340
|
+
```
|
341
|
+
|
342
|
+
#### Using the post_member_teams_with_http_info variant
|
343
|
+
|
344
|
+
This returns an Array which contains the response data, status code and headers.
|
345
|
+
|
346
|
+
> <Array(<Member>, Integer, Hash)> post_member_teams_with_http_info(id, member_teams_post_input)
|
347
|
+
|
348
|
+
```ruby
|
349
|
+
begin
|
350
|
+
# Add member to teams
|
351
|
+
data, status_code, headers = api_instance.post_member_teams_with_http_info(id, member_teams_post_input)
|
352
|
+
p status_code # => 2xx
|
353
|
+
p headers # => { ... }
|
354
|
+
p data # => <Member>
|
355
|
+
rescue LaunchDarklyApi::ApiError => e
|
356
|
+
puts "Error when calling AccountMembersApi->post_member_teams_with_http_info: #{e}"
|
357
|
+
end
|
358
|
+
```
|
359
|
+
|
360
|
+
### Parameters
|
361
|
+
|
362
|
+
| Name | Type | Description | Notes |
|
363
|
+
| ---- | ---- | ----------- | ----- |
|
364
|
+
| **id** | **String** | The member ID | |
|
365
|
+
| **member_teams_post_input** | [**MemberTeamsPostInput**](MemberTeamsPostInput.md) | | |
|
366
|
+
|
367
|
+
### Return type
|
368
|
+
|
369
|
+
[**Member**](Member.md)
|
370
|
+
|
371
|
+
### Authorization
|
372
|
+
|
373
|
+
[ApiKey](../README.md#ApiKey)
|
374
|
+
|
375
|
+
### HTTP request headers
|
376
|
+
|
377
|
+
- **Content-Type**: application/json
|
378
|
+
- **Accept**: application/json
|
379
|
+
|
380
|
+
|
307
381
|
## post_members
|
308
382
|
|
309
|
-
> <Members> post_members(
|
383
|
+
> <Members> post_members(new_member_form)
|
310
384
|
|
311
385
|
Invite new members
|
312
386
|
|
313
|
-
> ### Full use of this API resource is only available to accounts with paid subscriptions > > The ability to bulk invite members is a paid feature. Single members may be invited if not on a paid plan. Invite one or more new members to join an account. Each member is sent an invitation. Members with \"admin\" or \"owner\" roles may create new members, as well as anyone with a \"createMember\" permission for \"member/\\*\". If a member cannot be invited, the entire request is rejected and no members are invited from that request. Each member _must_ have an `email` field and either a `role` or a `customRoles` field. If any of the fields are not populated correctly, the request is rejected with the reason specified in the \"message\" field of the response. _No more than 50 members may be created per request._ A request may also fail because of conflicts with existing members. These conflicts are reported using the additional `code` and `invalid_emails` response fields with the following possible values for `code`: - **email_already_exists_in_account**: A member with this email address already exists in this account. - **email_taken_in_different_account**: A member with this email address exists in another account. - **duplicate_email**s: This request contains two or more members with the same email address. A request that fails for one of the above reasons returns an HTTP response code of 400 (Bad Request).
|
387
|
+
> ### Full use of this API resource is only available to accounts with paid subscriptions > > The ability to bulk invite members is a paid feature. Single members may be invited if not on a paid plan. Invite one or more new members to join an account. Each member is sent an invitation. Members with \"admin\" or \"owner\" roles may create new members, as well as anyone with a \"createMember\" permission for \"member/\\*\". If a member cannot be invited, the entire request is rejected and no members are invited from that request. Each member _must_ have an `email` field and either a `role` or a `customRoles` field. If any of the fields are not populated correctly, the request is rejected with the reason specified in the \"message\" field of the response. Requests to create account members will not work if SCIM is enabled for the account. _No more than 50 members may be created per request._ A request may also fail because of conflicts with existing members. These conflicts are reported using the additional `code` and `invalid_emails` response fields with the following possible values for `code`: - **email_already_exists_in_account**: A member with this email address already exists in this account. - **email_taken_in_different_account**: A member with this email address exists in another account. - **duplicate_email**s: This request contains two or more members with the same email address. A request that fails for one of the above reasons returns an HTTP response code of 400 (Bad Request).
|
314
388
|
|
315
389
|
### Examples
|
316
390
|
|
@@ -326,11 +400,11 @@ LaunchDarklyApi.configure do |config|
|
|
326
400
|
end
|
327
401
|
|
328
402
|
api_instance = LaunchDarklyApi::AccountMembersApi.new
|
329
|
-
|
403
|
+
new_member_form = [LaunchDarklyApi::NewMemberForm.new({email: 'email_example'})] # Array<NewMemberForm> |
|
330
404
|
|
331
405
|
begin
|
332
406
|
# Invite new members
|
333
|
-
result = api_instance.post_members(
|
407
|
+
result = api_instance.post_members(new_member_form)
|
334
408
|
p result
|
335
409
|
rescue LaunchDarklyApi::ApiError => e
|
336
410
|
puts "Error when calling AccountMembersApi->post_members: #{e}"
|
@@ -341,12 +415,12 @@ end
|
|
341
415
|
|
342
416
|
This returns an Array which contains the response data, status code and headers.
|
343
417
|
|
344
|
-
> <Array(<Members>, Integer, Hash)> post_members_with_http_info(
|
418
|
+
> <Array(<Members>, Integer, Hash)> post_members_with_http_info(new_member_form)
|
345
419
|
|
346
420
|
```ruby
|
347
421
|
begin
|
348
422
|
# Invite new members
|
349
|
-
data, status_code, headers = api_instance.post_members_with_http_info(
|
423
|
+
data, status_code, headers = api_instance.post_members_with_http_info(new_member_form)
|
350
424
|
p status_code # => 2xx
|
351
425
|
p headers # => { ... }
|
352
426
|
p data # => <Members>
|
@@ -359,7 +433,7 @@ end
|
|
359
433
|
|
360
434
|
| Name | Type | Description | Notes |
|
361
435
|
| ---- | ---- | ----------- | ----- |
|
362
|
-
| **
|
436
|
+
| **new_member_form** | [**Array<NewMemberForm>**](NewMemberForm.md) | | |
|
363
437
|
|
364
438
|
### Return type
|
365
439
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# LaunchDarklyApi::ActionInputRep
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **instructions** | **Object** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'launchdarkly_api'
|
13
|
+
|
14
|
+
instance = LaunchDarklyApi::ActionInputRep.new(
|
15
|
+
instructions: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# LaunchDarklyApi::ActionOutputRep
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **kind** | **String** | | |
|
8
|
+
| **instructions** | **Array<Hash>** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'launchdarkly_api'
|
14
|
+
|
15
|
+
instance = LaunchDarklyApi::ActionOutputRep.new(
|
16
|
+
kind: null,
|
17
|
+
instructions: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# LaunchDarklyApi::ApprovalConditionInputRep
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **description** | **String** | | [optional] |
|
8
|
+
| **notify_member_ids** | **Array<String>** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'launchdarkly_api'
|
14
|
+
|
15
|
+
instance = LaunchDarklyApi::ApprovalConditionInputRep.new(
|
16
|
+
description: null,
|
17
|
+
notify_member_ids: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# LaunchDarklyApi::ApprovalConditionOutputRep
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **description** | **String** | | |
|
8
|
+
| **notify_member_ids** | **Array<String>** | | |
|
9
|
+
| **all_reviews** | [**Array<ReviewOutputRep>**](ReviewOutputRep.md) | | |
|
10
|
+
| **review_status** | **String** | | |
|
11
|
+
| **applied_date** | **Integer** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'launchdarkly_api'
|
17
|
+
|
18
|
+
instance = LaunchDarklyApi::ApprovalConditionOutputRep.new(
|
19
|
+
description: null,
|
20
|
+
notify_member_ids: null,
|
21
|
+
all_reviews: null,
|
22
|
+
review_status: null,
|
23
|
+
applied_date: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/ApprovalSettings.md
CHANGED
@@ -23,7 +23,7 @@ instance = LaunchDarklyApi::ApprovalSettings.new(
|
|
23
23
|
bypass_approvals_for_pending_changes: false,
|
24
24
|
min_num_approvals: 1,
|
25
25
|
can_review_own_request: false,
|
26
|
-
can_apply_declined_changes:
|
26
|
+
can_apply_declined_changes: true,
|
27
27
|
service_kind: launchdarkly,
|
28
28
|
service_config: {},
|
29
29
|
required_approval_tags: ["require-approval"]
|
data/docs/ApprovalsApi.md
CHANGED
@@ -10,7 +10,7 @@ All URIs are relative to *https://app.launchdarkly.com*
|
|
10
10
|
| [**post_approval_request**](ApprovalsApi.md#post_approval_request) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests | Create approval request |
|
11
11
|
| [**post_approval_request_apply_request**](ApprovalsApi.md#post_approval_request_apply_request) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}/apply | Apply approval request |
|
12
12
|
| [**post_approval_request_review**](ApprovalsApi.md#post_approval_request_review) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}/reviews | Review approval request |
|
13
|
-
| [**post_flag_copy_config_approval_request**](ApprovalsApi.md#post_flag_copy_config_approval_request) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/
|
13
|
+
| [**post_flag_copy_config_approval_request**](ApprovalsApi.md#post_flag_copy_config_approval_request) | **POST** /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy | Create approval request to copy flag configurations across environments |
|
14
14
|
|
15
15
|
|
16
16
|
## delete_approval_request
|
@@ -86,7 +86,7 @@ nil (empty response body)
|
|
86
86
|
### HTTP request headers
|
87
87
|
|
88
88
|
- **Content-Type**: Not defined
|
89
|
-
- **Accept**:
|
89
|
+
- **Accept**: application/json
|
90
90
|
|
91
91
|
|
92
92
|
## get_approval
|
@@ -501,7 +501,7 @@ api_instance = LaunchDarklyApi::ApprovalsApi.new
|
|
501
501
|
project_key = 'project_key_example' # String | The project key
|
502
502
|
feature_flag_key = 'feature_flag_key_example' # String | The feature flag's key
|
503
503
|
environment_key = 'environment_key_example' # String | The environment key
|
504
|
-
create_copy_flag_config_approval_request_request = LaunchDarklyApi::CreateCopyFlagConfigApprovalRequestRequest.new({notify_member_ids: ['notify_member_ids_example'], source: LaunchDarklyApi::SourceFlag.new({key: 'key_example'})}) # CreateCopyFlagConfigApprovalRequestRequest |
|
504
|
+
create_copy_flag_config_approval_request_request = LaunchDarklyApi::CreateCopyFlagConfigApprovalRequestRequest.new({description: 'description_example', notify_member_ids: ['notify_member_ids_example'], source: LaunchDarklyApi::SourceFlag.new({key: 'key_example'})}) # CreateCopyFlagConfigApprovalRequestRequest |
|
505
505
|
|
506
506
|
begin
|
507
507
|
# Create approval request to copy flag configurations across environments
|
data/docs/BranchCollectionRep.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **_links** | [**Hash<String, Link>**](Link.md) | | |
|
8
|
-
| **items** | [**Array<BranchRep>**](BranchRep.md) |
|
8
|
+
| **items** | [**Array<BranchRep>**](BranchRep.md) | An array of branches | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
data/docs/BranchRep.md
CHANGED
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **name** | **String** |
|
8
|
-
| **head** | **String** |
|
9
|
-
| **update_sequence_id** | **Integer** |
|
10
|
-
| **sync_time** | **Integer** | |
|
11
|
-
| **references** | [**Array<ReferenceRep>**](ReferenceRep.md) |
|
12
|
-
| **_links** | **Hash<String, Object>** | |
|
7
|
+
| **name** | **String** | The branch name | |
|
8
|
+
| **head** | **String** | An ID representing the branch HEAD. For example, a commit SHA. | |
|
9
|
+
| **update_sequence_id** | **Integer** | An optional ID used to prevent older data from overwriting newer data | [optional] |
|
10
|
+
| **sync_time** | **Integer** | | |
|
11
|
+
| **references** | [**Array<ReferenceRep>**](ReferenceRep.md) | An array of flag references found on the branch | [optional] |
|
12
|
+
| **_links** | **Hash<String, Object>** | | |
|
13
13
|
|
14
14
|
## Example
|
15
15
|
|
@@ -17,9 +17,9 @@
|
|
17
17
|
require 'launchdarkly_api'
|
18
18
|
|
19
19
|
instance = LaunchDarklyApi::BranchRep.new(
|
20
|
-
name:
|
21
|
-
head:
|
22
|
-
update_sequence_id:
|
20
|
+
name: main,
|
21
|
+
head: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3,
|
22
|
+
update_sequence_id: 25,
|
23
23
|
sync_time: null,
|
24
24
|
references: null,
|
25
25
|
_links: null
|
data/docs/CodeReferencesApi.md
CHANGED
@@ -11,10 +11,10 @@ All URIs are relative to *https://app.launchdarkly.com*
|
|
11
11
|
| [**get_extinctions**](CodeReferencesApi.md#get_extinctions) | **GET** /api/v2/code-refs/extinctions | List extinctions |
|
12
12
|
| [**get_repositories**](CodeReferencesApi.md#get_repositories) | **GET** /api/v2/code-refs/repositories | List repositories |
|
13
13
|
| [**get_repository**](CodeReferencesApi.md#get_repository) | **GET** /api/v2/code-refs/repositories/{repo} | Get repository |
|
14
|
-
| [**get_root_statistic**](CodeReferencesApi.md#get_root_statistic) | **GET** /api/v2/code-refs/statistics | Get
|
14
|
+
| [**get_root_statistic**](CodeReferencesApi.md#get_root_statistic) | **GET** /api/v2/code-refs/statistics | Get links to code reference repositories for each project |
|
15
15
|
| [**get_statistics**](CodeReferencesApi.md#get_statistics) | **GET** /api/v2/code-refs/statistics/{projKey} | Get number of code references for flags |
|
16
16
|
| [**patch_repository**](CodeReferencesApi.md#patch_repository) | **PATCH** /api/v2/code-refs/repositories/{repo} | Update repository |
|
17
|
-
| [**post_extinction**](CodeReferencesApi.md#post_extinction) | **POST** /api/v2/code-refs/repositories/{repo}/branches/{branch} | Create extinction |
|
17
|
+
| [**post_extinction**](CodeReferencesApi.md#post_extinction) | **POST** /api/v2/code-refs/repositories/{repo}/branches/{branch}/extinction-events | Create extinction |
|
18
18
|
| [**post_repository**](CodeReferencesApi.md#post_repository) | **POST** /api/v2/code-refs/repositories | Create repository |
|
19
19
|
| [**put_branch**](CodeReferencesApi.md#put_branch) | **PUT** /api/v2/code-refs/repositories/{repo}/branches/{branch} | Upsert branch |
|
20
20
|
|
@@ -88,7 +88,7 @@ nil (empty response body)
|
|
88
88
|
### HTTP request headers
|
89
89
|
|
90
90
|
- **Content-Type**: application/json
|
91
|
-
- **Accept**:
|
91
|
+
- **Accept**: application/json
|
92
92
|
|
93
93
|
|
94
94
|
## delete_repository
|
@@ -158,7 +158,7 @@ nil (empty response body)
|
|
158
158
|
### HTTP request headers
|
159
159
|
|
160
160
|
- **Content-Type**: Not defined
|
161
|
-
- **Accept**:
|
161
|
+
- **Accept**: application/json
|
162
162
|
|
163
163
|
|
164
164
|
## get_branch
|
@@ -335,9 +335,11 @@ end
|
|
335
335
|
api_instance = LaunchDarklyApi::CodeReferencesApi.new
|
336
336
|
opts = {
|
337
337
|
repo_name: 'repo_name_example', # String | Filter results to a specific repository
|
338
|
-
branch_name: 'branch_name_example', # String | Filter results to a specific branch
|
338
|
+
branch_name: 'branch_name_example', # String | Filter results to a specific branch. By default, only the default branch will be queried for extinctions.
|
339
339
|
proj_key: 'proj_key_example', # String | Filter results to a specific project
|
340
|
-
flag_key: 'flag_key_example' # String | Filter results to a specific flag key
|
340
|
+
flag_key: 'flag_key_example', # String | Filter results to a specific flag key
|
341
|
+
from: 789, # Integer | Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `to`.
|
342
|
+
to: 789 # Integer | Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `from`.
|
341
343
|
}
|
342
344
|
|
343
345
|
begin
|
@@ -372,9 +374,11 @@ end
|
|
372
374
|
| Name | Type | Description | Notes |
|
373
375
|
| ---- | ---- | ----------- | ----- |
|
374
376
|
| **repo_name** | **String** | Filter results to a specific repository | [optional] |
|
375
|
-
| **branch_name** | **String** | Filter results to a specific branch | [optional] |
|
377
|
+
| **branch_name** | **String** | Filter results to a specific branch. By default, only the default branch will be queried for extinctions. | [optional] |
|
376
378
|
| **proj_key** | **String** | Filter results to a specific project | [optional] |
|
377
379
|
| **flag_key** | **String** | Filter results to a specific flag key | [optional] |
|
380
|
+
| **from** | **Integer** | Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `to`. | [optional] |
|
381
|
+
| **to** | **Integer** | Filter results to a specific timeframe based on commit time, expressed as a Unix epoch time in milliseconds. Must be used with `from`. | [optional] |
|
378
382
|
|
379
383
|
### Return type
|
380
384
|
|
@@ -544,7 +548,7 @@ end
|
|
544
548
|
|
545
549
|
> <StatisticsRoot> get_root_statistic
|
546
550
|
|
547
|
-
Get
|
551
|
+
Get links to code reference repositories for each project
|
548
552
|
|
549
553
|
Get links for all projects that have Code References.
|
550
554
|
|
@@ -564,7 +568,7 @@ end
|
|
564
568
|
api_instance = LaunchDarklyApi::CodeReferencesApi.new
|
565
569
|
|
566
570
|
begin
|
567
|
-
# Get
|
571
|
+
# Get links to code reference repositories for each project
|
568
572
|
result = api_instance.get_root_statistic
|
569
573
|
p result
|
570
574
|
rescue LaunchDarklyApi::ApiError => e
|
@@ -580,7 +584,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
580
584
|
|
581
585
|
```ruby
|
582
586
|
begin
|
583
|
-
# Get
|
587
|
+
# Get links to code reference repositories for each project
|
584
588
|
data, status_code, headers = api_instance.get_root_statistic_with_http_info
|
585
589
|
p status_code # => 2xx
|
586
590
|
p headers # => { ... }
|
@@ -758,7 +762,7 @@ end
|
|
758
762
|
|
759
763
|
## post_extinction
|
760
764
|
|
761
|
-
> post_extinction(repo, branch,
|
765
|
+
> post_extinction(repo, branch, extinction)
|
762
766
|
|
763
767
|
Create extinction
|
764
768
|
|
@@ -780,11 +784,11 @@ end
|
|
780
784
|
api_instance = LaunchDarklyApi::CodeReferencesApi.new
|
781
785
|
repo = 'repo_example' # String | The repository name
|
782
786
|
branch = 'branch_example' # String | The url-encoded branch name
|
783
|
-
|
787
|
+
extinction = [LaunchDarklyApi::Extinction.new({revision: 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3', message: 'Remove flag for launched feature', time: 3.56, flag_key: 'enable-feature', proj_key: 'default'})] # Array<Extinction> |
|
784
788
|
|
785
789
|
begin
|
786
790
|
# Create extinction
|
787
|
-
api_instance.post_extinction(repo, branch,
|
791
|
+
api_instance.post_extinction(repo, branch, extinction)
|
788
792
|
rescue LaunchDarklyApi::ApiError => e
|
789
793
|
puts "Error when calling CodeReferencesApi->post_extinction: #{e}"
|
790
794
|
end
|
@@ -794,12 +798,12 @@ end
|
|
794
798
|
|
795
799
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
796
800
|
|
797
|
-
> <Array(nil, Integer, Hash)> post_extinction_with_http_info(repo, branch,
|
801
|
+
> <Array(nil, Integer, Hash)> post_extinction_with_http_info(repo, branch, extinction)
|
798
802
|
|
799
803
|
```ruby
|
800
804
|
begin
|
801
805
|
# Create extinction
|
802
|
-
data, status_code, headers = api_instance.post_extinction_with_http_info(repo, branch,
|
806
|
+
data, status_code, headers = api_instance.post_extinction_with_http_info(repo, branch, extinction)
|
803
807
|
p status_code # => 2xx
|
804
808
|
p headers # => { ... }
|
805
809
|
p data # => nil
|
@@ -814,7 +818,7 @@ end
|
|
814
818
|
| ---- | ---- | ----------- | ----- |
|
815
819
|
| **repo** | **String** | The repository name | |
|
816
820
|
| **branch** | **String** | The url-encoded branch name | |
|
817
|
-
| **
|
821
|
+
| **extinction** | [**Array<Extinction>**](Extinction.md) | | |
|
818
822
|
|
819
823
|
### Return type
|
820
824
|
|
@@ -827,12 +831,12 @@ nil (empty response body)
|
|
827
831
|
### HTTP request headers
|
828
832
|
|
829
833
|
- **Content-Type**: application/json
|
830
|
-
- **Accept**:
|
834
|
+
- **Accept**: application/json
|
831
835
|
|
832
836
|
|
833
837
|
## post_repository
|
834
838
|
|
835
|
-
> post_repository(repository_post)
|
839
|
+
> <RepositoryRep> post_repository(repository_post)
|
836
840
|
|
837
841
|
Create repository
|
838
842
|
|
@@ -852,11 +856,12 @@ LaunchDarklyApi.configure do |config|
|
|
852
856
|
end
|
853
857
|
|
854
858
|
api_instance = LaunchDarklyApi::CodeReferencesApi.new
|
855
|
-
repository_post = LaunchDarklyApi::RepositoryPost.new({name: '
|
859
|
+
repository_post = LaunchDarklyApi::RepositoryPost.new({name: 'LaunchDarkly-Docs'}) # RepositoryPost |
|
856
860
|
|
857
861
|
begin
|
858
862
|
# Create repository
|
859
|
-
api_instance.post_repository(repository_post)
|
863
|
+
result = api_instance.post_repository(repository_post)
|
864
|
+
p result
|
860
865
|
rescue LaunchDarklyApi::ApiError => e
|
861
866
|
puts "Error when calling CodeReferencesApi->post_repository: #{e}"
|
862
867
|
end
|
@@ -864,9 +869,9 @@ end
|
|
864
869
|
|
865
870
|
#### Using the post_repository_with_http_info variant
|
866
871
|
|
867
|
-
This returns an Array which contains the response data
|
872
|
+
This returns an Array which contains the response data, status code and headers.
|
868
873
|
|
869
|
-
> <Array(
|
874
|
+
> <Array(<RepositoryRep>, Integer, Hash)> post_repository_with_http_info(repository_post)
|
870
875
|
|
871
876
|
```ruby
|
872
877
|
begin
|
@@ -874,7 +879,7 @@ begin
|
|
874
879
|
data, status_code, headers = api_instance.post_repository_with_http_info(repository_post)
|
875
880
|
p status_code # => 2xx
|
876
881
|
p headers # => { ... }
|
877
|
-
p data # =>
|
882
|
+
p data # => <RepositoryRep>
|
878
883
|
rescue LaunchDarklyApi::ApiError => e
|
879
884
|
puts "Error when calling CodeReferencesApi->post_repository_with_http_info: #{e}"
|
880
885
|
end
|
@@ -888,7 +893,7 @@ end
|
|
888
893
|
|
889
894
|
### Return type
|
890
895
|
|
891
|
-
|
896
|
+
[**RepositoryRep**](RepositoryRep.md)
|
892
897
|
|
893
898
|
### Authorization
|
894
899
|
|
@@ -897,12 +902,12 @@ nil (empty response body)
|
|
897
902
|
### HTTP request headers
|
898
903
|
|
899
904
|
- **Content-Type**: application/json
|
900
|
-
- **Accept**:
|
905
|
+
- **Accept**: application/json
|
901
906
|
|
902
907
|
|
903
908
|
## put_branch
|
904
909
|
|
905
|
-
> put_branch(repo, branch,
|
910
|
+
> put_branch(repo, branch, put_branch)
|
906
911
|
|
907
912
|
Upsert branch
|
908
913
|
|
@@ -924,11 +929,11 @@ end
|
|
924
929
|
api_instance = LaunchDarklyApi::CodeReferencesApi.new
|
925
930
|
repo = 'repo_example' # String | The repository name
|
926
931
|
branch = 'branch_example' # String | The url-encoded branch name
|
927
|
-
|
932
|
+
put_branch = LaunchDarklyApi::PutBranch.new({name: 'main', head: 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3', sync_time: 3.56}) # PutBranch |
|
928
933
|
|
929
934
|
begin
|
930
935
|
# Upsert branch
|
931
|
-
api_instance.put_branch(repo, branch,
|
936
|
+
api_instance.put_branch(repo, branch, put_branch)
|
932
937
|
rescue LaunchDarklyApi::ApiError => e
|
933
938
|
puts "Error when calling CodeReferencesApi->put_branch: #{e}"
|
934
939
|
end
|
@@ -938,12 +943,12 @@ end
|
|
938
943
|
|
939
944
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
940
945
|
|
941
|
-
> <Array(nil, Integer, Hash)> put_branch_with_http_info(repo, branch,
|
946
|
+
> <Array(nil, Integer, Hash)> put_branch_with_http_info(repo, branch, put_branch)
|
942
947
|
|
943
948
|
```ruby
|
944
949
|
begin
|
945
950
|
# Upsert branch
|
946
|
-
data, status_code, headers = api_instance.put_branch_with_http_info(repo, branch,
|
951
|
+
data, status_code, headers = api_instance.put_branch_with_http_info(repo, branch, put_branch)
|
947
952
|
p status_code # => 2xx
|
948
953
|
p headers # => { ... }
|
949
954
|
p data # => nil
|
@@ -958,7 +963,7 @@ end
|
|
958
963
|
| ---- | ---- | ----------- | ----- |
|
959
964
|
| **repo** | **String** | The repository name | |
|
960
965
|
| **branch** | **String** | The url-encoded branch name | |
|
961
|
-
| **
|
966
|
+
| **put_branch** | [**PutBranch**](PutBranch.md) | | |
|
962
967
|
|
963
968
|
### Return type
|
964
969
|
|
@@ -971,5 +976,5 @@ nil (empty response body)
|
|
971
976
|
### HTTP request headers
|
972
977
|
|
973
978
|
- **Content-Type**: application/json
|
974
|
-
- **Accept**:
|
979
|
+
- **Accept**: application/json
|
975
980
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# LaunchDarklyApi::ConditionBaseOutputRep
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_id** | **String** | | |
|
8
|
+
| **kind** | **String** | | [optional] |
|
9
|
+
| **_execution** | [**ExecutionOutputRep**](ExecutionOutputRep.md) | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'launchdarkly_api'
|
15
|
+
|
16
|
+
instance = LaunchDarklyApi::ConditionBaseOutputRep.new(
|
17
|
+
_id: null,
|
18
|
+
kind: null,
|
19
|
+
_execution: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|