Skip to content

Commit cfd6691

Browse files
author
LaunchDarklyReleaseBot
committed
Version 7.1.1 automatically generated from ld-openapi.
1 parent 6ccf7f3 commit cfd6691

22 files changed

+318
-60
lines changed

.openapi-generator/FILES

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ docs/MemberImportItemRep.md
126126
docs/MemberPermissionGrantSummaryRep.md
127127
docs/MemberSummaryRep.md
128128
docs/MemberTeamSummaryRep.md
129-
docs/MemberTeamsFormPost.md
129+
docs/MemberTeamsPostInput.md
130130
docs/Members.md
131131
docs/MethodNotAllowedErrorRep.md
132132
docs/MetricCollectionRep.md
@@ -380,7 +380,7 @@ lib/launchdarkly_api/models/member_import_item_rep.rb
380380
lib/launchdarkly_api/models/member_permission_grant_summary_rep.rb
381381
lib/launchdarkly_api/models/member_summary_rep.rb
382382
lib/launchdarkly_api/models/member_team_summary_rep.rb
383-
lib/launchdarkly_api/models/member_teams_form_post.rb
383+
lib/launchdarkly_api/models/member_teams_post_input.rb
384384
lib/launchdarkly_api/models/members.rb
385385
lib/launchdarkly_api/models/method_not_allowed_error_rep.rb
386386
lib/launchdarkly_api/models/metric_collection_rep.rb
@@ -619,7 +619,7 @@ spec/models/member_permission_grant_summary_rep_spec.rb
619619
spec/models/member_spec.rb
620620
spec/models/member_summary_rep_spec.rb
621621
spec/models/member_team_summary_rep_spec.rb
622-
spec/models/member_teams_form_post_spec.rb
622+
spec/models/member_teams_post_input_spec.rb
623623
spec/models/members_spec.rb
624624
spec/models/method_not_allowed_error_rep_spec.rb
625625
spec/models/metric_collection_rep_spec.rb

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ script:
1111
- bundle install --path vendor/bundle
1212
- bundle exec rspec
1313
- gem build launchdarkly_api.gemspec
14-
- gem install ./launchdarkly_api-7.1.0.gem
14+
- gem install ./launchdarkly_api-7.1.1.gem

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ If you would like to upgrade your integration to use a new API version, you can
442442
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
443443

444444
- API version: 2.0
445-
- Package version: 7.1.0
445+
- Package version: 7.1.1
446446
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
447447
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
448448

@@ -459,16 +459,16 @@ gem build launchdarkly_api.gemspec
459459
Then either install the gem locally:
460460

461461
```shell
462-
gem install ./launchdarkly_api-7.1.0.gem
462+
gem install ./launchdarkly_api-7.1.1.gem
463463
```
464464

465-
(for development, run `gem install --dev ./launchdarkly_api-7.1.0.gem` to install the development dependencies)
465+
(for development, run `gem install --dev ./launchdarkly_api-7.1.1.gem` to install the development dependencies)
466466

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

469469
Finally add this to the Gemfile:
470470

471-
gem 'launchdarkly_api', '~> 7.1.0'
471+
gem 'launchdarkly_api', '~> 7.1.1'
472472

473473
### Install from Git
474474

@@ -770,7 +770,7 @@ Class | Method | HTTP request | Description
770770
- [LaunchDarklyApi::MemberPermissionGrantSummaryRep](docs/MemberPermissionGrantSummaryRep.md)
771771
- [LaunchDarklyApi::MemberSummaryRep](docs/MemberSummaryRep.md)
772772
- [LaunchDarklyApi::MemberTeamSummaryRep](docs/MemberTeamSummaryRep.md)
773-
- [LaunchDarklyApi::MemberTeamsFormPost](docs/MemberTeamsFormPost.md)
773+
- [LaunchDarklyApi::MemberTeamsPostInput](docs/MemberTeamsPostInput.md)
774774
- [LaunchDarklyApi::Members](docs/Members.md)
775775
- [LaunchDarklyApi::MethodNotAllowedErrorRep](docs/MethodNotAllowedErrorRep.md)
776776
- [LaunchDarklyApi::MetricCollectionRep](docs/MetricCollectionRep.md)

docs/AccountMembersApi.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ end
307307

308308
## post_member_teams
309309

310-
> <Member> post_member_teams(id, member_teams_form_post)
310+
> <Member> post_member_teams(id, member_teams_post_input)
311311
312312
Add member to teams
313313

@@ -328,11 +328,11 @@ end
328328

329329
api_instance = LaunchDarklyApi::AccountMembersApi.new
330330
id = 'id_example' # String | The member ID
331-
member_teams_form_post = LaunchDarklyApi::MemberTeamsFormPost.new({team_keys: ['team_keys_example']}) # MemberTeamsFormPost |
331+
member_teams_post_input = LaunchDarklyApi::MemberTeamsPostInput.new({team_keys: ['team_keys_example']}) # MemberTeamsPostInput |
332332

333333
begin
334334
# Add member to teams
335-
result = api_instance.post_member_teams(id, member_teams_form_post)
335+
result = api_instance.post_member_teams(id, member_teams_post_input)
336336
p result
337337
rescue LaunchDarklyApi::ApiError => e
338338
puts "Error when calling AccountMembersApi->post_member_teams: #{e}"
@@ -343,12 +343,12 @@ end
343343

344344
This returns an Array which contains the response data, status code and headers.
345345

346-
> <Array(<Member>, Integer, Hash)> post_member_teams_with_http_info(id, member_teams_form_post)
346+
> <Array(<Member>, Integer, Hash)> post_member_teams_with_http_info(id, member_teams_post_input)
347347
348348
```ruby
349349
begin
350350
# Add member to teams
351-
data, status_code, headers = api_instance.post_member_teams_with_http_info(id, member_teams_form_post)
351+
data, status_code, headers = api_instance.post_member_teams_with_http_info(id, member_teams_post_input)
352352
p status_code # => 2xx
353353
p headers # => { ... }
354354
p data # => <Member>
@@ -362,7 +362,7 @@ end
362362
| Name | Type | Description | Notes |
363363
| ---- | ---- | ----------- | ----- |
364364
| **id** | **String** | The member ID | |
365-
| **member_teams_form_post** | [**MemberTeamsFormPost**](MemberTeamsFormPost.md) | | |
365+
| **member_teams_post_input** | [**MemberTeamsPostInput**](MemberTeamsPostInput.md) | | |
366366

367367
### Return type
368368

docs/CustomRolesApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ LaunchDarklyApi.configure do |config|
315315
end
316316

317317
api_instance = LaunchDarklyApi::CustomRolesApi.new
318-
custom_role_post = LaunchDarklyApi::CustomRolePost.new({name: 'name_example', key: 'key_example', policy: [LaunchDarklyApi::StatementPost.new({resources: ['resources_example'], actions: ['actions_example'], effect: 'effect_example'})]}) # CustomRolePost |
318+
custom_role_post = LaunchDarklyApi::CustomRolePost.new({name: 'name_example', key: 'key_example', policy: [LaunchDarklyApi::StatementPost.new({effect: 'effect_example'})]}) # CustomRolePost |
319319

320320
begin
321321
# Create custom role

docs/EnvironmentsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ end
163163
164164
Update environment
165165

166-
> ### Approval settings > > The `approvalSettings` key is only returned when the Flag Approvals feature is enabled. > > Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. > > If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates by either mechanism.
166+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment 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. ### Approval settings This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
167167

168168
### Examples
169169

docs/MemberTeamsPostInput.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# LaunchDarklyApi::MemberTeamsPostInput
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **team_keys** | **Array&lt;String&gt;** | List of team keys | |
8+
9+
## Example
10+
11+
```ruby
12+
require 'launchdarkly_api'
13+
14+
instance = LaunchDarklyApi::MemberTeamsPostInput.new(
15+
team_keys: null
16+
)
17+
```
18+

docs/MetricsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ end
233233
234234
Update metric
235235

236-
Patch a environment by key.
236+
Patch a metric by key.
237237

238238
### Examples
239239

docs/StatementPost.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **resources** | **Array&lt;String&gt;** | Resource specifier strings | |
7+
| **resources** | **Array&lt;String&gt;** | Resource specifier strings | [optional] |
88
| **not_resources** | **Array&lt;String&gt;** | Targeted resources are the resources NOT in this list. The \&quot;resources\&quot; field must be empty to use this field. | [optional] |
9-
| **actions** | **Array&lt;String&gt;** | Actions to perform on a resource | |
9+
| **actions** | **Array&lt;String&gt;** | Actions to perform on a resource | [optional] |
1010
| **not_actions** | **Array&lt;String&gt;** | Targeted actions are the actions NOT in this list. The \&quot;actions\&quot; field must be empty to use this field. | [optional] |
1111
| **effect** | **String** | | |
1212

docs/StatementPostData.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **resources** | **Array&lt;String&gt;** | Resource specifier strings | |
7+
| **resources** | **Array&lt;String&gt;** | Resource specifier strings | [optional] |
88
| **not_resources** | **Array&lt;String&gt;** | Targeted resources are the resources NOT in this list. The \&quot;resources\&quot; field must be empty to use this field. | [optional] |
9-
| **actions** | **Array&lt;String&gt;** | Actions to perform on a resource | |
9+
| **actions** | **Array&lt;String&gt;** | Actions to perform on a resource | [optional] |
1010
| **not_actions** | **Array&lt;String&gt;** | Targeted actions are the actions NOT in this list. The \&quot;actions\&quot; field must be empty to use this field. | [optional] |
1111
| **effect** | **String** | | |
1212

lib/launchdarkly_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
require 'launchdarkly_api/models/member_permission_grant_summary_rep'
124124
require 'launchdarkly_api/models/member_summary_rep'
125125
require 'launchdarkly_api/models/member_team_summary_rep'
126-
require 'launchdarkly_api/models/member_teams_form_post'
126+
require 'launchdarkly_api/models/member_teams_post_input'
127127
require 'launchdarkly_api/models/members'
128128
require 'launchdarkly_api/models/method_not_allowed_error_rep'
129129
require 'launchdarkly_api/models/metric_collection_rep'

lib/launchdarkly_api/api/account_members_api.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -291,31 +291,31 @@ def patch_member_with_http_info(id, patch_operation, opts = {})
291291
# Add member to teams
292292
# Add member to team(s)
293293
# @param id [String] The member ID
294-
# @param member_teams_form_post [MemberTeamsFormPost]
294+
# @param member_teams_post_input [MemberTeamsPostInput]
295295
# @param [Hash] opts the optional parameters
296296
# @return [Member]
297-
def post_member_teams(id, member_teams_form_post, opts = {})
298-
data, _status_code, _headers = post_member_teams_with_http_info(id, member_teams_form_post, opts)
297+
def post_member_teams(id, member_teams_post_input, opts = {})
298+
data, _status_code, _headers = post_member_teams_with_http_info(id, member_teams_post_input, opts)
299299
data
300300
end
301301

302302
# Add member to teams
303303
# Add member to team(s)
304304
# @param id [String] The member ID
305-
# @param member_teams_form_post [MemberTeamsFormPost]
305+
# @param member_teams_post_input [MemberTeamsPostInput]
306306
# @param [Hash] opts the optional parameters
307307
# @return [Array<(Member, Integer, Hash)>] Member data, response status code and response headers
308-
def post_member_teams_with_http_info(id, member_teams_form_post, opts = {})
308+
def post_member_teams_with_http_info(id, member_teams_post_input, opts = {})
309309
if @api_client.config.debugging
310310
@api_client.config.logger.debug 'Calling API: AccountMembersApi.post_member_teams ...'
311311
end
312312
# verify the required parameter 'id' is set
313313
if @api_client.config.client_side_validation && id.nil?
314314
fail ArgumentError, "Missing the required parameter 'id' when calling AccountMembersApi.post_member_teams"
315315
end
316-
# verify the required parameter 'member_teams_form_post' is set
317-
if @api_client.config.client_side_validation && member_teams_form_post.nil?
318-
fail ArgumentError, "Missing the required parameter 'member_teams_form_post' when calling AccountMembersApi.post_member_teams"
316+
# verify the required parameter 'member_teams_post_input' is set
317+
if @api_client.config.client_side_validation && member_teams_post_input.nil?
318+
fail ArgumentError, "Missing the required parameter 'member_teams_post_input' when calling AccountMembersApi.post_member_teams"
319319
end
320320
# resource path
321321
local_var_path = '/api/v2/members/{id}/teams'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -337,7 +337,7 @@ def post_member_teams_with_http_info(id, member_teams_form_post, opts = {})
337337
form_params = opts[:form_params] || {}
338338

339339
# http body (model)
340-
post_body = opts[:debug_body] || @api_client.object_to_http_body(member_teams_form_post)
340+
post_body = opts[:debug_body] || @api_client.object_to_http_body(member_teams_post_input)
341341

342342
# return_type
343343
return_type = opts[:debug_return_type] || 'Member'

lib/launchdarkly_api/api/environments_api.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def get_environment_with_http_info(project_key, environment_key, opts = {})
158158
end
159159

160160
# Update environment
161-
# > ### Approval settings > > The `approvalSettings` key is only returned when the Flag Approvals feature is enabled. > > Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. > > If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates by either mechanism.
161+
# Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment 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. ### Approval settings This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
162162
# @param project_key [String] The project key
163163
# @param environment_key [String] The environment key
164164
# @param patch_operation [Array<PatchOperation>]
@@ -170,7 +170,7 @@ def patch_environment(project_key, environment_key, patch_operation, opts = {})
170170
end
171171

172172
# Update environment
173-
# &gt; ### Approval settings &gt; &gt; The &#x60;approvalSettings&#x60; key is only returned when the Flag Approvals feature is enabled. &gt; &gt; Only the &#x60;canReviewOwnRequest&#x60;, &#x60;canApplyDeclinedChanges&#x60;, &#x60;minNumApprovals&#x60;, &#x60;required&#x60; and &#x60;requiredApprovalTagsfields&#x60; are editable. &gt; &gt; If you try to patch the environment by setting both &#x60;required&#x60; and &#x60;requiredApprovalTags&#x60;, it fails and an error appears. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates by either mechanism.
173+
# Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment object that are arrays, set the &#x60;path&#x60; to the name of the field and then append &#x60;/&lt;array index&gt;&#x60;. Using &#x60;/0&#x60; appends to the beginning of the array. ### Approval settings This request only returns the &#x60;approvalSettings&#x60; key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the &#x60;canReviewOwnRequest&#x60;, &#x60;canApplyDeclinedChanges&#x60;, &#x60;minNumApprovals&#x60;, &#x60;required&#x60; and &#x60;requiredApprovalTagsfields&#x60; are editable. If you try to patch the environment by setting both &#x60;required&#x60; and &#x60;requiredApprovalTags&#x60;, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
174174
# @param project_key [String] The project key
175175
# @param environment_key [String] The environment key
176176
# @param patch_operation [Array<PatchOperation>]

lib/launchdarkly_api/api/metrics_api.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def get_metrics_with_http_info(project_key, opts = {})
221221
end
222222

223223
# Update metric
224-
# Patch a environment by key.
224+
# Patch a metric by key.
225225
# @param project_key [String] The project key
226226
# @param key [String] The metric key
227227
# @param patch_operation [Array<PatchOperation>]
@@ -233,7 +233,7 @@ def patch_metric(project_key, key, patch_operation, opts = {})
233233
end
234234

235235
# Update metric
236-
# Patch a environment by key.
236+
# Patch a metric by key.
237237
# @param project_key [String] The project key
238238
# @param key [String] The metric key
239239
# @param patch_operation [Array<PatchOperation>]

lib/launchdarkly_api/models/member_teams_post_input.rb

+226
Large diffs are not rendered by default.

lib/launchdarkly_api/models/statement_post.rb

-10
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,6 @@ def initialize(attributes = {})
110110
# @return Array for valid properties with the reasons
111111
def list_invalid_properties
112112
invalid_properties = Array.new
113-
if @resources.nil?
114-
invalid_properties.push('invalid value for "resources", resources cannot be nil.')
115-
end
116-
117-
if @actions.nil?
118-
invalid_properties.push('invalid value for "actions", actions cannot be nil.')
119-
end
120-
121113
if @effect.nil?
122114
invalid_properties.push('invalid value for "effect", effect cannot be nil.')
123115
end
@@ -128,8 +120,6 @@ def list_invalid_properties
128120
# Check to see if the all the properties in the model are valid
129121
# @return true if the model is valid
130122
def valid?
131-
return false if @resources.nil?
132-
return false if @actions.nil?
133123
return false if @effect.nil?
134124
true
135125
end

lib/launchdarkly_api/models/statement_post_data.rb

-10
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,6 @@ def initialize(attributes = {})
110110
# @return Array for valid properties with the reasons
111111
def list_invalid_properties
112112
invalid_properties = Array.new
113-
if @resources.nil?
114-
invalid_properties.push('invalid value for "resources", resources cannot be nil.')
115-
end
116-
117-
if @actions.nil?
118-
invalid_properties.push('invalid value for "actions", actions cannot be nil.')
119-
end
120-
121113
if @effect.nil?
122114
invalid_properties.push('invalid value for "effect", effect cannot be nil.')
123115
end
@@ -128,8 +120,6 @@ def list_invalid_properties
128120
# Check to see if the all the properties in the model are valid
129121
# @return true if the model is valid
130122
def valid?
131-
return false if @resources.nil?
132-
return false if @actions.nil?
133123
return false if @effect.nil?
134124
true
135125
end

lib/launchdarkly_api/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module LaunchDarklyApi
14-
VERSION = '7.1.0'
14+
VERSION = '7.1.1'
1515
end

spec/api/account_members_api_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
# Add member to teams
8989
# Add member to team(s)
9090
# @param id The member ID
91-
# @param member_teams_form_post
91+
# @param member_teams_post_input
9292
# @param [Hash] opts the optional parameters
9393
# @return [Member]
9494
describe 'post_member_teams test' do

0 commit comments

Comments
 (0)