Skip to content

Commit

Permalink
update wrapper to version 6.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bohze committed Apr 5, 2023
1 parent 7ea7cd8 commit bfd269d
Show file tree
Hide file tree
Showing 348 changed files with 1,852 additions and 478 deletions.
4 changes: 4 additions & 0 deletions AccelerationDashboard/SummaryCharts.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

This comment has been minimized.

Copy link
@zba

zba Aug 5, 2023

I impressed how you guys do this at least 9 years, :) why not refactor this to some incremenetal version router in initFields method ? :)


parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions AccelerationDashboard/SummaryMetrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}


Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/Backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/DatabaseUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/EmailAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/Ftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions ApplicationServer/SystemApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Approval.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
16 changes: 10 additions & 6 deletions Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}


Expand Down Expand Up @@ -251,17 +255,17 @@ function getListUnassigned() {
return $result;
}
}

public function assetsAddHypervisors(){

$this->sendPost( ONAPP_GETRESOURCE_ASSETS_EDIT_HYPERVISORS, $this->getData() );
}

public function assetsEditHypervisors(){

$this->sendPut( ONAPP_GETRESOURCE_ASSETS_EDIT_HYPERVISORS, $this->getData() );
}

private function getData(){
$data = array(
'root' => 'hypervisor'
Expand All @@ -272,7 +276,7 @@ private function getData(){
$data['data'][$key] = $this->$property;
}
}

return $data;
}

Expand Down
4 changes: 4 additions & 0 deletions AutobackupPresets.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Availability.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Availability/CommunicationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Availability/CommunicationRing.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Availability/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Availability/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Availability/Subsystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions Availability/Subsystem/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions BackgroundTaskDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions BackupServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions BackupServerZone.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
16 changes: 10 additions & 6 deletions BillingBucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function initFields( $version = null, $className = '' ) {
'associated_with_users' => array(
ONAPP_FIELD_MAP => '_associated_with_users',
ONAPP_FIELD_TYPE => 'integer',
),
),
);
break;

Expand Down Expand Up @@ -145,15 +145,19 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}
parent::initFields( $version, __CLASS__ );

return $this->fields;
}

function getResource( $action = ONAPP_GETRESOURCE_DEFAULT ) {
switch ( $action ) {

case ONAPP_BILLINGBACKET_CLONE:
/**
* ROUTE :
Expand All @@ -165,7 +169,7 @@ function getResource( $action = ONAPP_GETRESOURCE_DEFAULT ) {
*/
$resource = $this->_resource . '/' . $this->_id . '/' . ONAPP_BILLINGBACKET_CLONE;
break;

default:
/**
* ROUTE :
Expand Down Expand Up @@ -212,7 +216,7 @@ function getResource( $action = ONAPP_GETRESOURCE_DEFAULT ) {

return $resource;
}

public function bucketClone($id){
if ( ! is_null( $id ) ) {
$this->_id = $id;
Expand All @@ -225,5 +229,5 @@ public function bucketClone($id){
}
$this->sendPost( ONAPP_BILLINGBACKET_CLONE );
}

}
4 changes: 4 additions & 0 deletions BillingCompany.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions BillingCompany/BaseResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
4 changes: 4 additions & 0 deletions BillingCompany/BaseResource/Limit.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ public function initFields( $version = null, $className = '' ) {
case 6.7:
$this->fields = $this->initFields( 6.6 );
break;

default:
$this->fields = $this->initFields( 6.7 );
break;
}

parent::initFields( $version, __CLASS__ );
Expand Down
Loading

0 comments on commit bfd269d

Please sign in to comment.