Class: Telnyx::Resources::CustomStorageCredentials
- Inherits:
-
Object
- Object
- Telnyx::Resources::CustomStorageCredentials
- Defined in:
- lib/telnyx/resources/custom_storage_credentials.rb
Overview
Call Recordings operations.
Instance Method Summary collapse
-
#create(connection_id, backend:, configuration:, request_options: {}) ⇒ Telnyx::Models::CustomStorageCredentialCreateResponse
Some parameter documentations has been truncated, see Models::CustomStorageCredentialCreateParams for more details.
-
#delete(connection_id, request_options: {}) ⇒ nil
Some parameter documentations has been truncated, see Models::CustomStorageCredentialDeleteParams for more details.
-
#initialize(client:) ⇒ CustomStorageCredentials
constructor
private
A new instance of CustomStorageCredentials.
-
#retrieve(connection_id, request_options: {}) ⇒ Telnyx::Models::CustomStorageCredentialRetrieveResponse
Some parameter documentations has been truncated, see Models::CustomStorageCredentialRetrieveParams for more details.
-
#update(connection_id, backend:, configuration:, request_options: {}) ⇒ Telnyx::Models::CustomStorageCredentialUpdateResponse
Some parameter documentations has been truncated, see Models::CustomStorageCredentialUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ CustomStorageCredentials
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CustomStorageCredentials.
114 115 116 |
# File 'lib/telnyx/resources/custom_storage_credentials.rb', line 114 def initialize(client:) @client = client end |
Instance Method Details
#create(connection_id, backend:, configuration:, request_options: {}) ⇒ Telnyx::Models::CustomStorageCredentialCreateResponse
Some parameter documentations has been truncated, see Models::CustomStorageCredentialCreateParams for more details.
Creates a custom storage credentials configuration.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/telnyx/resources/custom_storage_credentials.rb', line 25 def create(connection_id, params) parsed, = Telnyx::CustomStorageCredentialCreateParams.dump_request(params) @client.request( method: :post, path: ["custom_storage_credentials/%1$s", connection_id], body: parsed, model: Telnyx::Models::CustomStorageCredentialCreateResponse, options: ) end |
#delete(connection_id, request_options: {}) ⇒ nil
Some parameter documentations has been truncated, see Models::CustomStorageCredentialDeleteParams for more details.
Deletes a stored custom credentials configuration.
102 103 104 105 106 107 108 109 |
# File 'lib/telnyx/resources/custom_storage_credentials.rb', line 102 def delete(connection_id, params = {}) @client.request( method: :delete, path: ["custom_storage_credentials/%1$s", connection_id], model: NilClass, options: params[:request_options] ) end |
#retrieve(connection_id, request_options: {}) ⇒ Telnyx::Models::CustomStorageCredentialRetrieveResponse
Some parameter documentations has been truncated, see Models::CustomStorageCredentialRetrieveParams for more details.
Returns the information about custom storage credentials.
50 51 52 53 54 55 56 57 |
# File 'lib/telnyx/resources/custom_storage_credentials.rb', line 50 def retrieve(connection_id, params = {}) @client.request( method: :get, path: ["custom_storage_credentials/%1$s", connection_id], model: Telnyx::Models::CustomStorageCredentialRetrieveResponse, options: params[:request_options] ) end |
#update(connection_id, backend:, configuration:, request_options: {}) ⇒ Telnyx::Models::CustomStorageCredentialUpdateResponse
Some parameter documentations has been truncated, see Models::CustomStorageCredentialUpdateParams for more details.
Updates a stored custom credentials configuration.
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/telnyx/resources/custom_storage_credentials.rb', line 77 def update(connection_id, params) parsed, = Telnyx::CustomStorageCredentialUpdateParams.dump_request(params) @client.request( method: :put, path: ["custom_storage_credentials/%1$s", connection_id], body: parsed, model: Telnyx::Models::CustomStorageCredentialUpdateResponse, options: ) end |