-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inventory setting and get and the unit test of inventory
- Loading branch information
1 parent
4ccead6
commit 813a52a
Showing
15 changed files
with
1,370 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} | ||
|
||
|
Oops, something went wrong.