Skip to content

Commit 02e364d

Browse files
author
LaunchDarklyReleaseBot
committed
Version 19.0.0 automatically generated from ld-openapi.
1 parent 65b2cc9 commit 02e364d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1411
-119
lines changed

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ docs/FollowFlagsApi.md
302302
docs/FollowersPerFlag.md
303303
docs/ForbiddenErrorRep.md
304304
docs/FormVariable.md
305+
docs/GenerateTrustPolicyPostRep.md
305306
docs/GenerateWarehouseDestinationKeyPairPostRep.md
306307
docs/GetAnnouncementsPublic200Response.md
307308
docs/GuardedReleaseConfig.md
@@ -577,6 +578,8 @@ docs/TreatmentRep.md
577578
docs/TriggerPost.md
578579
docs/TriggerWorkflowCollectionRep.md
579580
docs/TriggerWorkflowRep.md
581+
docs/TrustPolicyDetails.md
582+
docs/TrustPolicyStatement.md
580583
docs/UnauthorizedErrorRep.md
581584
docs/UnlinkResourceSuccessResponse.md
582585
docs/UpdatePhaseStatusInput.md
@@ -976,6 +979,7 @@ lib/launchdarkly_api/models/follow_flag_member.rb
976979
lib/launchdarkly_api/models/followers_per_flag.rb
977980
lib/launchdarkly_api/models/forbidden_error_rep.rb
978981
lib/launchdarkly_api/models/form_variable.rb
982+
lib/launchdarkly_api/models/generate_trust_policy_post_rep.rb
979983
lib/launchdarkly_api/models/generate_warehouse_destination_key_pair_post_rep.rb
980984
lib/launchdarkly_api/models/get_announcements_public200_response.rb
981985
lib/launchdarkly_api/models/guarded_release_config.rb
@@ -1225,6 +1229,8 @@ lib/launchdarkly_api/models/treatment_rep.rb
12251229
lib/launchdarkly_api/models/trigger_post.rb
12261230
lib/launchdarkly_api/models/trigger_workflow_collection_rep.rb
12271231
lib/launchdarkly_api/models/trigger_workflow_rep.rb
1232+
lib/launchdarkly_api/models/trust_policy_details.rb
1233+
lib/launchdarkly_api/models/trust_policy_statement.rb
12281234
lib/launchdarkly_api/models/unauthorized_error_rep.rb
12291235
lib/launchdarkly_api/models/unlink_resource_success_response.rb
12301236
lib/launchdarkly_api/models/update_phase_status_input.rb
@@ -1612,6 +1618,7 @@ spec/models/follow_flag_member_spec.rb
16121618
spec/models/followers_per_flag_spec.rb
16131619
spec/models/forbidden_error_rep_spec.rb
16141620
spec/models/form_variable_spec.rb
1621+
spec/models/generate_trust_policy_post_rep_spec.rb
16151622
spec/models/generate_warehouse_destination_key_pair_post_rep_spec.rb
16161623
spec/models/get_announcements_public200_response_spec.rb
16171624
spec/models/guarded_release_config_spec.rb
@@ -1861,6 +1868,8 @@ spec/models/treatment_rep_spec.rb
18611868
spec/models/trigger_post_spec.rb
18621869
spec/models/trigger_workflow_collection_rep_spec.rb
18631870
spec/models/trigger_workflow_rep_spec.rb
1871+
spec/models/trust_policy_details_spec.rb
1872+
spec/models/trust_policy_statement_spec.rb
18641873
spec/models/unauthorized_error_rep_spec.rb
18651874
spec/models/unlink_resource_success_response_spec.rb
18661875
spec/models/update_phase_status_input_spec.rb

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build launchdarkly_api.gemspec
11-
- gem install ./launchdarkly_api-18.1.0.gem
11+
- gem install ./launchdarkly_api-19.0.0.gem

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL
450450
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
451451

452452
- API version: 2.0
453-
- Package version: 18.1.0
453+
- Package version: 19.0.0
454454
- Generator version: 7.16.0
455455
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
456456
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
@@ -468,16 +468,16 @@ gem build launchdarkly_api.gemspec
468468
Then either install the gem locally:
469469

470470
```shell
471-
gem install ./launchdarkly_api-18.1.0.gem
471+
gem install ./launchdarkly_api-19.0.0.gem
472472
```
473473

474-
(for development, run `gem install --dev ./launchdarkly_api-18.1.0.gem` to install the development dependencies)
474+
(for development, run `gem install --dev ./launchdarkly_api-19.0.0.gem` to install the development dependencies)
475475

476476
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
477477

478478
Finally add this to the Gemfile:
479479

480-
gem 'launchdarkly_api', '~> 18.1.0'
480+
gem 'launchdarkly_api', '~> 19.0.0'
481481

482482
### Install from Git
483483

@@ -651,6 +651,7 @@ Class | Method | HTTP request | Description
651651
*LaunchDarklyApi::DataExportDestinationsApi* | [**get_destinations**](docs/DataExportDestinationsApi.md#get_destinations) | **GET** /api/v2/destinations | List destinations
652652
*LaunchDarklyApi::DataExportDestinationsApi* | [**patch_destination**](docs/DataExportDestinationsApi.md#patch_destination) | **PATCH** /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Update Data Export destination
653653
*LaunchDarklyApi::DataExportDestinationsApi* | [**post_destination**](docs/DataExportDestinationsApi.md#post_destination) | **POST** /api/v2/destinations/{projectKey}/{environmentKey} | Create Data Export destination
654+
*LaunchDarklyApi::DataExportDestinationsApi* | [**post_generate_trust_policy**](docs/DataExportDestinationsApi.md#post_generate_trust_policy) | **POST** /api/v2/destinations/projects/{projKey}/environments/{envKey}/generate-trust-policy | Generate trust policy
654655
*LaunchDarklyApi::DataExportDestinationsApi* | [**post_generate_warehouse_destination_key_pair**](docs/DataExportDestinationsApi.md#post_generate_warehouse_destination_key_pair) | **POST** /api/v2/destinations/generate-warehouse-destination-key-pair | Generate Snowflake destination key pair
655656
*LaunchDarklyApi::EnvironmentsApi* | [**delete_environment**](docs/EnvironmentsApi.md#delete_environment) | **DELETE** /api/v2/projects/{projectKey}/environments/{environmentKey} | Delete environment
656657
*LaunchDarklyApi::EnvironmentsApi* | [**get_environment**](docs/EnvironmentsApi.md#get_environment) | **GET** /api/v2/projects/{projectKey}/environments/{environmentKey} | Get environment
@@ -1143,6 +1144,7 @@ Class | Method | HTTP request | Description
11431144
- [LaunchDarklyApi::FollowersPerFlag](docs/FollowersPerFlag.md)
11441145
- [LaunchDarklyApi::ForbiddenErrorRep](docs/ForbiddenErrorRep.md)
11451146
- [LaunchDarklyApi::FormVariable](docs/FormVariable.md)
1147+
- [LaunchDarklyApi::GenerateTrustPolicyPostRep](docs/GenerateTrustPolicyPostRep.md)
11461148
- [LaunchDarklyApi::GenerateWarehouseDestinationKeyPairPostRep](docs/GenerateWarehouseDestinationKeyPairPostRep.md)
11471149
- [LaunchDarklyApi::GetAnnouncementsPublic200Response](docs/GetAnnouncementsPublic200Response.md)
11481150
- [LaunchDarklyApi::GuardedReleaseConfig](docs/GuardedReleaseConfig.md)
@@ -1392,6 +1394,8 @@ Class | Method | HTTP request | Description
13921394
- [LaunchDarklyApi::TriggerPost](docs/TriggerPost.md)
13931395
- [LaunchDarklyApi::TriggerWorkflowCollectionRep](docs/TriggerWorkflowCollectionRep.md)
13941396
- [LaunchDarklyApi::TriggerWorkflowRep](docs/TriggerWorkflowRep.md)
1397+
- [LaunchDarklyApi::TrustPolicyDetails](docs/TrustPolicyDetails.md)
1398+
- [LaunchDarklyApi::TrustPolicyStatement](docs/TrustPolicyStatement.md)
13951399
- [LaunchDarklyApi::UnauthorizedErrorRep](docs/UnauthorizedErrorRep.md)
13961400
- [LaunchDarklyApi::UnlinkResourceSuccessResponse](docs/UnlinkResourceSuccessResponse.md)
13971401
- [LaunchDarklyApi::UpdatePhaseStatusInput](docs/UpdatePhaseStatusInput.md)

docs/AIConfig.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
| **variations** | [**Array<AIConfigVariation>**](AIConfigVariation.md) | | |
1717
| **created_at** | **Integer** | | |
1818
| **updated_at** | **Integer** | | |
19+
| **evaluation_metric_keys** | **Array<String>** | List of evaluation metric keys for this AI config | [optional] |
1920

2021
## Example
2122

@@ -34,7 +35,8 @@ instance = LaunchDarklyApi::AIConfig.new(
3435
version: null,
3536
variations: null,
3637
created_at: null,
37-
updated_at: null
38+
updated_at: null,
39+
evaluation_metric_keys: null
3840
)
3941
```
4042

docs/AiConfigsMetricDataSourceRefRep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **key** | **String** | | [optional] |
7+
| **key** | **String** | | |
88
| **environment_key** | **String** | | [optional] |
99
| **_name** | **String** | | [optional] |
1010
| **_integration_key** | **String** | | [optional] |

docs/AiConfigsMetricListingRep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
| **analysis_type** | **String** | The method for analyzing metric events | [optional] |
3737
| **percentile_value** | **Integer** | The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when <code>analysisType</code> is <code>percentile</code>. | [optional] |
3838
| **event_default** | [**AiConfigsMetricEventDefaultRep**](AiConfigsMetricEventDefaultRep.md) | | [optional] |
39-
| **data_source** | [**AiConfigsMetricDataSourceRefRep**](AiConfigsMetricDataSourceRefRep.md) | | [optional] |
39+
| **data_source** | [**AiConfigsMetricDataSourceRefRep**](AiConfigsMetricDataSourceRefRep.md) | | |
4040
| **archived** | **Boolean** | Whether the metric version is archived | [optional] |
4141
| **archived_at** | **Integer** | | [optional] |
4242
| **selector** | **String** | For click metrics, the CSS selectors | [optional] |

docs/DataExportDestinationsApi.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All URIs are relative to *https://app.launchdarkly.com*
99
| [**get_destinations**](DataExportDestinationsApi.md#get_destinations) | **GET** /api/v2/destinations | List destinations |
1010
| [**patch_destination**](DataExportDestinationsApi.md#patch_destination) | **PATCH** /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Update Data Export destination |
1111
| [**post_destination**](DataExportDestinationsApi.md#post_destination) | **POST** /api/v2/destinations/{projectKey}/{environmentKey} | Create Data Export destination |
12+
| [**post_generate_trust_policy**](DataExportDestinationsApi.md#post_generate_trust_policy) | **POST** /api/v2/destinations/projects/{projKey}/environments/{envKey}/generate-trust-policy | Generate trust policy |
1213
| [**post_generate_warehouse_destination_key_pair**](DataExportDestinationsApi.md#post_generate_warehouse_destination_key_pair) | **POST** /api/v2/destinations/generate-warehouse-destination-key-pair | Generate Snowflake destination key pair |
1314

1415

@@ -381,6 +382,79 @@ end
381382
- **Accept**: application/json
382383

383384

385+
## post_generate_trust_policy
386+
387+
> <GenerateTrustPolicyPostRep> post_generate_trust_policy(proj_key, env_key)
388+
389+
Generate trust policy
390+
391+
Trust policy to allow Data Export to assume the role and perform operations on AWS resources
392+
393+
### Examples
394+
395+
```ruby
396+
require 'time'
397+
require 'launchdarkly_api'
398+
# setup authorization
399+
LaunchDarklyApi.configure do |config|
400+
# Configure API key authorization: ApiKey
401+
config.api_key['Authorization'] = 'YOUR API KEY'
402+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
403+
# config.api_key_prefix['Authorization'] = 'Bearer'
404+
end
405+
406+
api_instance = LaunchDarklyApi::DataExportDestinationsApi.new
407+
proj_key = 'proj_key_example' # String | The project key
408+
env_key = 'env_key_example' # String | The environment key
409+
410+
begin
411+
# Generate trust policy
412+
result = api_instance.post_generate_trust_policy(proj_key, env_key)
413+
p result
414+
rescue LaunchDarklyApi::ApiError => e
415+
puts "Error when calling DataExportDestinationsApi->post_generate_trust_policy: #{e}"
416+
end
417+
```
418+
419+
#### Using the post_generate_trust_policy_with_http_info variant
420+
421+
This returns an Array which contains the response data, status code and headers.
422+
423+
> <Array(<GenerateTrustPolicyPostRep>, Integer, Hash)> post_generate_trust_policy_with_http_info(proj_key, env_key)
424+
425+
```ruby
426+
begin
427+
# Generate trust policy
428+
data, status_code, headers = api_instance.post_generate_trust_policy_with_http_info(proj_key, env_key)
429+
p status_code # => 2xx
430+
p headers # => { ... }
431+
p data # => <GenerateTrustPolicyPostRep>
432+
rescue LaunchDarklyApi::ApiError => e
433+
puts "Error when calling DataExportDestinationsApi->post_generate_trust_policy_with_http_info: #{e}"
434+
end
435+
```
436+
437+
### Parameters
438+
439+
| Name | Type | Description | Notes |
440+
| ---- | ---- | ----------- | ----- |
441+
| **proj_key** | **String** | The project key | |
442+
| **env_key** | **String** | The environment key | |
443+
444+
### Return type
445+
446+
[**GenerateTrustPolicyPostRep**](GenerateTrustPolicyPostRep.md)
447+
448+
### Authorization
449+
450+
[ApiKey](../README.md#ApiKey)
451+
452+
### HTTP request headers
453+
454+
- **Content-Type**: Not defined
455+
- **Accept**: application/json
456+
457+
384458
## post_generate_warehouse_destination_key_pair
385459

386460
> <GenerateWarehouseDestinationKeyPairPostRep> post_generate_warehouse_destination_key_pair

docs/FeatureFlagsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ opts = {
650650
limit: 789, # Integer | The number of feature flags to return. Defaults to 20.
651651
offset: 789, # Integer | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`.
652652
archived: true, # Boolean | Deprecated, use `filter=archived:true` instead. A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned
653-
summary: true, # Boolean | By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` to include these fields for each flag returned.
653+
summary: true, # Boolean | By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set `summary=0` and include the `env` query parameter to include these fields for each flag returned.
654654
filter: 'filter_example', # String | A comma-separated list of filters. Each filter is of the form field:value. Read the endpoint description for a full list of available filter fields.
655655
sort: 'sort_example', # String | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order. Read the endpoint description for a full list of available sort fields.
656656
compare: true, # Boolean | Deprecated, unavailable in API version `20240415`. A boolean to filter results by only flags that have differences between environments.
@@ -694,7 +694,7 @@ end
694694
| **limit** | **Integer** | The number of feature flags to return. Defaults to 20. | [optional] |
695695
| **offset** | **Integer** | Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query &#x60;limit&#x60;. | [optional] |
696696
| **archived** | **Boolean** | Deprecated, use &#x60;filter&#x3D;archived:true&#x60; instead. A boolean to filter the list to archived flags. When this is absent, only unarchived flags will be returned | [optional] |
697-
| **summary** | **Boolean** | By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set &#x60;summary&#x3D;0&#x60; to include these fields for each flag returned. | [optional] |
697+
| **summary** | **Boolean** | By default, flags do _not_ include their lists of prerequisites, targets, or rules for each environment. Set &#x60;summary&#x3D;0&#x60; and include the &#x60;env&#x60; query parameter to include these fields for each flag returned. | [optional] |
698698
| **filter** | **String** | A comma-separated list of filters. Each filter is of the form field:value. Read the endpoint description for a full list of available filter fields. | [optional] |
699699
| **sort** | **String** | A comma-separated list of fields to sort by. Fields prefixed by a dash ( - ) sort in descending order. Read the endpoint description for a full list of available sort fields. | [optional] |
700700
| **compare** | **Boolean** | Deprecated, unavailable in API version &#x60;20240415&#x60;. A boolean to filter results by only flags that have differences between environments. | [optional] |

docs/GenerateTrustPolicyPostRep.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# LaunchDarklyApi::GenerateTrustPolicyPostRep
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **aws_trust_policy** | [**TrustPolicyDetails**](TrustPolicyDetails.md) | | [optional] |
8+
9+
## Example
10+
11+
```ruby
12+
require 'launchdarkly_api'
13+
14+
instance = LaunchDarklyApi::GenerateTrustPolicyPostRep.new(
15+
aws_trust_policy: null
16+
)
17+
```
18+

docs/MetricDataSourceRefRep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **key** | **String** | | [optional] |
7+
| **key** | **String** | | |
88
| **environment_key** | **String** | | [optional] |
99
| **_name** | **String** | | [optional] |
1010
| **_integration_key** | **String** | | [optional] |

0 commit comments

Comments
 (0)