Class: Stripe::Apps::SecretService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Apps::SecretService
- Defined in:
- lib/stripe/services/apps/secret_service.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Create or replace a secret in the secret store.
-
#delete_where(params = {}, opts = {}) ⇒ Object
Deletes a secret from the secret store by name and scope.
-
#find(params = {}, opts = {}) ⇒ Object
Finds a secret in the secret store by name and scope.
-
#list(params = {}, opts = {}) ⇒ Object
List all secrets stored on the given scope.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#create(params = {}, opts = {}) ⇒ Object
Create or replace a secret in the secret store.
8 9 10 11 12 13 14 15 16 |
# File 'lib/stripe/services/apps/secret_service.rb', line 8 def create(params = {}, opts = {}) request( method: :post, path: "/v1/apps/secrets", params: params, opts: opts, base_address: :api ) end |
#delete_where(params = {}, opts = {}) ⇒ Object
Deletes a secret from the secret store by name and scope.
19 20 21 22 23 24 25 26 27 |
# File 'lib/stripe/services/apps/secret_service.rb', line 19 def delete_where(params = {}, opts = {}) request( method: :post, path: "/v1/apps/secrets/delete", params: params, opts: opts, base_address: :api ) end |
#find(params = {}, opts = {}) ⇒ Object
Finds a secret in the secret store by name and scope.
30 31 32 33 34 35 36 37 38 |
# File 'lib/stripe/services/apps/secret_service.rb', line 30 def find(params = {}, opts = {}) request( method: :get, path: "/v1/apps/secrets/find", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List all secrets stored on the given scope.
41 42 43 44 45 46 47 48 49 |
# File 'lib/stripe/services/apps/secret_service.rb', line 41 def list(params = {}, opts = {}) request( method: :get, path: "/v1/apps/secrets", params: params, opts: opts, base_address: :api ) end |