diff --git a/src/Traits/Soap/SoapGuestApis.php b/src/Traits/Soap/SoapGuestApis.php index 7443bf1..cd43d62 100644 --- a/src/Traits/Soap/SoapGuestApis.php +++ b/src/Traits/Soap/SoapGuestApis.php @@ -306,8 +306,8 @@ public function getListProcessInGuest( ) { $body = [ '_this' => [ - 'type' => 'GuestFileManager', - '_' => 'guestOperationsFileManager', + 'type' => 'GuestProcessManager', + '_' => 'guestOperationsProcessManager', ], 'vm' => [ 'type' => 'VirtualMachine', diff --git a/src/Traits/Soap/SoapStorageApis.php b/src/Traits/Soap/SoapStorageApis.php index 0e91a57..d45990d 100644 --- a/src/Traits/Soap/SoapStorageApis.php +++ b/src/Traits/Soap/SoapStorageApis.php @@ -64,6 +64,7 @@ public function createVStorage(string $name, int $capacityInMB, string $datastor 'type' => 'Datastore', '_' => $datastore, ], + 'provisioningType' => 'thin', ]), 'capacityInMB' => $capacityInMB, ], diff --git a/src/Transform/SoapTransform.php b/src/Transform/SoapTransform.php index 28eb1d6..fa45524 100644 --- a/src/Transform/SoapTransform.php +++ b/src/Transform/SoapTransform.php @@ -66,8 +66,6 @@ public function arrayToSoapVar(array $array): array $data[] = new SoapVar($this->arrayToSoapVar($childItem), SOAP_ENC_OBJECT, $typeName, null, $key); } - // unset($array[$key]); - $deepArraySet = true; } @@ -111,6 +109,7 @@ public function transformToArrayValues(stdClass $object, int $startIndex = 0, ?i ['layoutEx', 'snapshot'], ['layoutEx', 'snapshot', 'disk'], ['layoutEx', 'snapshot', 'disk', 'chain'], + ['layoutEx', 'snapshot', 'disk', 'chain', 'fileKey'], ['snapshot', 'rootSnapshotList'], ['snapshot', 'rootSnapshotList', 'childSnapshotList'], ]; diff --git a/src/VmWareClientInit.php b/src/VmWareClientInit.php index 8cd6cbd..ee56b56 100755 --- a/src/VmWareClientInit.php +++ b/src/VmWareClientInit.php @@ -86,7 +86,7 @@ private function createRestSession(): void $apiSessionId = $apiSessionId->value; } - Cache::add("vcenter-rest-session-$this->ip", [ + Cache::put("vcenter-rest-session-$this->ip", [ 'api_session_id' => $apiSessionId, 'expired_at' => Carbon::now()->addSeconds(config('vmware-php-client.session_ttl') * 60 - 30), ]); @@ -184,7 +184,7 @@ private function createSoapSession(): void $this->soapClient->__setCookie('vmware_soap_session', $soapSessionToken); } - Cache::add("vcenter-soap-session-$this->ip", [ + Cache::put("vcenter-soap-session-$this->ip", [ 'vmware_soap_session' => $soapSessionToken, 'expired_at' => Carbon::now()->addSeconds(config('vmware-php-client.session_ttl') * 60 - 30), ]);