Class: LaunchDarklyApi::IntegrationDeliveryConfigurationsBetaApi
- Inherits:
-
Object
- Object
- LaunchDarklyApi::IntegrationDeliveryConfigurationsBetaApi
- Defined in:
- lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_integration_delivery_configuration(project_key, environment_key, integration_key, integration_delivery_configuration_post, opts = {}) ⇒ IntegrationDeliveryConfiguration
Create delivery configuration Create a delivery configuration.
-
#create_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, integration_delivery_configuration_post, opts = {}) ⇒ Array<(IntegrationDeliveryConfiguration, Integer, Hash)>
Create delivery configuration Create a delivery configuration.
-
#delete_integration_delivery_configuration(project_key, environment_key, integration_key, id, opts = {}) ⇒ nil
Delete delivery configuration Delete a delivery configuration.
-
#delete_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete delivery configuration Delete a delivery configuration.
-
#get_integration_delivery_configuration_by_environment(project_key, environment_key, opts = {}) ⇒ IntegrationDeliveryConfigurationCollection
Get delivery configurations by environment Get delivery configurations by environment.
-
#get_integration_delivery_configuration_by_environment_with_http_info(project_key, environment_key, opts = {}) ⇒ Array<(IntegrationDeliveryConfigurationCollection, Integer, Hash)>
Get delivery configurations by environment Get delivery configurations by environment.
-
#get_integration_delivery_configuration_by_id(project_key, environment_key, integration_key, id, opts = {}) ⇒ IntegrationDeliveryConfiguration
Get delivery configuration by ID Get delivery configuration by ID.
-
#get_integration_delivery_configuration_by_id_with_http_info(project_key, environment_key, integration_key, id, opts = {}) ⇒ Array<(IntegrationDeliveryConfiguration, Integer, Hash)>
Get delivery configuration by ID Get delivery configuration by ID.
-
#get_integration_delivery_configurations(opts = {}) ⇒ IntegrationDeliveryConfigurationCollection
List all delivery configurations List all delivery configurations.
-
#get_integration_delivery_configurations_with_http_info(opts = {}) ⇒ Array<(IntegrationDeliveryConfigurationCollection, Integer, Hash)>
List all delivery configurations List all delivery configurations.
-
#initialize(api_client = ApiClient.default) ⇒ IntegrationDeliveryConfigurationsBetaApi
constructor
A new instance of IntegrationDeliveryConfigurationsBetaApi.
-
#patch_integration_delivery_configuration(project_key, environment_key, integration_key, id, patch_operation, opts = {}) ⇒ IntegrationDeliveryConfiguration
Update delivery configuration Update an integration delivery configuration.
-
#patch_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, patch_operation, opts = {}) ⇒ Array<(IntegrationDeliveryConfiguration, Integer, Hash)>
Update delivery configuration Update an integration delivery configuration.
-
#validate_integration_delivery_configuration(project_key, environment_key, integration_key, id, opts = {}) ⇒ IntegrationDeliveryConfigurationResponse
Validate delivery configuration Validate the saved delivery configuration, using the ‘validationRequest` in the integration’s ‘manifest.json` file.
-
#validate_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts = {}) ⇒ Array<(IntegrationDeliveryConfigurationResponse, Integer, Hash)>
Validate delivery configuration Validate the saved delivery configuration, using the `validationRequest` in the integration's `manifest.json` file.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ IntegrationDeliveryConfigurationsBetaApi
Returns a new instance of IntegrationDeliveryConfigurationsBetaApi.
19 20 21 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_integration_delivery_configuration(project_key, environment_key, integration_key, integration_delivery_configuration_post, opts = {}) ⇒ IntegrationDeliveryConfiguration
Create delivery configuration Create a delivery configuration.
30 31 32 33 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 30 def create_integration_delivery_configuration(project_key, environment_key, integration_key, integration_delivery_configuration_post, opts = {}) data, _status_code, _headers = create_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, integration_delivery_configuration_post, opts) data end |
#create_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, integration_delivery_configuration_post, opts = {}) ⇒ Array<(IntegrationDeliveryConfiguration, Integer, Hash)>
Create delivery configuration Create a delivery configuration.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 43 def create_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, integration_delivery_configuration_post, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IntegrationDeliveryConfigurationsBetaApi.create_integration_delivery_configuration ...' end # verify the required parameter 'project_key' is set if @api_client.config.client_side_validation && project_key.nil? fail ArgumentError, "Missing the required parameter 'project_key' when calling IntegrationDeliveryConfigurationsBetaApi.create_integration_delivery_configuration" end # verify the required parameter 'environment_key' is set if @api_client.config.client_side_validation && environment_key.nil? fail ArgumentError, "Missing the required parameter 'environment_key' when calling IntegrationDeliveryConfigurationsBetaApi.create_integration_delivery_configuration" end # verify the required parameter 'integration_key' is set if @api_client.config.client_side_validation && integration_key.nil? fail ArgumentError, "Missing the required parameter 'integration_key' when calling IntegrationDeliveryConfigurationsBetaApi.create_integration_delivery_configuration" end # verify the required parameter 'integration_delivery_configuration_post' is set if @api_client.config.client_side_validation && integration_delivery_configuration_post.nil? fail ArgumentError, "Missing the required parameter 'integration_delivery_configuration_post' when calling IntegrationDeliveryConfigurationsBetaApi.create_integration_delivery_configuration" end # resource path local_var_path = '/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}'.sub('{' + 'projectKey' + '}', CGI.escape(project_key.to_s)).sub('{' + 'environmentKey' + '}', CGI.escape(environment_key.to_s)).sub('{' + 'integrationKey' + '}', CGI.escape(integration_key.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(integration_delivery_configuration_post) # return_type return_type = opts[:debug_return_type] || 'IntegrationDeliveryConfiguration' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"IntegrationDeliveryConfigurationsBetaApi.create_integration_delivery_configuration", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: IntegrationDeliveryConfigurationsBetaApi#create_integration_delivery_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_integration_delivery_configuration(project_key, environment_key, integration_key, id, opts = {}) ⇒ nil
Delete delivery configuration Delete a delivery configuration.
116 117 118 119 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 116 def delete_integration_delivery_configuration(project_key, environment_key, integration_key, id, opts = {}) delete_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts) nil end |
#delete_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete delivery configuration Delete a delivery configuration.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 129 def delete_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IntegrationDeliveryConfigurationsBetaApi.delete_integration_delivery_configuration ...' end # verify the required parameter 'project_key' is set if @api_client.config.client_side_validation && project_key.nil? fail ArgumentError, "Missing the required parameter 'project_key' when calling IntegrationDeliveryConfigurationsBetaApi.delete_integration_delivery_configuration" end # verify the required parameter 'environment_key' is set if @api_client.config.client_side_validation && environment_key.nil? fail ArgumentError, "Missing the required parameter 'environment_key' when calling IntegrationDeliveryConfigurationsBetaApi.delete_integration_delivery_configuration" end # verify the required parameter 'integration_key' is set if @api_client.config.client_side_validation && integration_key.nil? fail ArgumentError, "Missing the required parameter 'integration_key' when calling IntegrationDeliveryConfigurationsBetaApi.delete_integration_delivery_configuration" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling IntegrationDeliveryConfigurationsBetaApi.delete_integration_delivery_configuration" end # resource path local_var_path = '/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}'.sub('{' + 'projectKey' + '}', CGI.escape(project_key.to_s)).sub('{' + 'environmentKey' + '}', CGI.escape(environment_key.to_s)).sub('{' + 'integrationKey' + '}', CGI.escape(integration_key.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"IntegrationDeliveryConfigurationsBetaApi.delete_integration_delivery_configuration", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: IntegrationDeliveryConfigurationsBetaApi#delete_integration_delivery_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_integration_delivery_configuration_by_environment(project_key, environment_key, opts = {}) ⇒ IntegrationDeliveryConfigurationCollection
Get delivery configurations by environment Get delivery configurations by environment.
195 196 197 198 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 195 def get_integration_delivery_configuration_by_environment(project_key, environment_key, opts = {}) data, _status_code, _headers = get_integration_delivery_configuration_by_environment_with_http_info(project_key, environment_key, opts) data end |
#get_integration_delivery_configuration_by_environment_with_http_info(project_key, environment_key, opts = {}) ⇒ Array<(IntegrationDeliveryConfigurationCollection, Integer, Hash)>
Get delivery configurations by environment Get delivery configurations by environment.
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 206 def get_integration_delivery_configuration_by_environment_with_http_info(project_key, environment_key, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_environment ...' end # verify the required parameter 'project_key' is set if @api_client.config.client_side_validation && project_key.nil? fail ArgumentError, "Missing the required parameter 'project_key' when calling IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_environment" end # verify the required parameter 'environment_key' is set if @api_client.config.client_side_validation && environment_key.nil? fail ArgumentError, "Missing the required parameter 'environment_key' when calling IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_environment" end # resource path local_var_path = '/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}'.sub('{' + 'projectKey' + '}', CGI.escape(project_key.to_s)).sub('{' + 'environmentKey' + '}', CGI.escape(environment_key.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IntegrationDeliveryConfigurationCollection' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_environment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: IntegrationDeliveryConfigurationsBetaApi#get_integration_delivery_configuration_by_environment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_integration_delivery_configuration_by_id(project_key, environment_key, integration_key, id, opts = {}) ⇒ IntegrationDeliveryConfiguration
Get delivery configuration by ID Get delivery configuration by ID.
266 267 268 269 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 266 def get_integration_delivery_configuration_by_id(project_key, environment_key, integration_key, id, opts = {}) data, _status_code, _headers = get_integration_delivery_configuration_by_id_with_http_info(project_key, environment_key, integration_key, id, opts) data end |
#get_integration_delivery_configuration_by_id_with_http_info(project_key, environment_key, integration_key, id, opts = {}) ⇒ Array<(IntegrationDeliveryConfiguration, Integer, Hash)>
Get delivery configuration by ID Get delivery configuration by ID.
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 279 def get_integration_delivery_configuration_by_id_with_http_info(project_key, environment_key, integration_key, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_id ...' end # verify the required parameter 'project_key' is set if @api_client.config.client_side_validation && project_key.nil? fail ArgumentError, "Missing the required parameter 'project_key' when calling IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_id" end # verify the required parameter 'environment_key' is set if @api_client.config.client_side_validation && environment_key.nil? fail ArgumentError, "Missing the required parameter 'environment_key' when calling IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_id" end # verify the required parameter 'integration_key' is set if @api_client.config.client_side_validation && integration_key.nil? fail ArgumentError, "Missing the required parameter 'integration_key' when calling IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_id" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_id" end # resource path local_var_path = '/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}'.sub('{' + 'projectKey' + '}', CGI.escape(project_key.to_s)).sub('{' + 'environmentKey' + '}', CGI.escape(environment_key.to_s)).sub('{' + 'integrationKey' + '}', CGI.escape(integration_key.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IntegrationDeliveryConfiguration' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configuration_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: IntegrationDeliveryConfigurationsBetaApi#get_integration_delivery_configuration_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_integration_delivery_configurations(opts = {}) ⇒ IntegrationDeliveryConfigurationCollection
List all delivery configurations List all delivery configurations.
343 344 345 346 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 343 def get_integration_delivery_configurations(opts = {}) data, _status_code, _headers = get_integration_delivery_configurations_with_http_info(opts) data end |
#get_integration_delivery_configurations_with_http_info(opts = {}) ⇒ Array<(IntegrationDeliveryConfigurationCollection, Integer, Hash)>
List all delivery configurations List all delivery configurations.
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 352 def get_integration_delivery_configurations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configurations ...' end # resource path local_var_path = '/api/v2/integration-capabilities/featureStore' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IntegrationDeliveryConfigurationCollection' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"IntegrationDeliveryConfigurationsBetaApi.get_integration_delivery_configurations", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: IntegrationDeliveryConfigurationsBetaApi#get_integration_delivery_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_integration_delivery_configuration(project_key, environment_key, integration_key, id, patch_operation, opts = {}) ⇒ IntegrationDeliveryConfiguration
Update delivery configuration Update an integration delivery configuration.
405 406 407 408 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 405 def patch_integration_delivery_configuration(project_key, environment_key, integration_key, id, patch_operation, opts = {}) data, _status_code, _headers = patch_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, patch_operation, opts) data end |
#patch_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, patch_operation, opts = {}) ⇒ Array<(IntegrationDeliveryConfiguration, Integer, Hash)>
Update delivery configuration Update an integration delivery configuration.
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 419 def patch_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, patch_operation, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IntegrationDeliveryConfigurationsBetaApi.patch_integration_delivery_configuration ...' end # verify the required parameter 'project_key' is set if @api_client.config.client_side_validation && project_key.nil? fail ArgumentError, "Missing the required parameter 'project_key' when calling IntegrationDeliveryConfigurationsBetaApi.patch_integration_delivery_configuration" end # verify the required parameter 'environment_key' is set if @api_client.config.client_side_validation && environment_key.nil? fail ArgumentError, "Missing the required parameter 'environment_key' when calling IntegrationDeliveryConfigurationsBetaApi.patch_integration_delivery_configuration" end # verify the required parameter 'integration_key' is set if @api_client.config.client_side_validation && integration_key.nil? fail ArgumentError, "Missing the required parameter 'integration_key' when calling IntegrationDeliveryConfigurationsBetaApi.patch_integration_delivery_configuration" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling IntegrationDeliveryConfigurationsBetaApi.patch_integration_delivery_configuration" end # verify the required parameter 'patch_operation' is set if @api_client.config.client_side_validation && patch_operation.nil? fail ArgumentError, "Missing the required parameter 'patch_operation' when calling IntegrationDeliveryConfigurationsBetaApi.patch_integration_delivery_configuration" end # resource path local_var_path = '/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}'.sub('{' + 'projectKey' + '}', CGI.escape(project_key.to_s)).sub('{' + 'environmentKey' + '}', CGI.escape(environment_key.to_s)).sub('{' + 'integrationKey' + '}', CGI.escape(integration_key.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_operation) # return_type return_type = opts[:debug_return_type] || 'IntegrationDeliveryConfiguration' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"IntegrationDeliveryConfigurationsBetaApi.patch_integration_delivery_configuration", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: IntegrationDeliveryConfigurationsBetaApi#patch_integration_delivery_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#validate_integration_delivery_configuration(project_key, environment_key, integration_key, id, opts = {}) ⇒ IntegrationDeliveryConfigurationResponse
Validate delivery configuration Validate the saved delivery configuration, using the ‘validationRequest` in the integration’s ‘manifest.json` file.
496 497 498 499 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 496 def validate_integration_delivery_configuration(project_key, environment_key, integration_key, id, opts = {}) data, _status_code, _headers = validate_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts) data end |
#validate_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts = {}) ⇒ Array<(IntegrationDeliveryConfigurationResponse, Integer, Hash)>
Validate delivery configuration Validate the saved delivery configuration, using the `validationRequest` in the integration's `manifest.json` file.
509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 |
# File 'lib/launchdarkly_api/api/integration_delivery_configurations_beta_api.rb', line 509 def validate_integration_delivery_configuration_with_http_info(project_key, environment_key, integration_key, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IntegrationDeliveryConfigurationsBetaApi.validate_integration_delivery_configuration ...' end # verify the required parameter 'project_key' is set if @api_client.config.client_side_validation && project_key.nil? fail ArgumentError, "Missing the required parameter 'project_key' when calling IntegrationDeliveryConfigurationsBetaApi.validate_integration_delivery_configuration" end # verify the required parameter 'environment_key' is set if @api_client.config.client_side_validation && environment_key.nil? fail ArgumentError, "Missing the required parameter 'environment_key' when calling IntegrationDeliveryConfigurationsBetaApi.validate_integration_delivery_configuration" end # verify the required parameter 'integration_key' is set if @api_client.config.client_side_validation && integration_key.nil? fail ArgumentError, "Missing the required parameter 'integration_key' when calling IntegrationDeliveryConfigurationsBetaApi.validate_integration_delivery_configuration" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling IntegrationDeliveryConfigurationsBetaApi.validate_integration_delivery_configuration" end # resource path local_var_path = '/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}/validate'.sub('{' + 'projectKey' + '}', CGI.escape(project_key.to_s)).sub('{' + 'environmentKey' + '}', CGI.escape(environment_key.to_s)).sub('{' + 'integrationKey' + '}', CGI.escape(integration_key.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IntegrationDeliveryConfigurationResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKey'] = opts.merge( :operation => :"IntegrationDeliveryConfigurationsBetaApi.validate_integration_delivery_configuration", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: IntegrationDeliveryConfigurationsBetaApi#validate_integration_delivery_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |