public function tuneMount($name, array $body = [])
    {
        if (empty($body)) {
            return $this->client->get('/v1/sys/mounts/' . $name . '/tune');
        }

        $params = [
            'body' => json_encode(OptionsResolver::resolve($body, ['default_lease_ttl', 'max_lease_ttl']))
        ];

        return $this->client->post('/v1/sys/mounts/' . $name . '/tune', $params);
    }
public function tuneMount($name, array $body = [])
    {
        if (empty($body)) {
            return $this->client->get('/v1/sys/mounts/' . $name . '/tune');
        }

        $params = [
            'body' => json_encode(OptionsResolver::resolve($body, ['default_lease_ttl', 'max_lease_ttl']))
        ];

        return $this->client->post('/v1/sys/mounts/' . $name . '/tune', $params);
    }
public function tuneMount ( $ name , array $ body = [ ] ) { if ( empty ( $ body ) ) { return $ this -> client -> get ( '/v1/sys/mounts/' . $ name . '/tune' ) ; } $ params = [ 'body' => json_encode ( OptionsResolver :: resolve ( $ body , [ 'default_lease_ttl' , 'max_lease_ttl' ] ) ) ] ; return $ this -> client -> post ( '/v1/sys/mounts/' . $ name . '/tune' , $ params ) ; }
List or change the given mount's configuration.

if `$body` is not empty, a POST to update a mount tune is assumed.

Unlike the mounts endpoint, this will return the current time in seconds for each TTL,
which may be the system default or a mount-specific value.

@param  string $name
@param  array  $body
@return mixed
List or change the given mount s configuration .