username = $attributes[ 'username' ]; $this->password = $attributes[ 'password' ]; $this->cvmAddress = $attributes[ 'cvmAddress' ]; $this->cvmPort = isset( $attributes[ 'cvmPort' ] ) ? $attributes[ 'cvmPort' ] : '9440'; $this->topLevelStatsPath = isset( $attributes[ 'topLevelPath' ] ) ? $attributes[ 'topLevelPath' ] : 'PrismGateway/services/rest/v1' ; $this->topLevelPath = isset( $attributes[ 'topLevelPath' ] ) ? $attributes[ 'topLevelPath' ] : 'api/nutanix/v2.0' ; $this->connectionTimeout = isset( $attributes[ 'connectionTimeout' ] ) ? $attributes[ 'connectionTimeout' ] : 5; $this->method = isset( $attributes[ 'method' ] ) ? $attributes[ 'method' ] : 'GET'; $this->objectPath = $attributes[ 'objectPath' ] != null ? $attributes[ 'objectPath' ] : null; $this->objectId = isset( $attributes[ 'objectId' ] ) ? $attributes[ 'objectId' ] : null; $this->objectSubPath = isset( $attributes[ 'objectSubPath' ] ) ? $attributes[ 'objectSubPath' ] : null; $this->metric = isset( $attributes[ 'metric' ] ) ? $attributes[ 'metric' ] : null; $this->startTime = isset( $attributes[ 'startTime' ] ) ? $attributes[ 'startTime' ] : null; $this->endTime = isset( $attributes[ 'endTime' ] ) ? $attributes[ 'endTime' ] : null; $this->interval = isset( $attributes[ 'interval' ] ) ? $attributes[ 'interval' ] : null; } }