Skip to content

Commit

Permalink
Inventory setting and get and the unit test of inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzong18 committed Jan 25, 2022
1 parent 4ccead6 commit 813a52a
Show file tree
Hide file tree
Showing 15 changed files with 1,370 additions and 6 deletions.
45 changes: 45 additions & 0 deletions src/OSS/Model/BucketReplicationLocation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

namespace OSS\Model;

/**
* Class BucketReplicationLocation
* @package OSS\Model
* @link https://help.aliyun.com/document_detail/181410.htm
*/
class BucketReplicationLocation
{

private $locations = "";
private $locationTransferTypes = "";

/**
* BucketReplicationLocationInfo constructor.
*
* @param array $locations
* @param array $locationTransferTypes
*/
public function __construct($locations,$locationTransferTypes)
{
$this->locations = $locations;
$this->locationTransferTypes = $locationTransferTypes;
}


/**
* @return array
*/
public function getLocations(){
return $this->locations;
}

/**
* @return array
*/
public function getLocationTransferTypes(){
return $this->locationTransferTypes;
}

}


95 changes: 95 additions & 0 deletions src/OSS/Model/BucketReplicationProgress.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?php

namespace OSS\Model;

/**
* Class BucketReplicationProgress
* @package OSS\Model
* @link https://help.aliyun.com/document_detail/181411.htm
*/
class BucketReplicationProgress
{

private $id = "";
private $prefixSet = array();
private $action = "";
private $destination = array();
private $status = "";
private $historicalObjectReplication = '';
private $progress = '';

/**
* BucketReplicationProgressInfo constructor.
* @param string $id
* @param array $prefixSet
* @param string $action
* @param array $destination
* @param status $status
* @param array $historicalObjectReplication
* @param string $progress
*/
public function __construct($id,$prefixSet,$action,$destination,$status,$historicalObjectReplication,$progress)
{
$this->id = $id;
$this->prefixSet = $prefixSet;
$this->destination = $destination;
$this->action = $action;
$this->status = $status;
$this->historicalObjectReplication = $historicalObjectReplication;
$this->progress = $progress;
}

/**
* @return string
*/
public function getId(){
return $this->id;
}

/**
* @return array
*/
public function getPrefixSet(){
return $this->prefixSet;
}


/**
* @return string
*/
public function getAction(){
return $this->action;
}

/**
* @return array
*/
public function getDestination(){
return $this->destination;
}

/**
* @return string
*/
public function getStatus(){
return $this->status;
}

/**
* @return string
*/
public function getHistoricalObjectReplication(){
return $this->historicalObjectReplication;
}


/**
* @return array
*/
public function getProgress(){
return $this->progress;
}

}


Loading

0 comments on commit 813a52a

Please sign in to comment.