smplkit 2.0.13 → 2.0.14
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/lib/smplkit/_generated/app/lib/smplkit_app_client/api/account_api.rb +11 -11
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/api_keys_api.rb +18 -18
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/billing_api.rb +21 -21
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/context_types_api.rb +18 -18
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/contexts_api.rb +11 -11
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/environments_api.rb +18 -18
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/metrics_api.rb +2 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/services_api.rb +18 -18
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/users_api.rb +18 -18
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account.rb +14 -31
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_wipe_request.rb +3 -3
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/add_payment_method_attributes.rb +3 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/add_payment_method_body.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/add_payment_method_data.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key.rb +15 -16
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/auth_token_response.rb +3 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context.rb +6 -3
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_batch_response.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_bulk_item.rb +4 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_bulk_register.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type.rb +5 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_subscription_attributes.rb +4 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_subscription_body.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_subscription_data.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/email.rb +3 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/email_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/email_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment.rb +6 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation.rb +11 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_accept_request.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_bulk_create_request.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_create_item.rb +3 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice.rb +13 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_single_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/limit_definition.rb +5 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/login_request.rb +3 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_attributes.rb +7 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_bulk_request.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_name_item.rb +3 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_names_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_attributes.rb +6 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/next_tier_meta.rb +4 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/page_meta.rb +5 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method.rb +9 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan.rb +4 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_change_request.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_definition.rb +3 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product.rb +8 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/register_request.rb +4 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service.rb +4 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/setup_intent_attributes.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/setup_intent_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_attributes.rb +8 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_meta.rb +6 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user.rb +11 -21
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_list_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_resource.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_response.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/value.rb +1 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/verify_email_request.rb +2 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +8 -0
- data/lib/smplkit/_generated/app/spec/api/account_api_spec.rb +2 -2
- data/lib/smplkit/_generated/app/spec/api/api_keys_api_spec.rb +2 -2
- data/lib/smplkit/_generated/app/spec/api/billing_api_spec.rb +7 -7
- data/lib/smplkit/_generated/app/spec/api/context_types_api_spec.rb +2 -2
- data/lib/smplkit/_generated/app/spec/api/contexts_api_spec.rb +2 -2
- data/lib/smplkit/_generated/app/spec/api/environments_api_spec.rb +2 -2
- data/lib/smplkit/_generated/app/spec/api/metrics_api_spec.rb +1 -1
- data/lib/smplkit/_generated/app/spec/api/services_api_spec.rb +2 -2
- data/lib/smplkit/_generated/app/spec/api/users_api_spec.rb +2 -2
- data/lib/smplkit/_generated/app/spec/models/account_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/api_key_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/api_key_spec.rb +0 -6
- data/lib/smplkit/_generated/app/spec/models/context_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/context_type_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/environment_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/payment_method_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/service_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/user_request_spec.rb +36 -0
- metadata +17 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0cabb5a834e2ad1fbd07f37cec7079c2a2ef5cf34b9df9da510b6379fac0e47c
|
|
4
|
+
data.tar.gz: 6d6db271c08f2687eb2c7106be1311567d121e5a1062bc29ecf9ded909c7ddc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cc0a9c24c531ec24d3b1d7da6dae7158195e97d4622ac5533cf349a43a7de53a85ac85bc3259e7463a8ab658a2facdf391212636cf9269e79d64132c8b6b59a
|
|
7
|
+
data.tar.gz: 731ddca19710d25548ea9c6e02151324a2c3b4ecfa90071e957cbbcfed0547fd3f989793a524a73562782426148b0ce41c43c8898bd68baa5f7b0c244bc0e348
|
|
@@ -249,26 +249,26 @@ module SmplkitGeneratedClient::App
|
|
|
249
249
|
|
|
250
250
|
# Update Current Account
|
|
251
251
|
# Update the current account's settings.
|
|
252
|
-
# @param
|
|
252
|
+
# @param account_request [AccountRequest]
|
|
253
253
|
# @param [Hash] opts the optional parameters
|
|
254
254
|
# @return [AccountResponse]
|
|
255
|
-
def update_account(
|
|
256
|
-
data, _status_code, _headers = update_account_with_http_info(
|
|
255
|
+
def update_account(account_request, opts = {})
|
|
256
|
+
data, _status_code, _headers = update_account_with_http_info(account_request, opts)
|
|
257
257
|
data
|
|
258
258
|
end
|
|
259
259
|
|
|
260
260
|
# Update Current Account
|
|
261
261
|
# Update the current account's settings.
|
|
262
|
-
# @param
|
|
262
|
+
# @param account_request [AccountRequest]
|
|
263
263
|
# @param [Hash] opts the optional parameters
|
|
264
264
|
# @return [Array<(AccountResponse, Integer, Hash)>] AccountResponse data, response status code and response headers
|
|
265
|
-
def update_account_with_http_info(
|
|
265
|
+
def update_account_with_http_info(account_request, opts = {})
|
|
266
266
|
if @api_client.config.debugging
|
|
267
267
|
@api_client.config.logger.debug 'Calling API: AccountApi.update_account ...'
|
|
268
268
|
end
|
|
269
|
-
# verify the required parameter '
|
|
270
|
-
if @api_client.config.client_side_validation &&
|
|
271
|
-
fail ArgumentError, "Missing the required parameter '
|
|
269
|
+
# verify the required parameter 'account_request' is set
|
|
270
|
+
if @api_client.config.client_side_validation && account_request.nil?
|
|
271
|
+
fail ArgumentError, "Missing the required parameter 'account_request' when calling AccountApi.update_account"
|
|
272
272
|
end
|
|
273
273
|
# resource path
|
|
274
274
|
local_var_path = '/api/v1/accounts/current'
|
|
@@ -290,7 +290,7 @@ module SmplkitGeneratedClient::App
|
|
|
290
290
|
form_params = opts[:form_params] || {}
|
|
291
291
|
|
|
292
292
|
# http body (model)
|
|
293
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
293
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(account_request)
|
|
294
294
|
|
|
295
295
|
# return_type
|
|
296
296
|
return_type = opts[:debug_return_type] || 'AccountResponse'
|
|
@@ -316,7 +316,7 @@ module SmplkitGeneratedClient::App
|
|
|
316
316
|
end
|
|
317
317
|
|
|
318
318
|
# Wipe Account Data
|
|
319
|
-
# Delete every config, flag, logger, log group, context, context type, environment, and customer API key (except the caller's current key) on the account. The
|
|
319
|
+
# Delete every config, flag, logger, log group, context, context type, environment, and customer API key (except the caller's current key) on the account. The `common` config is preserved as a structural anchor but its items are reset. Requires `OWNER` role and a body of `{\"confirm\": true}` — any other value returns 400. Pass `\"generate_sample_data\": true` to re-seed the account with the standard sample dataset after the wipe (best-effort; seeding failures are logged but do not fail the wipe). Returns 204 on success; 500 if any sub-delete fails.
|
|
320
320
|
# @param account_wipe_request [AccountWipeRequest]
|
|
321
321
|
# @param [Hash] opts the optional parameters
|
|
322
322
|
# @return [nil]
|
|
@@ -326,7 +326,7 @@ module SmplkitGeneratedClient::App
|
|
|
326
326
|
end
|
|
327
327
|
|
|
328
328
|
# Wipe Account Data
|
|
329
|
-
# Delete every config, flag, logger, log group, context, context type, environment, and customer API key (except the caller's current key) on the account. The `
|
|
329
|
+
# Delete every config, flag, logger, log group, context, context type, environment, and customer API key (except the caller's current key) on the account. The `common` config is preserved as a structural anchor but its items are reset. Requires `OWNER` role and a body of `{\"confirm\": true}` — any other value returns 400. Pass `\"generate_sample_data\": true` to re-seed the account with the standard sample dataset after the wipe (best-effort; seeding failures are logged but do not fail the wipe). Returns 204 on success; 500 if any sub-delete fails.
|
|
330
330
|
# @param account_wipe_request [AccountWipeRequest]
|
|
331
331
|
# @param [Hash] opts the optional parameters
|
|
332
332
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -21,26 +21,26 @@ module SmplkitGeneratedClient::App
|
|
|
21
21
|
end
|
|
22
22
|
# Create API Key
|
|
23
23
|
# Create a new API key. The id and key value are server-generated.
|
|
24
|
-
# @param
|
|
24
|
+
# @param api_key_request [ApiKeyRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [ApiKeyResponse]
|
|
27
|
-
def create_api_key(
|
|
28
|
-
data, _status_code, _headers = create_api_key_with_http_info(
|
|
27
|
+
def create_api_key(api_key_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_api_key_with_http_info(api_key_request, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create API Key
|
|
33
33
|
# Create a new API key. The id and key value are server-generated.
|
|
34
|
-
# @param
|
|
34
|
+
# @param api_key_request [ApiKeyRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(ApiKeyResponse, Integer, Hash)>] ApiKeyResponse data, response status code and response headers
|
|
37
|
-
def create_api_key_with_http_info(
|
|
37
|
+
def create_api_key_with_http_info(api_key_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: APIKeysApi.create_api_key ...'
|
|
40
40
|
end
|
|
41
|
-
# verify the required parameter '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
41
|
+
# verify the required parameter 'api_key_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && api_key_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'api_key_request' when calling APIKeysApi.create_api_key"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/api/v1/api_keys'
|
|
@@ -62,7 +62,7 @@ module SmplkitGeneratedClient::App
|
|
|
62
62
|
form_params = opts[:form_params] || {}
|
|
63
63
|
|
|
64
64
|
# http body (model)
|
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(api_key_request)
|
|
66
66
|
|
|
67
67
|
# return_type
|
|
68
68
|
return_type = opts[:debug_return_type] || 'ApiKeyResponse'
|
|
@@ -339,21 +339,21 @@ module SmplkitGeneratedClient::App
|
|
|
339
339
|
# Update API Key
|
|
340
340
|
# Update an API key by id.
|
|
341
341
|
# @param id [String]
|
|
342
|
-
# @param
|
|
342
|
+
# @param api_key_request [ApiKeyRequest]
|
|
343
343
|
# @param [Hash] opts the optional parameters
|
|
344
344
|
# @return [ApiKeyResponse]
|
|
345
|
-
def update_api_key(id,
|
|
346
|
-
data, _status_code, _headers = update_api_key_with_http_info(id,
|
|
345
|
+
def update_api_key(id, api_key_request, opts = {})
|
|
346
|
+
data, _status_code, _headers = update_api_key_with_http_info(id, api_key_request, opts)
|
|
347
347
|
data
|
|
348
348
|
end
|
|
349
349
|
|
|
350
350
|
# Update API Key
|
|
351
351
|
# Update an API key by id.
|
|
352
352
|
# @param id [String]
|
|
353
|
-
# @param
|
|
353
|
+
# @param api_key_request [ApiKeyRequest]
|
|
354
354
|
# @param [Hash] opts the optional parameters
|
|
355
355
|
# @return [Array<(ApiKeyResponse, Integer, Hash)>] ApiKeyResponse data, response status code and response headers
|
|
356
|
-
def update_api_key_with_http_info(id,
|
|
356
|
+
def update_api_key_with_http_info(id, api_key_request, opts = {})
|
|
357
357
|
if @api_client.config.debugging
|
|
358
358
|
@api_client.config.logger.debug 'Calling API: APIKeysApi.update_api_key ...'
|
|
359
359
|
end
|
|
@@ -361,9 +361,9 @@ module SmplkitGeneratedClient::App
|
|
|
361
361
|
if @api_client.config.client_side_validation && id.nil?
|
|
362
362
|
fail ArgumentError, "Missing the required parameter 'id' when calling APIKeysApi.update_api_key"
|
|
363
363
|
end
|
|
364
|
-
# verify the required parameter '
|
|
365
|
-
if @api_client.config.client_side_validation &&
|
|
366
|
-
fail ArgumentError, "Missing the required parameter '
|
|
364
|
+
# verify the required parameter 'api_key_request' is set
|
|
365
|
+
if @api_client.config.client_side_validation && api_key_request.nil?
|
|
366
|
+
fail ArgumentError, "Missing the required parameter 'api_key_request' when calling APIKeysApi.update_api_key"
|
|
367
367
|
end
|
|
368
368
|
# resource path
|
|
369
369
|
local_var_path = '/api/v1/api_keys/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -385,7 +385,7 @@ module SmplkitGeneratedClient::App
|
|
|
385
385
|
form_params = opts[:form_params] || {}
|
|
386
386
|
|
|
387
387
|
# http body (model)
|
|
388
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
388
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(api_key_request)
|
|
389
389
|
|
|
390
390
|
# return_type
|
|
391
391
|
return_type = opts[:debug_return_type] || 'ApiKeyResponse'
|
|
@@ -83,7 +83,7 @@ module SmplkitGeneratedClient::App
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
# Add Payment Method
|
|
86
|
-
# Register a Stripe payment method (
|
|
86
|
+
# Register a Stripe payment method (`pm_...`) on the account. The client first creates the Stripe payment method using a SetupIntent and Stripe Elements, then submits its identifier here to persist it.
|
|
87
87
|
# @param add_payment_method_body [AddPaymentMethodBody]
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
|
89
89
|
# @return [PaymentMethodResponse]
|
|
@@ -93,7 +93,7 @@ module SmplkitGeneratedClient::App
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
# Add Payment Method
|
|
96
|
-
# Register a Stripe payment method (`
|
|
96
|
+
# Register a Stripe payment method (`pm_...`) on the account. The client first creates the Stripe payment method using a SetupIntent and Stripe Elements, then submits its identifier here to persist it.
|
|
97
97
|
# @param add_payment_method_body [AddPaymentMethodBody]
|
|
98
98
|
# @param [Hash] opts the optional parameters
|
|
99
99
|
# @return [Array<(PaymentMethodResponse, Integer, Hash)>] PaymentMethodResponse data, response status code and response headers
|
|
@@ -219,7 +219,7 @@ module SmplkitGeneratedClient::App
|
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
# Delete Payment Method
|
|
222
|
-
#
|
|
222
|
+
# Delete a payment method. Returns 409 if this is the only payment method on file and the account has an active paid subscription. If the deleted payment method was the default, the oldest remaining payment method is promoted to default.
|
|
223
223
|
# @param id [String]
|
|
224
224
|
# @param [Hash] opts the optional parameters
|
|
225
225
|
# @return [nil]
|
|
@@ -229,7 +229,7 @@ module SmplkitGeneratedClient::App
|
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
# Delete Payment Method
|
|
232
|
-
#
|
|
232
|
+
# Delete a payment method. Returns 409 if this is the only payment method on file and the account has an active paid subscription. If the deleted payment method was the default, the oldest remaining payment method is promoted to default.
|
|
233
233
|
# @param id [String]
|
|
234
234
|
# @param [Hash] opts the optional parameters
|
|
235
235
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -356,7 +356,7 @@ module SmplkitGeneratedClient::App
|
|
|
356
356
|
end
|
|
357
357
|
|
|
358
358
|
# Execute Setup Intent
|
|
359
|
-
# Create a Stripe SetupIntent for
|
|
359
|
+
# Create a Stripe SetupIntent for adding a payment method without an immediate charge. Returns the `client_secret` to pass to Stripe Elements in the browser.
|
|
360
360
|
# @param [Hash] opts the optional parameters
|
|
361
361
|
# @return [SetupIntentResponse]
|
|
362
362
|
def execute_setup_intent(opts = {})
|
|
@@ -365,7 +365,7 @@ module SmplkitGeneratedClient::App
|
|
|
365
365
|
end
|
|
366
366
|
|
|
367
367
|
# Execute Setup Intent
|
|
368
|
-
# Create a Stripe SetupIntent for
|
|
368
|
+
# Create a Stripe SetupIntent for adding a payment method without an immediate charge. Returns the `client_secret` to pass to Stripe Elements in the browser.
|
|
369
369
|
# @param [Hash] opts the optional parameters
|
|
370
370
|
# @return [Array<(SetupIntentResponse, Integer, Hash)>] SetupIntentResponse data, response status code and response headers
|
|
371
371
|
def execute_setup_intent_with_http_info(opts = {})
|
|
@@ -413,7 +413,7 @@ module SmplkitGeneratedClient::App
|
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
# Get Invoice
|
|
416
|
-
# Return a single invoice by
|
|
416
|
+
# Return a single invoice by id. Supports content negotiation via the `Accept` header: - `application/pdf` — streams the invoice PDF. - `application/vnd.api+json`, `application/json`, or absent — returns the JSON:API invoice resource. - Any other value — `406 Not Acceptable`.
|
|
417
417
|
# @param invoice_id [String]
|
|
418
418
|
# @param [Hash] opts the optional parameters
|
|
419
419
|
# @return [InvoiceSingleResponse]
|
|
@@ -423,7 +423,7 @@ module SmplkitGeneratedClient::App
|
|
|
423
423
|
end
|
|
424
424
|
|
|
425
425
|
# Get Invoice
|
|
426
|
-
# Return a single invoice by
|
|
426
|
+
# Return a single invoice by id. Supports content negotiation via the `Accept` header: - `application/pdf` — streams the invoice PDF. - `application/vnd.api+json`, `application/json`, or absent — returns the JSON:API invoice resource. - Any other value — `406 Not Acceptable`.
|
|
427
427
|
# @param invoice_id [String]
|
|
428
428
|
# @param [Hash] opts the optional parameters
|
|
429
429
|
# @return [Array<(InvoiceSingleResponse, Integer, Hash)>] InvoiceSingleResponse data, response status code and response headers
|
|
@@ -710,7 +710,7 @@ module SmplkitGeneratedClient::App
|
|
|
710
710
|
end
|
|
711
711
|
|
|
712
712
|
# Set Default Payment Method
|
|
713
|
-
# Mark this payment method as the account's default. Idempotent
|
|
713
|
+
# Mark this payment method as the account's default. Idempotent: returns 200 with no changes when the payment method is already the default.
|
|
714
714
|
# @param id [String]
|
|
715
715
|
# @param [Hash] opts the optional parameters
|
|
716
716
|
# @return [PaymentMethodResponse]
|
|
@@ -720,7 +720,7 @@ module SmplkitGeneratedClient::App
|
|
|
720
720
|
end
|
|
721
721
|
|
|
722
722
|
# Set Default Payment Method
|
|
723
|
-
# Mark this payment method as the account's default. Idempotent
|
|
723
|
+
# Mark this payment method as the account's default. Idempotent: returns 200 with no changes when the payment method is already the default.
|
|
724
724
|
# @param id [String]
|
|
725
725
|
# @param [Hash] opts the optional parameters
|
|
726
726
|
# @return [Array<(PaymentMethodResponse, Integer, Hash)>] PaymentMethodResponse data, response status code and response headers
|
|
@@ -899,23 +899,23 @@ module SmplkitGeneratedClient::App
|
|
|
899
899
|
end
|
|
900
900
|
|
|
901
901
|
# Update Payment Method
|
|
902
|
-
# Update the mutable fields (
|
|
902
|
+
# Update the mutable fields of a payment method (`billing_details`, `exp_month`, `exp_year`). The `default` flag is not mutable via PUT — use the `set_default` action instead.
|
|
903
903
|
# @param id [String]
|
|
904
|
-
# @param
|
|
904
|
+
# @param payment_method_request [PaymentMethodRequest]
|
|
905
905
|
# @param [Hash] opts the optional parameters
|
|
906
906
|
# @return [PaymentMethodResponse]
|
|
907
|
-
def update_payment_method(id,
|
|
908
|
-
data, _status_code, _headers = update_payment_method_with_http_info(id,
|
|
907
|
+
def update_payment_method(id, payment_method_request, opts = {})
|
|
908
|
+
data, _status_code, _headers = update_payment_method_with_http_info(id, payment_method_request, opts)
|
|
909
909
|
data
|
|
910
910
|
end
|
|
911
911
|
|
|
912
912
|
# Update Payment Method
|
|
913
|
-
# Update the mutable fields (`
|
|
913
|
+
# Update the mutable fields of a payment method (`billing_details`, `exp_month`, `exp_year`). The `default` flag is not mutable via PUT — use the `set_default` action instead.
|
|
914
914
|
# @param id [String]
|
|
915
|
-
# @param
|
|
915
|
+
# @param payment_method_request [PaymentMethodRequest]
|
|
916
916
|
# @param [Hash] opts the optional parameters
|
|
917
917
|
# @return [Array<(PaymentMethodResponse, Integer, Hash)>] PaymentMethodResponse data, response status code and response headers
|
|
918
|
-
def update_payment_method_with_http_info(id,
|
|
918
|
+
def update_payment_method_with_http_info(id, payment_method_request, opts = {})
|
|
919
919
|
if @api_client.config.debugging
|
|
920
920
|
@api_client.config.logger.debug 'Calling API: BillingApi.update_payment_method ...'
|
|
921
921
|
end
|
|
@@ -923,9 +923,9 @@ module SmplkitGeneratedClient::App
|
|
|
923
923
|
if @api_client.config.client_side_validation && id.nil?
|
|
924
924
|
fail ArgumentError, "Missing the required parameter 'id' when calling BillingApi.update_payment_method"
|
|
925
925
|
end
|
|
926
|
-
# verify the required parameter '
|
|
927
|
-
if @api_client.config.client_side_validation &&
|
|
928
|
-
fail ArgumentError, "Missing the required parameter '
|
|
926
|
+
# verify the required parameter 'payment_method_request' is set
|
|
927
|
+
if @api_client.config.client_side_validation && payment_method_request.nil?
|
|
928
|
+
fail ArgumentError, "Missing the required parameter 'payment_method_request' when calling BillingApi.update_payment_method"
|
|
929
929
|
end
|
|
930
930
|
# resource path
|
|
931
931
|
local_var_path = '/api/v1/payment_methods/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -947,7 +947,7 @@ module SmplkitGeneratedClient::App
|
|
|
947
947
|
form_params = opts[:form_params] || {}
|
|
948
948
|
|
|
949
949
|
# http body (model)
|
|
950
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
950
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_method_request)
|
|
951
951
|
|
|
952
952
|
# return_type
|
|
953
953
|
return_type = opts[:debug_return_type] || 'PaymentMethodResponse'
|
|
@@ -21,26 +21,26 @@ module SmplkitGeneratedClient::App
|
|
|
21
21
|
end
|
|
22
22
|
# Create Context Type
|
|
23
23
|
# Create a new context type. The caller provides the id (key) in the request body.
|
|
24
|
-
# @param
|
|
24
|
+
# @param context_type_request [ContextTypeRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [ContextTypeResponse]
|
|
27
|
-
def create_context_type(
|
|
28
|
-
data, _status_code, _headers = create_context_type_with_http_info(
|
|
27
|
+
def create_context_type(context_type_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_context_type_with_http_info(context_type_request, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create Context Type
|
|
33
33
|
# Create a new context type. The caller provides the id (key) in the request body.
|
|
34
|
-
# @param
|
|
34
|
+
# @param context_type_request [ContextTypeRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(ContextTypeResponse, Integer, Hash)>] ContextTypeResponse data, response status code and response headers
|
|
37
|
-
def create_context_type_with_http_info(
|
|
37
|
+
def create_context_type_with_http_info(context_type_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: ContextTypesApi.create_context_type ...'
|
|
40
40
|
end
|
|
41
|
-
# verify the required parameter '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
41
|
+
# verify the required parameter 'context_type_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && context_type_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'context_type_request' when calling ContextTypesApi.create_context_type"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/api/v1/context_types'
|
|
@@ -62,7 +62,7 @@ module SmplkitGeneratedClient::App
|
|
|
62
62
|
form_params = opts[:form_params] || {}
|
|
63
63
|
|
|
64
64
|
# http body (model)
|
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(context_type_request)
|
|
66
66
|
|
|
67
67
|
# return_type
|
|
68
68
|
return_type = opts[:debug_return_type] || 'ContextTypeResponse'
|
|
@@ -273,21 +273,21 @@ module SmplkitGeneratedClient::App
|
|
|
273
273
|
# Update Context Type
|
|
274
274
|
# Update a context type by id.
|
|
275
275
|
# @param id [String]
|
|
276
|
-
# @param
|
|
276
|
+
# @param context_type_request [ContextTypeRequest]
|
|
277
277
|
# @param [Hash] opts the optional parameters
|
|
278
278
|
# @return [ContextTypeResponse]
|
|
279
|
-
def update_context_type(id,
|
|
280
|
-
data, _status_code, _headers = update_context_type_with_http_info(id,
|
|
279
|
+
def update_context_type(id, context_type_request, opts = {})
|
|
280
|
+
data, _status_code, _headers = update_context_type_with_http_info(id, context_type_request, opts)
|
|
281
281
|
data
|
|
282
282
|
end
|
|
283
283
|
|
|
284
284
|
# Update Context Type
|
|
285
285
|
# Update a context type by id.
|
|
286
286
|
# @param id [String]
|
|
287
|
-
# @param
|
|
287
|
+
# @param context_type_request [ContextTypeRequest]
|
|
288
288
|
# @param [Hash] opts the optional parameters
|
|
289
289
|
# @return [Array<(ContextTypeResponse, Integer, Hash)>] ContextTypeResponse data, response status code and response headers
|
|
290
|
-
def update_context_type_with_http_info(id,
|
|
290
|
+
def update_context_type_with_http_info(id, context_type_request, opts = {})
|
|
291
291
|
if @api_client.config.debugging
|
|
292
292
|
@api_client.config.logger.debug 'Calling API: ContextTypesApi.update_context_type ...'
|
|
293
293
|
end
|
|
@@ -295,9 +295,9 @@ module SmplkitGeneratedClient::App
|
|
|
295
295
|
if @api_client.config.client_side_validation && id.nil?
|
|
296
296
|
fail ArgumentError, "Missing the required parameter 'id' when calling ContextTypesApi.update_context_type"
|
|
297
297
|
end
|
|
298
|
-
# verify the required parameter '
|
|
299
|
-
if @api_client.config.client_side_validation &&
|
|
300
|
-
fail ArgumentError, "Missing the required parameter '
|
|
298
|
+
# verify the required parameter 'context_type_request' is set
|
|
299
|
+
if @api_client.config.client_side_validation && context_type_request.nil?
|
|
300
|
+
fail ArgumentError, "Missing the required parameter 'context_type_request' when calling ContextTypesApi.update_context_type"
|
|
301
301
|
end
|
|
302
302
|
# resource path
|
|
303
303
|
local_var_path = '/api/v1/context_types/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -319,7 +319,7 @@ module SmplkitGeneratedClient::App
|
|
|
319
319
|
form_params = opts[:form_params] || {}
|
|
320
320
|
|
|
321
321
|
# http body (model)
|
|
322
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
322
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(context_type_request)
|
|
323
323
|
|
|
324
324
|
# return_type
|
|
325
325
|
return_type = opts[:debug_return_type] || 'ContextTypeResponse'
|
|
@@ -274,23 +274,23 @@ module SmplkitGeneratedClient::App
|
|
|
274
274
|
end
|
|
275
275
|
|
|
276
276
|
# Update Context
|
|
277
|
-
# Update a context instance by composite id (type:key). Only the human-readable display name is mutable
|
|
277
|
+
# Update a context instance by composite id (type:key). Only the human-readable display name is mutable here; `context_type` and observed `attributes` are written by SDK registration and ignored on this endpoint.
|
|
278
278
|
# @param id [String]
|
|
279
|
-
# @param
|
|
279
|
+
# @param context_request [ContextRequest]
|
|
280
280
|
# @param [Hash] opts the optional parameters
|
|
281
281
|
# @return [ContextResponse]
|
|
282
|
-
def update_context(id,
|
|
283
|
-
data, _status_code, _headers = update_context_with_http_info(id,
|
|
282
|
+
def update_context(id, context_request, opts = {})
|
|
283
|
+
data, _status_code, _headers = update_context_with_http_info(id, context_request, opts)
|
|
284
284
|
data
|
|
285
285
|
end
|
|
286
286
|
|
|
287
287
|
# Update Context
|
|
288
|
-
# Update a context instance by composite id (type:key). Only the human-readable display name is mutable
|
|
288
|
+
# Update a context instance by composite id (type:key). Only the human-readable display name is mutable here; `context_type` and observed `attributes` are written by SDK registration and ignored on this endpoint.
|
|
289
289
|
# @param id [String]
|
|
290
|
-
# @param
|
|
290
|
+
# @param context_request [ContextRequest]
|
|
291
291
|
# @param [Hash] opts the optional parameters
|
|
292
292
|
# @return [Array<(ContextResponse, Integer, Hash)>] ContextResponse data, response status code and response headers
|
|
293
|
-
def update_context_with_http_info(id,
|
|
293
|
+
def update_context_with_http_info(id, context_request, opts = {})
|
|
294
294
|
if @api_client.config.debugging
|
|
295
295
|
@api_client.config.logger.debug 'Calling API: ContextsApi.update_context ...'
|
|
296
296
|
end
|
|
@@ -298,9 +298,9 @@ module SmplkitGeneratedClient::App
|
|
|
298
298
|
if @api_client.config.client_side_validation && id.nil?
|
|
299
299
|
fail ArgumentError, "Missing the required parameter 'id' when calling ContextsApi.update_context"
|
|
300
300
|
end
|
|
301
|
-
# verify the required parameter '
|
|
302
|
-
if @api_client.config.client_side_validation &&
|
|
303
|
-
fail ArgumentError, "Missing the required parameter '
|
|
301
|
+
# verify the required parameter 'context_request' is set
|
|
302
|
+
if @api_client.config.client_side_validation && context_request.nil?
|
|
303
|
+
fail ArgumentError, "Missing the required parameter 'context_request' when calling ContextsApi.update_context"
|
|
304
304
|
end
|
|
305
305
|
# resource path
|
|
306
306
|
local_var_path = '/api/v1/contexts/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -322,7 +322,7 @@ module SmplkitGeneratedClient::App
|
|
|
322
322
|
form_params = opts[:form_params] || {}
|
|
323
323
|
|
|
324
324
|
# http body (model)
|
|
325
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
325
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(context_request)
|
|
326
326
|
|
|
327
327
|
# return_type
|
|
328
328
|
return_type = opts[:debug_return_type] || 'ContextResponse'
|
|
@@ -21,26 +21,26 @@ module SmplkitGeneratedClient::App
|
|
|
21
21
|
end
|
|
22
22
|
# Create Environment
|
|
23
23
|
# Create a new environment. The caller provides the id (key) in the request body.
|
|
24
|
-
# @param
|
|
24
|
+
# @param environment_request [EnvironmentRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [EnvironmentResponse]
|
|
27
|
-
def create_environment(
|
|
28
|
-
data, _status_code, _headers = create_environment_with_http_info(
|
|
27
|
+
def create_environment(environment_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_environment_with_http_info(environment_request, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create Environment
|
|
33
33
|
# Create a new environment. The caller provides the id (key) in the request body.
|
|
34
|
-
# @param
|
|
34
|
+
# @param environment_request [EnvironmentRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(EnvironmentResponse, Integer, Hash)>] EnvironmentResponse data, response status code and response headers
|
|
37
|
-
def create_environment_with_http_info(
|
|
37
|
+
def create_environment_with_http_info(environment_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: EnvironmentsApi.create_environment ...'
|
|
40
40
|
end
|
|
41
|
-
# verify the required parameter '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
41
|
+
# verify the required parameter 'environment_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && environment_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'environment_request' when calling EnvironmentsApi.create_environment"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/api/v1/environments'
|
|
@@ -62,7 +62,7 @@ module SmplkitGeneratedClient::App
|
|
|
62
62
|
form_params = opts[:form_params] || {}
|
|
63
63
|
|
|
64
64
|
# http body (model)
|
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(environment_request)
|
|
66
66
|
|
|
67
67
|
# return_type
|
|
68
68
|
return_type = opts[:debug_return_type] || 'EnvironmentResponse'
|
|
@@ -273,21 +273,21 @@ module SmplkitGeneratedClient::App
|
|
|
273
273
|
# Update Environment
|
|
274
274
|
# Update an environment by id.
|
|
275
275
|
# @param id [String]
|
|
276
|
-
# @param
|
|
276
|
+
# @param environment_request [EnvironmentRequest]
|
|
277
277
|
# @param [Hash] opts the optional parameters
|
|
278
278
|
# @return [EnvironmentResponse]
|
|
279
|
-
def update_environment(id,
|
|
280
|
-
data, _status_code, _headers = update_environment_with_http_info(id,
|
|
279
|
+
def update_environment(id, environment_request, opts = {})
|
|
280
|
+
data, _status_code, _headers = update_environment_with_http_info(id, environment_request, opts)
|
|
281
281
|
data
|
|
282
282
|
end
|
|
283
283
|
|
|
284
284
|
# Update Environment
|
|
285
285
|
# Update an environment by id.
|
|
286
286
|
# @param id [String]
|
|
287
|
-
# @param
|
|
287
|
+
# @param environment_request [EnvironmentRequest]
|
|
288
288
|
# @param [Hash] opts the optional parameters
|
|
289
289
|
# @return [Array<(EnvironmentResponse, Integer, Hash)>] EnvironmentResponse data, response status code and response headers
|
|
290
|
-
def update_environment_with_http_info(id,
|
|
290
|
+
def update_environment_with_http_info(id, environment_request, opts = {})
|
|
291
291
|
if @api_client.config.debugging
|
|
292
292
|
@api_client.config.logger.debug 'Calling API: EnvironmentsApi.update_environment ...'
|
|
293
293
|
end
|
|
@@ -295,9 +295,9 @@ module SmplkitGeneratedClient::App
|
|
|
295
295
|
if @api_client.config.client_side_validation && id.nil?
|
|
296
296
|
fail ArgumentError, "Missing the required parameter 'id' when calling EnvironmentsApi.update_environment"
|
|
297
297
|
end
|
|
298
|
-
# verify the required parameter '
|
|
299
|
-
if @api_client.config.client_side_validation &&
|
|
300
|
-
fail ArgumentError, "Missing the required parameter '
|
|
298
|
+
# verify the required parameter 'environment_request' is set
|
|
299
|
+
if @api_client.config.client_side_validation && environment_request.nil?
|
|
300
|
+
fail ArgumentError, "Missing the required parameter 'environment_request' when calling EnvironmentsApi.update_environment"
|
|
301
301
|
end
|
|
302
302
|
# resource path
|
|
303
303
|
local_var_path = '/api/v1/environments/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -319,7 +319,7 @@ module SmplkitGeneratedClient::App
|
|
|
319
319
|
form_params = opts[:form_params] || {}
|
|
320
320
|
|
|
321
321
|
# http body (model)
|
|
322
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
322
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(environment_request)
|
|
323
323
|
|
|
324
324
|
# return_type
|
|
325
325
|
return_type = opts[:debug_return_type] || 'EnvironmentResponse'
|
|
@@ -88,7 +88,7 @@ module SmplkitGeneratedClient::App
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# List Metric Names
|
|
91
|
-
# Return distinct metric names
|
|
91
|
+
# Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource.
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
|
93
93
|
# @return [MetricNamesResponse]
|
|
94
94
|
def list_metric_names(opts = {})
|
|
@@ -97,7 +97,7 @@ module SmplkitGeneratedClient::App
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# List Metric Names
|
|
100
|
-
# Return distinct metric names
|
|
100
|
+
# Return distinct metric names recorded for the account, each with a representative unit. Plain-JSON response (not JSON:API) — this is metadata for discovery, not a metric resource.
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
|
102
102
|
# @return [Array<(MetricNamesResponse, Integer, Hash)>] MetricNamesResponse data, response status code and response headers
|
|
103
103
|
def list_metric_names_with_http_info(opts = {})
|