Class: Stripe::Apps::SecretService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Apps::SecretService
- Defined in:
- lib/stripe/services/apps/secret_service.rb
Defined Under Namespace
Classes: CreateParams, DeleteWhereParams, FindParams, ListParams
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.
124 125 126 127 128 129 130 131 132 |
# File 'lib/stripe/services/apps/secret_service.rb', line 124 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.
135 136 137 138 139 140 141 142 143 |
# File 'lib/stripe/services/apps/secret_service.rb', line 135 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.
146 147 148 149 150 151 152 153 154 |
# File 'lib/stripe/services/apps/secret_service.rb', line 146 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.
157 158 159 160 161 162 163 164 165 |
# File 'lib/stripe/services/apps/secret_service.rb', line 157 def list(params = {}, opts = {}) request( method: :get, path: "/v1/apps/secrets", params: params, opts: opts, base_address: :api ) end |