launchdarkly_api 7.0.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -4
- data/docs/AccountMembersApi.md +75 -1
- data/docs/CodeReferencesApi.md +5 -1
- data/docs/CustomRolesRep.md +24 -0
- data/docs/ExpandedTeamRep.md +44 -0
- data/docs/FeatureFlagsApi.md +1 -3
- data/docs/FlagTriggerInput.md +20 -0
- data/docs/FlagTriggersApi.md +396 -0
- 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/MemberImportItemRep.md +22 -0
- data/docs/MemberTeamsFormPost.md +18 -0
- data/docs/MetricListingRep.md +1 -1
- data/docs/MetricPost.md +1 -1
- data/docs/MetricRep.md +1 -1
- data/docs/MetricSeen.md +2 -2
- data/docs/PutBranch.md +3 -1
- data/docs/RecentTriggerBody.md +20 -0
- data/docs/Rule.md +3 -1
- data/docs/ScheduledChangesApi.md +1 -1
- data/docs/SegmentsApi.md +2 -2
- data/docs/SubscriptionPost.md +30 -0
- data/docs/TeamImportsRep.md +18 -0
- data/docs/TeamsBetaApi.md +84 -8
- data/docs/TriggerPost.md +22 -0
- data/docs/TriggerWorkflowCollectionRep.md +20 -0
- data/docs/TriggerWorkflowRep.md +42 -0
- data/lib/launchdarkly_api/api/account_members_api.rb +76 -2
- data/lib/launchdarkly_api/api/code_references_api.rb +6 -0
- data/lib/launchdarkly_api/api/feature_flags_api.rb +2 -5
- 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/scheduled_changes_api.rb +2 -2
- data/lib/launchdarkly_api/api/segments_api.rb +4 -4
- data/lib/launchdarkly_api/api/teams_beta_api.rb +77 -6
- data/lib/launchdarkly_api/models/custom_roles_rep.rb +247 -0
- data/lib/launchdarkly_api/models/expanded_team_rep.rb +349 -0
- data/lib/launchdarkly_api/models/flag_trigger_input.rb +230 -0
- data/lib/launchdarkly_api/models/integration.rb +325 -0
- 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/member_import_item_rep.rb +246 -0
- data/lib/launchdarkly_api/models/member_teams_form_post.rb +226 -0
- data/lib/launchdarkly_api/models/metric_listing_rep.rb +13 -1
- data/lib/launchdarkly_api/models/metric_post.rb +13 -1
- data/lib/launchdarkly_api/models/metric_rep.rb +13 -1
- data/lib/launchdarkly_api/models/metric_seen.rb +7 -7
- data/lib/launchdarkly_api/models/put_branch.rb +13 -4
- data/lib/launchdarkly_api/models/recent_trigger_body.rb +229 -0
- data/lib/launchdarkly_api/models/rule.rb +13 -4
- data/lib/launchdarkly_api/models/subscription_post.rb +293 -0
- data/lib/launchdarkly_api/models/team_imports_rep.rb +220 -0
- 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/version.rb +1 -1
- data/lib/launchdarkly_api.rb +17 -0
- data/spec/api/account_members_api_spec.rb +14 -1
- data/spec/api/code_references_api_spec.rb +2 -0
- data/spec/api/feature_flags_api_spec.rb +1 -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/scheduled_changes_api_spec.rb +1 -1
- data/spec/api/segments_api_spec.rb +2 -2
- data/spec/api/teams_beta_api_spec.rb +15 -2
- data/spec/models/custom_roles_rep_spec.rb +52 -0
- data/spec/models/expanded_team_rep_spec.rb +112 -0
- data/spec/models/flag_trigger_input_spec.rb +40 -0
- data/spec/models/integration_spec.rb +100 -0
- data/spec/models/integration_status_rep_spec.rb +46 -0
- data/spec/models/integration_subscription_status_rep_spec.rb +58 -0
- data/spec/models/integrations_spec.rb +46 -0
- data/spec/models/member_import_item_rep_spec.rb +46 -0
- data/spec/models/member_teams_form_post_spec.rb +34 -0
- data/spec/models/metric_listing_rep_spec.rb +4 -0
- data/spec/models/metric_post_spec.rb +4 -0
- data/spec/models/metric_rep_spec.rb +4 -0
- data/spec/models/metric_seen_spec.rb +1 -1
- data/spec/models/put_branch_spec.rb +6 -0
- data/spec/models/recent_trigger_body_spec.rb +40 -0
- data/spec/models/rule_spec.rb +6 -0
- data/spec/models/subscription_post_spec.rb +70 -0
- data/spec/models/team_imports_rep_spec.rb +34 -0
- 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
- metadata +70 -2
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
# LaunchDarklyApi::FlagTriggersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://app.launchdarkly.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_trigger_workflow**](FlagTriggersApi.md#create_trigger_workflow) | **POST** /api/v2/flags/{projKey}/{flagKey}/triggers/{envKey} | Create flag trigger |
|
|
8
|
+
| [**delete_trigger_workflow**](FlagTriggersApi.md#delete_trigger_workflow) | **DELETE** /api/v2/flags/{projKey}/{flagKey}/triggers/{envKey}/{id} | Delete flag trigger |
|
|
9
|
+
| [**get_trigger_workflow_by_id**](FlagTriggersApi.md#get_trigger_workflow_by_id) | **GET** /api/v2/flags/{projKey}/{flagKey}/triggers/{envKey}/{id} | Get flag trigger by ID |
|
|
10
|
+
| [**get_trigger_workflows**](FlagTriggersApi.md#get_trigger_workflows) | **GET** /api/v2/flags/{projKey}/{flagKey}/triggers/{envKey} | List flag triggers |
|
|
11
|
+
| [**patch_trigger_workflow**](FlagTriggersApi.md#patch_trigger_workflow) | **PATCH** /api/v2/flags/{projKey}/{flagKey}/triggers/{envKey}/{id} | Update flag trigger |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## create_trigger_workflow
|
|
15
|
+
|
|
16
|
+
> <TriggerWorkflowRep> create_trigger_workflow(proj_key, env_key, flag_key, trigger_post)
|
|
17
|
+
|
|
18
|
+
Create flag trigger
|
|
19
|
+
|
|
20
|
+
Create a new flag trigger. Triggers let you initiate changes to flag targeting remotely using a unique webhook URL.
|
|
21
|
+
|
|
22
|
+
### Examples
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'time'
|
|
26
|
+
require 'launchdarkly_api'
|
|
27
|
+
# setup authorization
|
|
28
|
+
LaunchDarklyApi.configure do |config|
|
|
29
|
+
# Configure API key authorization: ApiKey
|
|
30
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
32
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
api_instance = LaunchDarklyApi::FlagTriggersApi.new
|
|
36
|
+
proj_key = 'proj_key_example' # String | The project key
|
|
37
|
+
env_key = 'env_key_example' # String | The environment key
|
|
38
|
+
flag_key = 'flag_key_example' # String | The flag key
|
|
39
|
+
trigger_post = LaunchDarklyApi::TriggerPost.new({integration_key: 'integration_key_example'}) # TriggerPost |
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
# Create flag trigger
|
|
43
|
+
result = api_instance.create_trigger_workflow(proj_key, env_key, flag_key, trigger_post)
|
|
44
|
+
p result
|
|
45
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
46
|
+
puts "Error when calling FlagTriggersApi->create_trigger_workflow: #{e}"
|
|
47
|
+
end
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
#### Using the create_trigger_workflow_with_http_info variant
|
|
51
|
+
|
|
52
|
+
This returns an Array which contains the response data, status code and headers.
|
|
53
|
+
|
|
54
|
+
> <Array(<TriggerWorkflowRep>, Integer, Hash)> create_trigger_workflow_with_http_info(proj_key, env_key, flag_key, trigger_post)
|
|
55
|
+
|
|
56
|
+
```ruby
|
|
57
|
+
begin
|
|
58
|
+
# Create flag trigger
|
|
59
|
+
data, status_code, headers = api_instance.create_trigger_workflow_with_http_info(proj_key, env_key, flag_key, trigger_post)
|
|
60
|
+
p status_code # => 2xx
|
|
61
|
+
p headers # => { ... }
|
|
62
|
+
p data # => <TriggerWorkflowRep>
|
|
63
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
64
|
+
puts "Error when calling FlagTriggersApi->create_trigger_workflow_with_http_info: #{e}"
|
|
65
|
+
end
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
| Name | Type | Description | Notes |
|
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
|
72
|
+
| **proj_key** | **String** | The project key | |
|
|
73
|
+
| **env_key** | **String** | The environment key | |
|
|
74
|
+
| **flag_key** | **String** | The flag key | |
|
|
75
|
+
| **trigger_post** | [**TriggerPost**](TriggerPost.md) | | |
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
[**TriggerWorkflowRep**](TriggerWorkflowRep.md)
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
[ApiKey](../README.md#ApiKey)
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: application/json
|
|
88
|
+
- **Accept**: application/json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## delete_trigger_workflow
|
|
92
|
+
|
|
93
|
+
> delete_trigger_workflow(proj_key, env_key, flag_key, id)
|
|
94
|
+
|
|
95
|
+
Delete flag trigger
|
|
96
|
+
|
|
97
|
+
Delete a flag trigger by ID.
|
|
98
|
+
|
|
99
|
+
### Examples
|
|
100
|
+
|
|
101
|
+
```ruby
|
|
102
|
+
require 'time'
|
|
103
|
+
require 'launchdarkly_api'
|
|
104
|
+
# setup authorization
|
|
105
|
+
LaunchDarklyApi.configure do |config|
|
|
106
|
+
# Configure API key authorization: ApiKey
|
|
107
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
|
108
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
109
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
api_instance = LaunchDarklyApi::FlagTriggersApi.new
|
|
113
|
+
proj_key = 'proj_key_example' # String | The project key
|
|
114
|
+
env_key = 'env_key_example' # String | The environment key
|
|
115
|
+
flag_key = 'flag_key_example' # String | The flag key
|
|
116
|
+
id = 'id_example' # String | The flag trigger ID
|
|
117
|
+
|
|
118
|
+
begin
|
|
119
|
+
# Delete flag trigger
|
|
120
|
+
api_instance.delete_trigger_workflow(proj_key, env_key, flag_key, id)
|
|
121
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
122
|
+
puts "Error when calling FlagTriggersApi->delete_trigger_workflow: #{e}"
|
|
123
|
+
end
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### Using the delete_trigger_workflow_with_http_info variant
|
|
127
|
+
|
|
128
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
129
|
+
|
|
130
|
+
> <Array(nil, Integer, Hash)> delete_trigger_workflow_with_http_info(proj_key, env_key, flag_key, id)
|
|
131
|
+
|
|
132
|
+
```ruby
|
|
133
|
+
begin
|
|
134
|
+
# Delete flag trigger
|
|
135
|
+
data, status_code, headers = api_instance.delete_trigger_workflow_with_http_info(proj_key, env_key, flag_key, id)
|
|
136
|
+
p status_code # => 2xx
|
|
137
|
+
p headers # => { ... }
|
|
138
|
+
p data # => nil
|
|
139
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
140
|
+
puts "Error when calling FlagTriggersApi->delete_trigger_workflow_with_http_info: #{e}"
|
|
141
|
+
end
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
| Name | Type | Description | Notes |
|
|
147
|
+
| ---- | ---- | ----------- | ----- |
|
|
148
|
+
| **proj_key** | **String** | The project key | |
|
|
149
|
+
| **env_key** | **String** | The environment key | |
|
|
150
|
+
| **flag_key** | **String** | The flag key | |
|
|
151
|
+
| **id** | **String** | The flag trigger ID | |
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
nil (empty response body)
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[ApiKey](../README.md#ApiKey)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## get_trigger_workflow_by_id
|
|
168
|
+
|
|
169
|
+
> <TriggerWorkflowRep> get_trigger_workflow_by_id(proj_key, flag_key, env_key, id)
|
|
170
|
+
|
|
171
|
+
Get flag trigger by ID
|
|
172
|
+
|
|
173
|
+
Get a flag trigger by ID.
|
|
174
|
+
|
|
175
|
+
### Examples
|
|
176
|
+
|
|
177
|
+
```ruby
|
|
178
|
+
require 'time'
|
|
179
|
+
require 'launchdarkly_api'
|
|
180
|
+
# setup authorization
|
|
181
|
+
LaunchDarklyApi.configure do |config|
|
|
182
|
+
# Configure API key authorization: ApiKey
|
|
183
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
|
184
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
185
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
api_instance = LaunchDarklyApi::FlagTriggersApi.new
|
|
189
|
+
proj_key = 'proj_key_example' # String | The project key
|
|
190
|
+
flag_key = 'flag_key_example' # String | The flag key
|
|
191
|
+
env_key = 'env_key_example' # String | The environment key
|
|
192
|
+
id = 'id_example' # String | The flag trigger ID
|
|
193
|
+
|
|
194
|
+
begin
|
|
195
|
+
# Get flag trigger by ID
|
|
196
|
+
result = api_instance.get_trigger_workflow_by_id(proj_key, flag_key, env_key, id)
|
|
197
|
+
p result
|
|
198
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
199
|
+
puts "Error when calling FlagTriggersApi->get_trigger_workflow_by_id: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
#### Using the get_trigger_workflow_by_id_with_http_info variant
|
|
204
|
+
|
|
205
|
+
This returns an Array which contains the response data, status code and headers.
|
|
206
|
+
|
|
207
|
+
> <Array(<TriggerWorkflowRep>, Integer, Hash)> get_trigger_workflow_by_id_with_http_info(proj_key, flag_key, env_key, id)
|
|
208
|
+
|
|
209
|
+
```ruby
|
|
210
|
+
begin
|
|
211
|
+
# Get flag trigger by ID
|
|
212
|
+
data, status_code, headers = api_instance.get_trigger_workflow_by_id_with_http_info(proj_key, flag_key, env_key, id)
|
|
213
|
+
p status_code # => 2xx
|
|
214
|
+
p headers # => { ... }
|
|
215
|
+
p data # => <TriggerWorkflowRep>
|
|
216
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
217
|
+
puts "Error when calling FlagTriggersApi->get_trigger_workflow_by_id_with_http_info: #{e}"
|
|
218
|
+
end
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Parameters
|
|
222
|
+
|
|
223
|
+
| Name | Type | Description | Notes |
|
|
224
|
+
| ---- | ---- | ----------- | ----- |
|
|
225
|
+
| **proj_key** | **String** | The project key | |
|
|
226
|
+
| **flag_key** | **String** | The flag key | |
|
|
227
|
+
| **env_key** | **String** | The environment key | |
|
|
228
|
+
| **id** | **String** | The flag trigger ID | |
|
|
229
|
+
|
|
230
|
+
### Return type
|
|
231
|
+
|
|
232
|
+
[**TriggerWorkflowRep**](TriggerWorkflowRep.md)
|
|
233
|
+
|
|
234
|
+
### Authorization
|
|
235
|
+
|
|
236
|
+
[ApiKey](../README.md#ApiKey)
|
|
237
|
+
|
|
238
|
+
### HTTP request headers
|
|
239
|
+
|
|
240
|
+
- **Content-Type**: Not defined
|
|
241
|
+
- **Accept**: application/json
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
## get_trigger_workflows
|
|
245
|
+
|
|
246
|
+
> <TriggerWorkflowCollectionRep> get_trigger_workflows(proj_key, env_key, flag_key)
|
|
247
|
+
|
|
248
|
+
List flag triggers
|
|
249
|
+
|
|
250
|
+
Get a list of all flag triggers.
|
|
251
|
+
|
|
252
|
+
### Examples
|
|
253
|
+
|
|
254
|
+
```ruby
|
|
255
|
+
require 'time'
|
|
256
|
+
require 'launchdarkly_api'
|
|
257
|
+
# setup authorization
|
|
258
|
+
LaunchDarklyApi.configure do |config|
|
|
259
|
+
# Configure API key authorization: ApiKey
|
|
260
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
|
261
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
262
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
api_instance = LaunchDarklyApi::FlagTriggersApi.new
|
|
266
|
+
proj_key = 'proj_key_example' # String | The project key
|
|
267
|
+
env_key = 'env_key_example' # String | The environment key
|
|
268
|
+
flag_key = 'flag_key_example' # String | The flag key
|
|
269
|
+
|
|
270
|
+
begin
|
|
271
|
+
# List flag triggers
|
|
272
|
+
result = api_instance.get_trigger_workflows(proj_key, env_key, flag_key)
|
|
273
|
+
p result
|
|
274
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
275
|
+
puts "Error when calling FlagTriggersApi->get_trigger_workflows: #{e}"
|
|
276
|
+
end
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
#### Using the get_trigger_workflows_with_http_info variant
|
|
280
|
+
|
|
281
|
+
This returns an Array which contains the response data, status code and headers.
|
|
282
|
+
|
|
283
|
+
> <Array(<TriggerWorkflowCollectionRep>, Integer, Hash)> get_trigger_workflows_with_http_info(proj_key, env_key, flag_key)
|
|
284
|
+
|
|
285
|
+
```ruby
|
|
286
|
+
begin
|
|
287
|
+
# List flag triggers
|
|
288
|
+
data, status_code, headers = api_instance.get_trigger_workflows_with_http_info(proj_key, env_key, flag_key)
|
|
289
|
+
p status_code # => 2xx
|
|
290
|
+
p headers # => { ... }
|
|
291
|
+
p data # => <TriggerWorkflowCollectionRep>
|
|
292
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
293
|
+
puts "Error when calling FlagTriggersApi->get_trigger_workflows_with_http_info: #{e}"
|
|
294
|
+
end
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Parameters
|
|
298
|
+
|
|
299
|
+
| Name | Type | Description | Notes |
|
|
300
|
+
| ---- | ---- | ----------- | ----- |
|
|
301
|
+
| **proj_key** | **String** | The project key | |
|
|
302
|
+
| **env_key** | **String** | The environment key | |
|
|
303
|
+
| **flag_key** | **String** | The flag key | |
|
|
304
|
+
|
|
305
|
+
### Return type
|
|
306
|
+
|
|
307
|
+
[**TriggerWorkflowCollectionRep**](TriggerWorkflowCollectionRep.md)
|
|
308
|
+
|
|
309
|
+
### Authorization
|
|
310
|
+
|
|
311
|
+
[ApiKey](../README.md#ApiKey)
|
|
312
|
+
|
|
313
|
+
### HTTP request headers
|
|
314
|
+
|
|
315
|
+
- **Content-Type**: Not defined
|
|
316
|
+
- **Accept**: application/json
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
## patch_trigger_workflow
|
|
320
|
+
|
|
321
|
+
> <TriggerWorkflowRep> patch_trigger_workflow(proj_key, env_key, flag_key, id, flag_trigger_input)
|
|
322
|
+
|
|
323
|
+
Update flag trigger
|
|
324
|
+
|
|
325
|
+
Update a flag trigger. The request body must be a valid JSON patch or JSON merge patch document. To learn more, read [Updates](/#section/Overview/Updates).
|
|
326
|
+
|
|
327
|
+
### Examples
|
|
328
|
+
|
|
329
|
+
```ruby
|
|
330
|
+
require 'time'
|
|
331
|
+
require 'launchdarkly_api'
|
|
332
|
+
# setup authorization
|
|
333
|
+
LaunchDarklyApi.configure do |config|
|
|
334
|
+
# Configure API key authorization: ApiKey
|
|
335
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
|
336
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
337
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
api_instance = LaunchDarklyApi::FlagTriggersApi.new
|
|
341
|
+
proj_key = 'proj_key_example' # String | The project key
|
|
342
|
+
env_key = 'env_key_example' # String | The environment key
|
|
343
|
+
flag_key = 'flag_key_example' # String | The flag key
|
|
344
|
+
id = 'id_example' # String | The flag trigger ID
|
|
345
|
+
flag_trigger_input = LaunchDarklyApi::FlagTriggerInput.new # FlagTriggerInput |
|
|
346
|
+
|
|
347
|
+
begin
|
|
348
|
+
# Update flag trigger
|
|
349
|
+
result = api_instance.patch_trigger_workflow(proj_key, env_key, flag_key, id, flag_trigger_input)
|
|
350
|
+
p result
|
|
351
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
352
|
+
puts "Error when calling FlagTriggersApi->patch_trigger_workflow: #{e}"
|
|
353
|
+
end
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
#### Using the patch_trigger_workflow_with_http_info variant
|
|
357
|
+
|
|
358
|
+
This returns an Array which contains the response data, status code and headers.
|
|
359
|
+
|
|
360
|
+
> <Array(<TriggerWorkflowRep>, Integer, Hash)> patch_trigger_workflow_with_http_info(proj_key, env_key, flag_key, id, flag_trigger_input)
|
|
361
|
+
|
|
362
|
+
```ruby
|
|
363
|
+
begin
|
|
364
|
+
# Update flag trigger
|
|
365
|
+
data, status_code, headers = api_instance.patch_trigger_workflow_with_http_info(proj_key, env_key, flag_key, id, flag_trigger_input)
|
|
366
|
+
p status_code # => 2xx
|
|
367
|
+
p headers # => { ... }
|
|
368
|
+
p data # => <TriggerWorkflowRep>
|
|
369
|
+
rescue LaunchDarklyApi::ApiError => e
|
|
370
|
+
puts "Error when calling FlagTriggersApi->patch_trigger_workflow_with_http_info: #{e}"
|
|
371
|
+
end
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
### Parameters
|
|
375
|
+
|
|
376
|
+
| Name | Type | Description | Notes |
|
|
377
|
+
| ---- | ---- | ----------- | ----- |
|
|
378
|
+
| **proj_key** | **String** | The project key | |
|
|
379
|
+
| **env_key** | **String** | The environment key | |
|
|
380
|
+
| **flag_key** | **String** | The flag key | |
|
|
381
|
+
| **id** | **String** | The flag trigger ID | |
|
|
382
|
+
| **flag_trigger_input** | [**FlagTriggerInput**](FlagTriggerInput.md) | | |
|
|
383
|
+
|
|
384
|
+
### Return type
|
|
385
|
+
|
|
386
|
+
[**TriggerWorkflowRep**](TriggerWorkflowRep.md)
|
|
387
|
+
|
|
388
|
+
### Authorization
|
|
389
|
+
|
|
390
|
+
[ApiKey](../README.md#ApiKey)
|
|
391
|
+
|
|
392
|
+
### HTTP request headers
|
|
393
|
+
|
|
394
|
+
- **Content-Type**: application/json
|
|
395
|
+
- **Accept**: application/json
|
|
396
|
+
|
data/docs/Integration.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# LaunchDarklyApi::Integration
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **_links** | [**Hash<String, Link>**](Link.md) | | [optional] |
|
|
8
|
+
| **_id** | **String** | | [optional] |
|
|
9
|
+
| **kind** | **String** | | [optional] |
|
|
10
|
+
| **name** | **String** | | [optional] |
|
|
11
|
+
| **config** | **Hash<String, Object>** | | [optional] |
|
|
12
|
+
| **statements** | [**Array<StatementRep>**](StatementRep.md) | | [optional] |
|
|
13
|
+
| **on** | **Boolean** | | [optional] |
|
|
14
|
+
| **tags** | **Array<String>** | | [optional] |
|
|
15
|
+
| **_access** | [**AccessRep**](AccessRep.md) | | [optional] |
|
|
16
|
+
| **_status** | [**IntegrationSubscriptionStatusRep**](IntegrationSubscriptionStatusRep.md) | | [optional] |
|
|
17
|
+
| **url** | **String** | | [optional] |
|
|
18
|
+
| **api_key** | **String** | | [optional] |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'launchdarkly_api'
|
|
24
|
+
|
|
25
|
+
instance = LaunchDarklyApi::Integration.new(
|
|
26
|
+
_links: null,
|
|
27
|
+
_id: null,
|
|
28
|
+
kind: null,
|
|
29
|
+
name: null,
|
|
30
|
+
config: null,
|
|
31
|
+
statements: null,
|
|
32
|
+
on: null,
|
|
33
|
+
tags: null,
|
|
34
|
+
_access: null,
|
|
35
|
+
_status: null,
|
|
36
|
+
url: null,
|
|
37
|
+
api_key: null
|
|
38
|
+
)
|
|
39
|
+
```
|
|
40
|
+
|