launchdarkly_api 7.1.0 → 7.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20e053ea43acedddc221ffeb6a9548db7b3a86b2d68539a4ce275f045e7110a5
4
- data.tar.gz: 46e5ae30e0914e49807f4c9c57610bbb617b43aba36cdcbbf80e0632fe35f334
3
+ metadata.gz: d463b3645988a8d7c35c6bfbc1b810ea6d599851872d0476df56fe3ce384352e
4
+ data.tar.gz: f9aa9c1280b02627dd275e081e87a89daf3fefca3f7adb437efc01bbdd843c64
5
5
  SHA512:
6
- metadata.gz: cb3fca84a41808bcb33c2d114ed7639cbf69922723334437eeaa5d8583e6f8e8e646de337a22c52765bb57307f55ec9c38dd91f3ced336efa892f6bffdb9b01c
7
- data.tar.gz: 224c81d09610ce01a53327409e227f4575f9a19df353e47d8196447a9608d39c3ecae5da034d342f382bc55f4aeb2536cbb23bef2773e7a6c4373788f9c6aee2
6
+ metadata.gz: acdc214aefd7e62c22f00ff8f107b69ca8540f326059af7786944d3d04eef6ef97e4cbb7c14c1f89ed6c606a5b947d9ce17271e47ad0103f328e3a051f7605df
7
+ data.tar.gz: 6b5317f85d55c5177221dc5c64d7a6004481d104763887a104986eb1770e56300959eba7adf536c5ed0e9a141444b3b083aeac32a754e5db86c0477ca3e79db6
data/README.md CHANGED
@@ -442,7 +442,7 @@ If you would like to upgrade your integration to use a new API version, you can
442
442
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
443
443
 
444
444
  - API version: 2.0
445
- - Package version: 7.1.0
445
+ - Package version: 7.1.1
446
446
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
447
447
  For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
448
448
 
@@ -459,16 +459,16 @@ gem build launchdarkly_api.gemspec
459
459
  Then either install the gem locally:
460
460
 
461
461
  ```shell
462
- gem install ./launchdarkly_api-7.1.0.gem
462
+ gem install ./launchdarkly_api-7.1.1.gem
463
463
  ```
464
464
 
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)
466
466
 
467
467
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
468
468
 
469
469
  Finally add this to the Gemfile:
470
470
 
471
- gem 'launchdarkly_api', '~> 7.1.0'
471
+ gem 'launchdarkly_api', '~> 7.1.1'
472
472
 
473
473
  ### Install from Git
474
474
 
@@ -770,7 +770,7 @@ Class | Method | HTTP request | Description
770
770
  - [LaunchDarklyApi::MemberPermissionGrantSummaryRep](docs/MemberPermissionGrantSummaryRep.md)
771
771
  - [LaunchDarklyApi::MemberSummaryRep](docs/MemberSummaryRep.md)
772
772
  - [LaunchDarklyApi::MemberTeamSummaryRep](docs/MemberTeamSummaryRep.md)
773
- - [LaunchDarklyApi::MemberTeamsFormPost](docs/MemberTeamsFormPost.md)
773
+ - [LaunchDarklyApi::MemberTeamsPostInput](docs/MemberTeamsPostInput.md)
774
774
  - [LaunchDarklyApi::Members](docs/Members.md)
775
775
  - [LaunchDarklyApi::MethodNotAllowedErrorRep](docs/MethodNotAllowedErrorRep.md)
776
776
  - [LaunchDarklyApi::MetricCollectionRep](docs/MetricCollectionRep.md)
@@ -307,7 +307,7 @@ end
307
307
 
308
308
  ## post_member_teams
309
309
 
310
- > <Member> post_member_teams(id, member_teams_form_post)
310
+ > <Member> post_member_teams(id, member_teams_post_input)
311
311
 
312
312
  Add member to teams
313
313
 
@@ -328,11 +328,11 @@ end
328
328
 
329
329
  api_instance = LaunchDarklyApi::AccountMembersApi.new
330
330
  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 |
332
332
 
333
333
  begin
334
334
  # 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)
336
336
  p result
337
337
  rescue LaunchDarklyApi::ApiError => e
338
338
  puts "Error when calling AccountMembersApi->post_member_teams: #{e}"
@@ -343,12 +343,12 @@ end
343
343
 
344
344
  This returns an Array which contains the response data, status code and headers.
345
345
 
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)
347
347
 
348
348
  ```ruby
349
349
  begin
350
350
  # 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)
352
352
  p status_code # => 2xx
353
353
  p headers # => { ... }
354
354
  p data # => <Member>
@@ -362,7 +362,7 @@ end
362
362
  | Name | Type | Description | Notes |
363
363
  | ---- | ---- | ----------- | ----- |
364
364
  | **id** | **String** | The member ID | |
365
- | **member_teams_form_post** | [**MemberTeamsFormPost**](MemberTeamsFormPost.md) | | |
365
+ | **member_teams_post_input** | [**MemberTeamsPostInput**](MemberTeamsPostInput.md) | | |
366
366
 
367
367
  ### Return type
368
368
 
@@ -315,7 +315,7 @@ LaunchDarklyApi.configure do |config|
315
315
  end
316
316
 
317
317
  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 |
319
319
 
320
320
  begin
321
321
  # Create custom role
@@ -163,7 +163,7 @@ end
163
163
 
164
164
  Update environment
165
165
 
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.
167
167
 
168
168
  ### Examples
169
169
 
@@ -1,4 +1,4 @@
1
- # LaunchDarklyApi::MemberTeamsFormPost
1
+ # LaunchDarklyApi::MemberTeamsPostInput
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'launchdarkly_api'
13
13
 
14
- instance = LaunchDarklyApi::MemberTeamsFormPost.new(
14
+ instance = LaunchDarklyApi::MemberTeamsPostInput.new(
15
15
  team_keys: null
16
16
  )
17
17
  ```
data/docs/MetricsApi.md CHANGED
@@ -233,7 +233,7 @@ end
233
233
 
234
234
  Update metric
235
235
 
236
- Patch a environment by key.
236
+ Patch a metric by key.
237
237
 
238
238
  ### Examples
239
239
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **resources** | **Array&lt;String&gt;** | Resource specifier strings | |
7
+ | **resources** | **Array&lt;String&gt;** | Resource specifier strings | [optional] |
8
8
  | **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] |
10
10
  | **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] |
11
11
  | **effect** | **String** | | |
12
12
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **resources** | **Array&lt;String&gt;** | Resource specifier strings | |
7
+ | **resources** | **Array&lt;String&gt;** | Resource specifier strings | [optional] |
8
8
  | **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] |
10
10
  | **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] |
11
11
  | **effect** | **String** | | |
12
12
 
@@ -291,21 +291,21 @@ module LaunchDarklyApi
291
291
  # Add member to teams
292
292
  # Add member to team(s)
293
293
  # @param id [String] The member ID
294
- # @param member_teams_form_post [MemberTeamsFormPost]
294
+ # @param member_teams_post_input [MemberTeamsPostInput]
295
295
  # @param [Hash] opts the optional parameters
296
296
  # @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)
299
299
  data
300
300
  end
301
301
 
302
302
  # Add member to teams
303
303
  # Add member to team(s)
304
304
  # @param id [String] The member ID
305
- # @param member_teams_form_post [MemberTeamsFormPost]
305
+ # @param member_teams_post_input [MemberTeamsPostInput]
306
306
  # @param [Hash] opts the optional parameters
307
307
  # @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 = {})
309
309
  if @api_client.config.debugging
310
310
  @api_client.config.logger.debug 'Calling API: AccountMembersApi.post_member_teams ...'
311
311
  end
@@ -313,9 +313,9 @@ module LaunchDarklyApi
313
313
  if @api_client.config.client_side_validation && id.nil?
314
314
  fail ArgumentError, "Missing the required parameter 'id' when calling AccountMembersApi.post_member_teams"
315
315
  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"
319
319
  end
320
320
  # resource path
321
321
  local_var_path = '/api/v2/members/{id}/teams'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -337,7 +337,7 @@ module LaunchDarklyApi
337
337
  form_params = opts[:form_params] || {}
338
338
 
339
339
  # 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)
341
341
 
342
342
  # return_type
343
343
  return_type = opts[:debug_return_type] || 'Member'
@@ -158,7 +158,7 @@ module LaunchDarklyApi
158
158
  end
159
159
 
160
160
  # 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.
162
162
  # @param project_key [String] The project key
163
163
  # @param environment_key [String] The environment key
164
164
  # @param patch_operation [Array<PatchOperation>]
@@ -170,7 +170,7 @@ module LaunchDarklyApi
170
170
  end
171
171
 
172
172
  # 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.
174
174
  # @param project_key [String] The project key
175
175
  # @param environment_key [String] The environment key
176
176
  # @param patch_operation [Array<PatchOperation>]
@@ -221,7 +221,7 @@ module LaunchDarklyApi
221
221
  end
222
222
 
223
223
  # Update metric
224
- # Patch a environment by key.
224
+ # Patch a metric by key.
225
225
  # @param project_key [String] The project key
226
226
  # @param key [String] The metric key
227
227
  # @param patch_operation [Array<PatchOperation>]
@@ -233,7 +233,7 @@ module LaunchDarklyApi
233
233
  end
234
234
 
235
235
  # Update metric
236
- # Patch a environment by key.
236
+ # Patch a metric by key.
237
237
  # @param project_key [String] The project key
238
238
  # @param key [String] The metric key
239
239
  # @param patch_operation [Array<PatchOperation>]
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module LaunchDarklyApi
17
- class MemberTeamsFormPost
17
+ class MemberTeamsPostInput
18
18
  # List of team keys
19
19
  attr_accessor :team_keys
20
20
 
@@ -47,13 +47,13 @@ module LaunchDarklyApi
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `LaunchDarklyApi::MemberTeamsFormPost` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `LaunchDarklyApi::MemberTeamsPostInput` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `LaunchDarklyApi::MemberTeamsFormPost`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `LaunchDarklyApi::MemberTeamsPostInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -110,14 +110,6 @@ module LaunchDarklyApi
110
110
  # @return Array for valid properties with the reasons
111
111
  def list_invalid_properties
112
112
  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
-
121
113
  if @effect.nil?
122
114
  invalid_properties.push('invalid value for "effect", effect cannot be nil.')
123
115
  end
@@ -128,8 +120,6 @@ module LaunchDarklyApi
128
120
  # Check to see if the all the properties in the model are valid
129
121
  # @return true if the model is valid
130
122
  def valid?
131
- return false if @resources.nil?
132
- return false if @actions.nil?
133
123
  return false if @effect.nil?
134
124
  true
135
125
  end
@@ -110,14 +110,6 @@ module LaunchDarklyApi
110
110
  # @return Array for valid properties with the reasons
111
111
  def list_invalid_properties
112
112
  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
-
121
113
  if @effect.nil?
122
114
  invalid_properties.push('invalid value for "effect", effect cannot be nil.')
123
115
  end
@@ -128,8 +120,6 @@ module LaunchDarklyApi
128
120
  # Check to see if the all the properties in the model are valid
129
121
  # @return true if the model is valid
130
122
  def valid?
131
- return false if @resources.nil?
132
- return false if @actions.nil?
133
123
  return false if @effect.nil?
134
124
  true
135
125
  end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module LaunchDarklyApi
14
- VERSION = '7.1.0'
14
+ VERSION = '7.1.1'
15
15
  end
@@ -123,7 +123,7 @@ require 'launchdarkly_api/models/member_import_item_rep'
123
123
  require 'launchdarkly_api/models/member_permission_grant_summary_rep'
124
124
  require 'launchdarkly_api/models/member_summary_rep'
125
125
  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'
127
127
  require 'launchdarkly_api/models/members'
128
128
  require 'launchdarkly_api/models/method_not_allowed_error_rep'
129
129
  require 'launchdarkly_api/models/metric_collection_rep'
@@ -88,7 +88,7 @@ describe 'AccountMembersApi' do
88
88
  # Add member to teams
89
89
  # Add member to team(s)
90
90
  # @param id The member ID
91
- # @param member_teams_form_post
91
+ # @param member_teams_post_input
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @return [Member]
94
94
  describe 'post_member_teams test' do
@@ -60,7 +60,7 @@ describe 'EnvironmentsApi' do
60
60
 
61
61
  # unit tests for patch_environment
62
62
  # Update environment
63
- # &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.
63
+ # 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.
64
64
  # @param project_key The project key
65
65
  # @param environment_key The environment key
66
66
  # @param patch_operation
@@ -72,7 +72,7 @@ describe 'MetricsApi' do
72
72
 
73
73
  # unit tests for patch_metric
74
74
  # Update metric
75
- # Patch a environment by key.
75
+ # Patch a metric by key.
76
76
  # @param project_key The project key
77
77
  # @param key The metric key
78
78
  # @param patch_operation
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for LaunchDarklyApi::MemberTeamsFormPost
17
+ # Unit tests for LaunchDarklyApi::MemberTeamsPostInput
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe LaunchDarklyApi::MemberTeamsFormPost do
21
- let(:instance) { LaunchDarklyApi::MemberTeamsFormPost.new }
20
+ describe LaunchDarklyApi::MemberTeamsPostInput do
21
+ let(:instance) { LaunchDarklyApi::MemberTeamsPostInput.new }
22
22
 
23
- describe 'test an instance of MemberTeamsFormPost' do
24
- it 'should create an instance of MemberTeamsFormPost' do
25
- expect(instance).to be_instance_of(LaunchDarklyApi::MemberTeamsFormPost)
23
+ describe 'test an instance of MemberTeamsPostInput' do
24
+ it 'should create an instance of MemberTeamsPostInput' do
25
+ expect(instance).to be_instance_of(LaunchDarklyApi::MemberTeamsPostInput)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "team_keys"' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: launchdarkly_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -447,7 +447,7 @@ files:
447
447
  - docs/MemberPermissionGrantSummaryRep.md
448
448
  - docs/MemberSummaryRep.md
449
449
  - docs/MemberTeamSummaryRep.md
450
- - docs/MemberTeamsFormPost.md
450
+ - docs/MemberTeamsPostInput.md
451
451
  - docs/Members.md
452
452
  - docs/MethodNotAllowedErrorRep.md
453
453
  - docs/MetricCollectionRep.md
@@ -701,7 +701,7 @@ files:
701
701
  - lib/launchdarkly_api/models/member_permission_grant_summary_rep.rb
702
702
  - lib/launchdarkly_api/models/member_summary_rep.rb
703
703
  - lib/launchdarkly_api/models/member_team_summary_rep.rb
704
- - lib/launchdarkly_api/models/member_teams_form_post.rb
704
+ - lib/launchdarkly_api/models/member_teams_post_input.rb
705
705
  - lib/launchdarkly_api/models/members.rb
706
706
  - lib/launchdarkly_api/models/method_not_allowed_error_rep.rb
707
707
  - lib/launchdarkly_api/models/metric_collection_rep.rb
@@ -940,7 +940,7 @@ files:
940
940
  - spec/models/member_spec.rb
941
941
  - spec/models/member_summary_rep_spec.rb
942
942
  - spec/models/member_team_summary_rep_spec.rb
943
- - spec/models/member_teams_form_post_spec.rb
943
+ - spec/models/member_teams_post_input_spec.rb
944
944
  - spec/models/members_spec.rb
945
945
  - spec/models/method_not_allowed_error_rep_spec.rb
946
946
  - spec/models/metric_collection_rep_spec.rb
@@ -1125,6 +1125,7 @@ test_files:
1125
1125
  - spec/models/users_spec.rb
1126
1126
  - spec/models/expiring_user_target_error_spec.rb
1127
1127
  - spec/models/ip_list_spec.rb
1128
+ - spec/models/member_teams_post_input_spec.rb
1128
1129
  - spec/models/sdk_version_rep_spec.rb
1129
1130
  - spec/models/create_copy_flag_config_approval_request_request_spec.rb
1130
1131
  - spec/models/access_token_post_spec.rb
@@ -1242,7 +1243,6 @@ test_files:
1242
1243
  - spec/models/not_found_error_rep_spec.rb
1243
1244
  - spec/models/custom_role_post_data_spec.rb
1244
1245
  - spec/models/patch_segment_request_spec.rb
1245
- - spec/models/member_teams_form_post_spec.rb
1246
1246
  - spec/models/relay_auto_config_rep_spec.rb
1247
1247
  - spec/models/schedule_condition_input_rep_spec.rb
1248
1248
  - spec/models/webhook_spec.rb