update rm deadcode

This commit is contained in:
baodev0
2026-09-27 11:42:40 +07:00
parent 82a71244ca
commit 3af59bd9c5
129 changed files with 5194 additions and 2698 deletions
@@ -3,6 +3,7 @@
namespace App\Http\Services\vCenter;
use Illuminate\Support\Facades\Http;
use App\Support\TlsHttpClientFactory;
use Illuminate\Support\Facades\Log;
class ResourceService
@@ -17,7 +18,7 @@ class ResourceService
public function getAllDatacenter()
{
if ($this->client->checkApiExits()) {
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withHeaders([
'vmware-api-session-id' => $this->client->token
])
@@ -34,7 +35,7 @@ class ResourceService
public function getAllHost($datacenter = '')
{
if ($this->client->checkApiExits()) {
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withHeaders([
'vmware-api-session-id' => $this->client->token
])
@@ -53,7 +54,7 @@ class ResourceService
public function getAllFolder($datacenter = '')
{
if ($this->client->checkApiExits()) {
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withHeaders([
'vmware-api-session-id' => $this->client->token
])
@@ -80,7 +81,7 @@ class ResourceService
$params['filter.datacenters'] = $datacenter;
}
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withHeaders([
'vmware-api-session-id' => $this->client->token
])
@@ -115,7 +116,7 @@ class ResourceService
$params['filter.datacenters'] = $datacenter;
}
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withHeaders([
'vmware-api-session-id' => $this->client->token
])
@@ -171,7 +172,7 @@ class ResourceService
$params['filter.datacenters'] = $datacenter;
}
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withHeaders([
'vmware-api-session-id' => $this->client->token
])