Class: Telnyx::Resources::Storage::Cloudfs::Actions
- Inherits:
-
Object
- Object
- Telnyx::Resources::Storage::Cloudfs::Actions
- Defined in:
- lib/telnyx/resources/storage/cloudfs/actions.rb,
sig/telnyx/resources/storage/cloudfs/actions.rbs
Overview
Manage CloudFS filesystems — JuiceFS-compatible filesystems backed by Telnyx Cloud Storage
Instance Method Summary collapse
-
#initialize(client:) ⇒ Actions
constructor
private
A new instance of Actions.
-
#rotate_meta_token(id, idempotency_key:, request_options: {}) ⇒ Telnyx::Models::Storage::CloudfsFilesystemResponseWrapper
Some parameter documentations has been truncated, see Models::Storage::Cloudfs::ActionRotateMetaTokenParams for more details.
Constructor Details
#initialize(client:) ⇒ Actions
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 Actions.
47 48 49 |
# File 'lib/telnyx/resources/storage/cloudfs/actions.rb', line 47 def initialize(client:) @client = client end |
Instance Method Details
#rotate_meta_token(id, idempotency_key:, request_options: {}) ⇒ Telnyx::Models::Storage::CloudfsFilesystemResponseWrapper
Some parameter documentations has been truncated, see Models::Storage::Cloudfs::ActionRotateMetaTokenParams for more details.
Issues a new metadata access token for the filesystem and returns the full
filesystem, including the new meta_token and credential-bearing meta_url.
The previous token stops authenticating immediately; the metadata database and
S3 bucket are unchanged. The request takes no body. Allowed while the filesystem
is ready or needs_format; otherwise returns a 409. Retrying with the same
Idempotency-Key within 24 hours replays the original response — including the
same token — instead of rotating again.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/telnyx/resources/storage/cloudfs/actions.rb', line 33 def (id, params) parsed, = Telnyx::Storage::Cloudfs::ActionRotateMetaTokenParams.dump_request(params) @client.request( method: :post, path: ["storage/cloudfs/%1$s/actions/rotate-meta-token", id], headers: parsed.transform_keys(idempotency_key: "idempotency-key"), model: Telnyx::Storage::CloudfsFilesystemResponseWrapper, options: ) end |