code
stringlengths
17
247k
docstring
stringlengths
30
30.3k
func_name
stringlengths
1
89
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
153
url
stringlengths
51
209
license
stringclasses
4 values
public function getTeamwork() { if (array_key_exists("teamwork", $this->_propDict)) { if (is_a($this->_propDict["teamwork"], "\Beta\Microsoft\Graph\Model\UserTeamwork") || is_null($this->_propDict["teamwork"])) { return $this->_propDict["teamwork"]; } else { $this->_propDict["teamwork"] = new UserTeamwork($this->_propDict["teamwork"]); return $this->_propDict["teamwork"]; } } return null; }
Gets the teamwork A container for Microsoft Teams features available for the user. Read-only. Nullable. @return UserTeamwork|null The teamwork
getTeamwork
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/User.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/User.php
MIT
public function setTeamwork($val) { $this->_propDict["teamwork"] = $val; return $this; }
Sets the teamwork A container for Microsoft Teams features available for the user. Read-only. Nullable. @param UserTeamwork $val The teamwork @return User
setTeamwork
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/User.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/User.php
MIT
public function getDestinationPrefix() { if (array_key_exists("destinationPrefix", $this->_propDict)) { return $this->_propDict["destinationPrefix"]; } else { return null; } }
Gets the destinationPrefix Destination prefix (IPv4/v6 address). @return string|null The destinationPrefix
getDestinationPrefix
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
MIT
public function setDestinationPrefix($val) { $this->_propDict["destinationPrefix"] = $val; return $this; }
Sets the destinationPrefix Destination prefix (IPv4/v6 address). @param string $val The value of the destinationPrefix @return VpnRoute
setDestinationPrefix
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
MIT
public function getPrefixSize() { if (array_key_exists("prefixSize", $this->_propDict)) { return $this->_propDict["prefixSize"]; } else { return null; } }
Gets the prefixSize Prefix size. (1-32). Valid values 1 to 32 @return int|null The prefixSize
getPrefixSize
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
MIT
public function setPrefixSize($val) { $this->_propDict["prefixSize"] = $val; return $this; }
Sets the prefixSize Prefix size. (1-32). Valid values 1 to 32 @param int $val The value of the prefixSize @return VpnRoute
setPrefixSize
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/VpnRoute.php
MIT
public function listBuckets($options = NULL) { if ($this->hostType === self::OSS_HOST_TYPE_CNAME) { throw new OssException("operation is not permitted with CName host"); } $this->precheckOptions($options); $options[self::OSS_BUCKET] = ''; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $response = $this->auth($options); $result = new ListBucketsResult($response); return $result->getData(); }
Lists the Bucket [GetService]. Not applicable if the endpoint is CName (because CName must be binded to a specific bucket). @param array $options @throws OssException @return BucketListInfo
listBuckets
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function createBucket($bucket, $acl = self::OSS_ACL_TYPE_PRIVATE, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_HEADERS] = array(self::OSS_ACL => $acl); if (isset($options[self::OSS_STORAGE])) { $this->precheckStorage($options[self::OSS_STORAGE]); $options[self::OSS_CONTENT] = OssUtil::createBucketXmlBody($options[self::OSS_STORAGE]); unset($options[self::OSS_STORAGE]); } $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Creates bucket,The ACL of the bucket created by default is OssClient::OSS_ACL_TYPE_PRIVATE @param string $bucket @param string $acl @param array $options @param string $storageType @return null
createBucket
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function deleteBucket($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_DELETE; $options[self::OSS_OBJECT] = '/'; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Deletes bucket The deletion will not succeed if the bucket is not empty (either has objects or parts) To delete a bucket, all its objects and parts must be deleted first. @param string $bucket @param array $options @return null
deleteBucket
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketLocation($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'location'; $response = $this->auth($options); $result = new GetLocationResult($response); return $result->getData(); }
Get the data center location information for the bucket @param string $bucket @param array $options @throws OssException @return string
getBucketLocation
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketMeta($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_HEAD; $options[self::OSS_OBJECT] = '/'; $response = $this->auth($options); $result = new HeaderResult($response); return $result->getData(); }
Get the Meta information for the Bucket @param string $bucket @param array $options Refer to the SDK documentation @return array
getBucketMeta
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketLogging($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'logging'; $response = $this->auth($options); $result = new GetLoggingResult($response); return $result->getData(); }
Gets the bucket logging config @param string $bucket bucket name @param array $options by default is empty @throws OssException @return LoggingConfig
getBucketLogging
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketLogging($bucket, $targetBucket, $targetPrefix, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $this->precheckBucket($targetBucket, 'targetbucket is not allowed empty'); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'logging'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $loggingConfig = new LoggingConfig($targetBucket, $targetPrefix); $options[self::OSS_CONTENT] = $loggingConfig->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Sets the bycket logging config. Only owner can call this API. @param string $bucket bucket name @param string $targetBucket The logging file's bucket @param string $targetPrefix The logging file's prefix @param array $options By default is empty. @throws OssException @return null
putBucketLogging
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function deleteBucketLogging($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_DELETE; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'logging'; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Deletes the bucket logging config @param string $bucket bucket name @param array $options @throws OssException @return null
deleteBucketLogging
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketWebsite($bucket, $websiteConfig, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'website'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $options[self::OSS_CONTENT] = $websiteConfig->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Sets the website config in bucket---that is could make the bucket as a static website once the CName is binded. @param string $bucket bucket name @param WebsiteConfig $websiteConfig @param array $options @throws OssException @return null
putBucketWebsite
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketWebsite($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'website'; $response = $this->auth($options); $result = new GetWebsiteResult($response); return $result->getData(); }
Gets the website config in the bucket @param string $bucket bucket name @param array $options @throws OssException @return WebsiteConfig
getBucketWebsite
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function deleteBucketWebsite($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_DELETE; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'website'; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Deletes the website config in the bucket @param string $bucket bucket name @param array $options @throws OssException @return null
deleteBucketWebsite
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketCors($bucket, $corsConfig, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'cors'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $options[self::OSS_CONTENT] = $corsConfig->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Sets the cross-origin-resource-sharing (CORS) rule. It would overwrite the originl one. @param string $bucket bucket name @param CorsConfig $corsConfig CORS config. Check out the details from OSS API document @param array $options array @throws OssException @return null
putBucketCors
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function deleteBucketCors($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_DELETE; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'cors'; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Deletes the bucket's CORS config and disable the CORS on the bucket. @param string $bucket bucket name @param array $options @throws OssException @return null
deleteBucketCors
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketCname($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_CNAME] = ''; $response = $this->auth($options); $result = new GetCnameResult($response); return $result->getData(); }
Gets the binded CName list of the bucket @param string $bucket bucket name @param array $options @throws OssException @return CnameConfig
getBucketCname
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function deleteBucketCname($bucket, $cname, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $cnameConfig = new CnameConfig(); $cnameConfig->addCname($cname); $options[self::OSS_CONTENT] = $cnameConfig->serializeToXml(); $options[self::OSS_COMP] = 'delete'; $options[self::OSS_CNAME] = ''; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Remove a CName binding from the bucket @param string $bucket bucket name @param CnameConfig $cnameConfig @param array $options @throws OssException @return null
deleteBucketCname
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function createBucketCnameToken($bucket, $cname, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $cnameConfig = new CnameConfig(); $cnameConfig->addCname($cname); $options[self::OSS_CONTENT] = $cnameConfig->serializeToXml(); $options[self::OSS_COMP] = 'token'; $options[self::OSS_CNAME] = ''; $response = $this->auth($options); $result = new CreateBucketCnameTokenResult($response); return $result->getData(); }
create a cname token for a bucket @param string $bucket bucket name @param array $options @throws OssException @return CnameToken
createBucketCnameToken
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketCnameToken($bucket, $cname, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_COMP] = 'token'; $options[self::OSS_CNAME] = $cname; $response = $this->auth($options); $result = new GetBucketCnameTokenResult($response); return $result->getData(); }
get a cname token for a bucket @param string $bucket bucket name @param array $options @throws OssException @return CnameToken
getBucketCnameToken
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketLiveChannel($bucket, $channelName, $channelConfig, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = $channelName; $options[self::OSS_SUB_RESOURCE] = 'live'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $options[self::OSS_CONTENT] = $channelConfig->serializeToXml(); $response = $this->auth($options); $result = new PutLiveChannelResult($response); $info = $result->getData(); $info->setName($channelName); $info->setDescription($channelConfig->getDescription()); return $info; }
Creates a Live Channel under a bucket @param string $bucket bucket name @param string channelName $channelName @param LiveChannelConfig $channelConfig @param array $options @throws OssException @return LiveChannelInfo
putBucketLiveChannel
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getLiveChannelStatus($bucket, $channelName, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = $channelName; $options[self::OSS_SUB_RESOURCE] = 'live'; $options[self::OSS_COMP] = 'stat'; $response = $this->auth($options); $result = new GetLiveChannelStatusResult($response); return $result->getData(); }
Gets the status of LiveChannel @param string $bucket bucket name @param string channelName $channelName @param array $options @throws OssException @return GetLiveChannelStatus
getLiveChannelStatus
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function listBucketLiveChannels($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'live'; $options[self::OSS_QUERY_STRING] = array( 'prefix' => isset($options['prefix']) ? $options['prefix'] : '', 'marker' => isset($options['marker']) ? $options['marker'] : '', 'max-keys' => isset($options['max-keys']) ? $options['max-keys'] : '', ); $response = $this->auth($options); $result = new ListLiveChannelResult($response); $list = $result->getData(); $list->setBucketName($bucket); return $list; }
Gets the live channel list under a bucket. @param string $bucket bucket name @param array $options @throws OssException @return LiveChannelListInfo
listBucketLiveChannels
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function postVodPlaylist($bucket, $channelName, $playlistName, $setTime) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_OBJECT] = $channelName . '/' . $playlistName; $options[self::OSS_SUB_RESOURCE] = 'vod'; $options[self::OSS_LIVE_CHANNEL_END_TIME] = $setTime['EndTime']; $options[self::OSS_LIVE_CHANNEL_START_TIME] = $setTime['StartTime']; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Creates a play list file for the LiveChannel @param string $bucket bucket name @param string channelName $channelName @param string $playlistName The playlist name, must end with ".m3u8". @param array $setTime startTime and EndTime in unix time. No more than 1 day. @throws OssException @return null
postVodPlaylist
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function optionsObject($bucket, $object, $origin, $request_method, $request_headers, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_OPTIONS; $options[self::OSS_OBJECT] = $object; $options[self::OSS_HEADERS] = array( self::OSS_OPTIONS_ORIGIN => $origin, self::OSS_OPTIONS_REQUEST_HEADERS => $request_headers, self::OSS_OPTIONS_REQUEST_METHOD => $request_method ); $response = $this->auth($options); $result = new HeaderResult($response); return $result->getData(); }
Precheck the CORS request. Before sending a CORS request, a preflight request (OPTIONS) is sent with the specific origin. HTTP METHOD and headers information are sent to OSS as well for evaluating if the CORS request is allowed. Note: OSS could enable the CORS on the bucket by calling putBucketCors. Once CORS is enabled, the OSS could evaluate accordingto the preflight request. @param string $bucket bucket name @param string $object object name @param string $origin the origin of the request @param string $request_method The actual HTTP method which will be used in CORS request @param string $request_headers The actual HTTP headers which will be used in CORS request @param array $options @return array @throws OssException @link http://help.aliyun.com/document_detail/oss/api-reference/cors/OptionObject.html
optionsObject
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketLifecycle($bucket, $lifecycleConfig, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'lifecycle'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $options[self::OSS_CONTENT] = $lifecycleConfig->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Sets the bucket's lifecycle config @param string $bucket bucket name @param LifecycleConfig $lifecycleConfig LifecycleConfig instance @param array $options @throws OssException @return null
putBucketLifecycle
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketLifecycle($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'lifecycle'; $response = $this->auth($options); $result = new GetLifecycleResult($response); return $result->getData(); }
Gets bucket's lifecycle config @param string $bucket bucket name @param array $options @throws OssException @return LifecycleConfig
getBucketLifecycle
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function deleteBucketLifecycle($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_DELETE; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'lifecycle'; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Deletes the bucket's lifecycle config @param string $bucket bucket name @param array $options @throws OssException @return null
deleteBucketLifecycle
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketReferer($bucket, $refererConfig, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'referer'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $options[self::OSS_CONTENT] = $refererConfig->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Sets a bucket's referer, which has a whitelist of referrer and specifies if empty referer is allowed. Checks out API document for more details about "Bucket Referer" @param string $bucket bucket name @param RefererConfig $refererConfig @param array $options @return ResponseCore @throws null
putBucketReferer
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketReferer($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'referer'; $response = $this->auth($options); $result = new GetRefererResult($response); return $result->getData(); }
Gets the bucket's Referer Checks out API document for more details about "Bucket Referer" @param string $bucket bucket name @param array $options @throws OssException @return RefererConfig
getBucketReferer
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketStorageCapacity($bucket, $storageCapacity, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'qos'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $storageCapacityConfig = new StorageCapacityConfig($storageCapacity); $options[self::OSS_CONTENT] = $storageCapacityConfig->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Set the size of the bucket,the unit is GB When the capacity of the bucket is bigger than the set, it's forbidden to continue writing @param string $bucket bucket name @param int $storageCapacity @param array $options @return ResponseCore @throws null
putBucketStorageCapacity
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketStorageCapacity($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'qos'; $response = $this->auth($options); $result = new GetStorageCapacityResult($response); return $result->getData(); }
Get the capacity of the bucket, the unit is GB @param string $bucket bucket name @param array $options @throws OssException @return int
getBucketStorageCapacity
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketInfo($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'bucketInfo'; $response = $this->auth($options); $result = new GetBucketInfoResult($response); return $result->getData(); }
Get the information of the bucket @param string $bucket bucket name @param array $options @throws OssException @return BucketInfo
getBucketInfo
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function deleteBucketEncryption($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_DELETE; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'encryption'; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Deletes the bucket's encryption @param string $bucket bucket name @param array $options @throws OssException @return null
deleteBucketEncryption
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketRequestPayment($bucket, $payer, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'requestPayment'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $config = new RequestPaymentConfig($payer); $options[self::OSS_CONTENT] = $config->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Set the request playment of the bucket, Can be BucketOwner and Requester @param string $bucket bucket name @param string $payer @param array $options @return ResponseCore @throws null
putBucketRequestPayment
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketRequestPayment($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'requestPayment'; $response = $this->auth($options); $result = new GetBucketRequestPaymentResult($response); return $result->getData(); }
Get the request playment of the bucket @param string $bucket bucket name @param array $options @throws OssException @return string
getBucketRequestPayment
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketVersioning($bucket, $status, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'versioning'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $config = new VersioningConfig($status); $options[self::OSS_CONTENT] = $config->serializeToXml(); $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Set the versioning of the bucket, Can be BucketOwner and Requester @param string $bucket bucket name @param string $status @param array $options @return ResponseCore @throws null
putBucketVersioning
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketVersioning($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'versioning'; $response = $this->auth($options); $result = new GetBucketVersioningResult($response); return $result->getData(); }
Get the versioning of the bucket @param string $bucket bucket name @param array $options @throws OssException @return string
getBucketVersioning
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putBucketTransferAcceleration($bucket,$enabled,$options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'transferAcceleration'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $config = new TransferAccelerationConfig(); $config->setEnabled($enabled); $options[self::OSS_CONTENT] = $config->serializeToXml(); $response = $this->auth($options); $result = new HeaderResult($response); return $result->getData(); }
Put Bucket TransferAcceleration @param $bucket @param $enabled boolean @param null $options @return null @throws OssException
putBucketTransferAcceleration
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getBucketTransferAcceleration($bucket,$options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'transferAcceleration'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $response = $this->auth($options); $result = new GetBucketTransferAccelerationResult($response); return $result->getData(); }
Put Bucket TransferAcceleration @param $bucket @param null $options @return enabled boolean @throws OssException
getBucketTransferAcceleration
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function listObjects($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $query = isset($options[self::OSS_QUERY_STRING]) ? $options[self::OSS_QUERY_STRING] : array(); $options[self::OSS_QUERY_STRING] = array_merge( $query, array(self::OSS_ENCODING_TYPE => self::OSS_ENCODING_TYPE_URL, self::OSS_DELIMITER => isset($options[self::OSS_DELIMITER]) ? $options[self::OSS_DELIMITER] : '/', self::OSS_PREFIX => isset($options[self::OSS_PREFIX]) ? $options[self::OSS_PREFIX] : '', self::OSS_MAX_KEYS => isset($options[self::OSS_MAX_KEYS]) ? $options[self::OSS_MAX_KEYS] : self::OSS_MAX_KEYS_VALUE, self::OSS_MARKER => isset($options[self::OSS_MARKER]) ? $options[self::OSS_MARKER] : '') ); $response = $this->auth($options); $result = new ListObjectsResult($response); return $result->getData(); }
Lists the bucket's object list (in ObjectListInfo) @param string $bucket @param array $options are defined below: $options = array( 'max-keys' => specifies max object count to return. By default is 100 and max value could be 1000. 'prefix' => specifies the key prefix the returned objects must have. Note that the returned keys still contain the prefix. 'delimiter' => The delimiter of object name for grouping object. When it's specified, listObjects will differeniate the object and folder. And it will return subfolder's objects. 'marker' => The key of returned object must be greater than the 'marker'. ) Prefix and marker are for filtering and paging. Their length must be less than 256 bytes @throws OssException @return ObjectListInfo
listObjects
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function listObjectsV2($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $query = isset($options[self::OSS_QUERY_STRING]) ? $options[self::OSS_QUERY_STRING] : array(); $temp = array( self::OSS_LIST_TYPE=>2, self::OSS_ENCODING_TYPE => self::OSS_ENCODING_TYPE_URL, self::OSS_DELIMITER => isset($options[self::OSS_DELIMITER]) ? $options[self::OSS_DELIMITER] : '/', self::OSS_PREFIX => isset($options[self::OSS_PREFIX]) ? $options[self::OSS_PREFIX] : '', self::OSS_MAX_KEYS => isset($options[self::OSS_MAX_KEYS]) ? $options[self::OSS_MAX_KEYS] : self::OSS_MAX_KEYS_VALUE, self::OSS_START_AFTER => isset($options[self::OSS_START_AFTER]) ? $options[self::OSS_START_AFTER] : '', ); if(isset($options[self::OSS_CONTINUATION_TOKEN])){ $temp[self::OSS_CONTINUATION_TOKEN] = $options[self::OSS_CONTINUATION_TOKEN]; } $options[self::OSS_QUERY_STRING] = array_merge( $query,$temp ); $response = $this->auth($options); $result = new ListObjectsV2Result($response); return $result->getData(); }
Lists the bucket's object list v2 (in ObjectListInfoV2) @param string $bucket @param array $options are defined below: $options = array( 'max-keys' => specifies max object count to return. By default is 100 and max value could be 1000. 'prefix' => specifies the key prefix the returned objects must have. Note that the returned keys still contain the prefix. 'delimiter' => The delimiter of object name for grouping object. When it's specified, listObjects will differeniate the object and folder. And it will return subfolder's objects. 'start-after' => The key of returned object must be greater than the 'start-after'. 'continuation-token' => The token from which the list operation must start. ) Prefix, start-after and continuation-token are for filtering and paging. Their length must be less than 256 bytes @throws OssException @return ObjectListInfoV2
listObjectsV2
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function listObjectVersions($bucket, $options = NULL) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'versions'; $query = isset($options[self::OSS_QUERY_STRING]) ? $options[self::OSS_QUERY_STRING] : array(); $options[self::OSS_QUERY_STRING] = array_merge( $query, array(self::OSS_ENCODING_TYPE => self::OSS_ENCODING_TYPE_URL, self::OSS_DELIMITER => isset($options[self::OSS_DELIMITER]) ? $options[self::OSS_DELIMITER] : '/', self::OSS_PREFIX => isset($options[self::OSS_PREFIX]) ? $options[self::OSS_PREFIX] : '', self::OSS_MAX_KEYS => isset($options[self::OSS_MAX_KEYS]) ? $options[self::OSS_MAX_KEYS] : self::OSS_MAX_KEYS_VALUE, self::OSS_KEY_MARKER => isset($options[self::OSS_KEY_MARKER]) ? $options[self::OSS_KEY_MARKER] : '', self::OSS_VERSION_ID_MARKER => isset($options[self::OSS_VERSION_ID_MARKER]) ? $options[self::OSS_VERSION_ID_MARKER] : '') ); $response = $this->auth($options); $result = new ListObjectVersionsResult($response); return $result->getData(); }
Lists the bucket's object with version information (in ObjectListInfo) @param string $bucket @param array $options are defined below: $options = array( 'max-keys' => specifies max object count to return. By default is 100 and max value could be 1000. 'prefix' => specifies the key prefix the returned objects must have. Note that the returned keys still contain the prefix. 'delimiter' => The delimiter of object name for grouping object. When it's specified, listObjectVersions will differeniate the object and folder. And it will return subfolder's objects. 'key-marker' => The key of returned object must be greater than the 'key-marker'. 'version-id-marker' => The version id of returned object must be greater than the 'version-id-marker'. ) Prefix and marker are for filtering and paging. Their length must be less than 256 bytes @throws OssException @return ObjectListInfo
listObjectVersions
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function putObject($bucket, $object, $content, $options = NULL) { $this->precheckCommon($bucket, $object, $options); $options[self::OSS_CONTENT] = $content; $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = $object; if (!isset($options[self::OSS_LENGTH])) { $options[self::OSS_CONTENT_LENGTH] = strlen($options[self::OSS_CONTENT]); } else { $options[self::OSS_CONTENT_LENGTH] = $options[self::OSS_LENGTH]; } $is_check_md5 = $this->isCheckMD5($options); if ($is_check_md5) { $content_md5 = base64_encode(md5($content, true)); $options[self::OSS_CONTENT_MD5] = $content_md5; } if (!isset($options[self::OSS_CONTENT_TYPE])) { $options[self::OSS_CONTENT_TYPE] = $this->getMimeType($object); } $response = $this->auth($options); if (isset($options[self::OSS_CALLBACK]) && !empty($options[self::OSS_CALLBACK])) { $result = new CallbackResult($response); } else { $result = new PutSetDeleteResult($response); } return $result->getData(); }
Uploads the $content object to OSS. @param string $bucket bucket name @param string $object objcet name @param string $content The content object @param array $options @return null
putObject
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function uploadStream($bucket, $object, $handle, $options = NULL) { $this->precheckCommon($bucket, $object, $options); if (!is_resource($handle)) { throw new OssException("The handle must be an opened stream"); } $options[self::OSS_FILE_UPLOAD] = $handle; if ($this->isCheckMD5($options)) { rewind($handle); $ctx = hash_init('md5'); hash_update_stream($ctx, $handle); $content_md5 = base64_encode(hash_final($ctx, true)); rewind($handle); $options[self::OSS_CONTENT_MD5] = $content_md5; } if (!isset($options[self::OSS_CONTENT_TYPE])) { $options[self::OSS_CONTENT_TYPE] = $this->getMimeType($object); } $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_OBJECT] = $object; if (!isset($options[self::OSS_CONTENT_LENGTH])) { $options[self::OSS_CONTENT_LENGTH] = fstat($handle)[self::OSS_SIZE]; } $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); }
Uploads object from file handle @param string $bucket bucket name @param string $object object name @param resource $handle file handle @param array $options @return null @throws OssException
uploadStream
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function appendObject($bucket, $object, $content, $position, $options = NULL) { $this->precheckCommon($bucket, $object, $options); $options[self::OSS_CONTENT] = $content; $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_OBJECT] = $object; $options[self::OSS_SUB_RESOURCE] = 'append'; $options[self::OSS_POSITION] = strval($position); if (!isset($options[self::OSS_LENGTH])) { $options[self::OSS_CONTENT_LENGTH] = strlen($options[self::OSS_CONTENT]); } else { $options[self::OSS_CONTENT_LENGTH] = $options[self::OSS_LENGTH]; } $is_check_md5 = $this->isCheckMD5($options); if ($is_check_md5) { $content_md5 = base64_encode(md5($content, true)); $options[self::OSS_CONTENT_MD5] = $content_md5; } if (!isset($options[self::OSS_CONTENT_TYPE])) { $options[self::OSS_CONTENT_TYPE] = $this->getMimeType($object); } $response = $this->auth($options); $result = new AppendResult($response); return $result->getData(); }
Append the object with the content at the specified position. The specified position is typically the lengh of the current file. @param string $bucket bucket name @param string $object objcet name @param string $content content to append @param array $options @return int next append position @throws OssException
appendObject
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function appendFile($bucket, $object, $file, $position, $options = NULL) { $this->precheckCommon($bucket, $object, $options); OssUtil::throwOssExceptionWithMessageIfEmpty($file, "file path is invalid"); $file = OssUtil::encodePath($file); if (!file_exists($file)) { throw new OssException($file . " file does not exist"); } $options[self::OSS_FILE_UPLOAD] = $file; $file_size = sprintf('%u',filesize($options[self::OSS_FILE_UPLOAD])); $is_check_md5 = $this->isCheckMD5($options); if ($is_check_md5) { $content_md5 = base64_encode(md5_file($options[self::OSS_FILE_UPLOAD], true)); $options[self::OSS_CONTENT_MD5] = $content_md5; } if (!isset($options[self::OSS_CONTENT_TYPE])) { $options[self::OSS_CONTENT_TYPE] = $this->getMimeType($object, $file); } $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_OBJECT] = $object; $options[self::OSS_CONTENT_LENGTH] = $file_size; $options[self::OSS_SUB_RESOURCE] = 'append'; $options[self::OSS_POSITION] = strval($position); $response = $this->auth($options); $result = new AppendResult($response); return $result->getData(); }
Append the object with a local file @param string $bucket bucket name @param string $object object name @param string $file The local file path to append with @param array $options @return int next append position @throws OssException
appendFile
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function copyObject($fromBucket, $fromObject, $toBucket, $toObject, $options = NULL) { $this->precheckCommon($fromBucket, $fromObject, $options); $this->precheckCommon($toBucket, $toObject, $options); $options[self::OSS_BUCKET] = $toBucket; $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_OBJECT] = $toObject; $param = '/' . $fromBucket . '/' . rawurlencode($fromObject); if (isset($options[self::OSS_VERSION_ID])) { $param = $param . '?versionId='.$options[self::OSS_VERSION_ID]; unset($options[self::OSS_VERSION_ID]); } if (isset($options[self::OSS_HEADERS])) { $options[self::OSS_HEADERS][self::OSS_OBJECT_COPY_SOURCE] = $param; } else { $options[self::OSS_HEADERS] = array(self::OSS_OBJECT_COPY_SOURCE => $param); } $response = $this->auth($options); $result = new CopyObjectResult($response); return $result->getData(); }
Copy from an existing OSS object to another OSS object. If the target object exists already, it will be overwritten. @param string $fromBucket Source bucket name @param string $fromObject Source object name @param string $toBucket Target bucket name @param string $toObject Target object name @param array $options @return null @throws OssException
copyObject
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function completeMultipartUpload($bucket, $object, $uploadId, $listParts, $options = NULL) { $this->precheckCommon($bucket, $object, $options); $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_OBJECT] = $object; $options[self::OSS_UPLOAD_ID] = $uploadId; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; if (is_array($listParts)) { $options[self::OSS_CONTENT] = OssUtil::createCompleteMultipartUploadXmlBody($listParts); } else { $options[self::OSS_CONTENT] = ""; } $response = $this->auth($options); if (isset($options[self::OSS_CALLBACK]) && !empty($options[self::OSS_CALLBACK])) { $result = new CallbackResult($response); } else { $result = new PutSetDeleteResult($response); } return $result->getData(); }
Completes a multiparts upload, after all parts are uploaded. @param string $bucket bucket name @param string $object object name @param string $uploadId uploadId @param array $listParts array( array("PartNumber"=> int, "ETag"=>string)) @param array $options Key-Value array @throws OssException @return null
completeMultipartUpload
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function listMultipartUploads($bucket, $options = null) { $this->precheckCommon($bucket, NULL, $options, false); $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_OBJECT] = '/'; $options[self::OSS_SUB_RESOURCE] = 'uploads'; foreach (array('delimiter', 'key-marker', 'max-uploads', 'prefix', 'upload-id-marker') as $param) { if (isset($options[$param])) { $options[self::OSS_QUERY_STRING][$param] = $options[$param]; unset($options[$param]); } } $query = isset($options[self::OSS_QUERY_STRING]) ? $options[self::OSS_QUERY_STRING] : array(); $options[self::OSS_QUERY_STRING] = array_merge( $query, array(self::OSS_ENCODING_TYPE => self::OSS_ENCODING_TYPE_URL) ); $response = $this->auth($options); $result = new ListMultipartUploadResult($response); return $result->getData(); }
Lists all ongoing multipart upload events, which means all initialized but not completed or aborted multipart uploads. @param string $bucket bucket @param array $options key-value array--expected keys are 'delimiter', 'key-marker', 'max-uploads', 'prefix', 'upload-id-marker' @throws OssException @return ListMultipartUploadInfo
listMultipartUploads
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function uploadPartCopy($fromBucket, $fromObject, $toBucket, $toObject, $partNumber, $uploadId, $options = NULL) { $this->precheckCommon($fromBucket, $fromObject, $options); $this->precheckCommon($toBucket, $toObject, $options); //If $options['isFullCopy'] is not set, copy from the beginning $start_range = "0"; if (isset($options['start'])) { $start_range = $options['start']; } $end_range = ""; if (isset($options['end'])) { $end_range = $options['end']; } $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; $options[self::OSS_BUCKET] = $toBucket; $options[self::OSS_OBJECT] = $toObject; $options[self::OSS_PART_NUM] = $partNumber; $options[self::OSS_UPLOAD_ID] = $uploadId; if (!isset($options[self::OSS_HEADERS])) { $options[self::OSS_HEADERS] = array(); } $param = '/' . $fromBucket . '/' . rawurlencode($fromObject); if (isset($options[self::OSS_VERSION_ID])) { $param = $param . '?versionId='.$options[self::OSS_VERSION_ID]; unset($options[self::OSS_VERSION_ID]); } $options[self::OSS_HEADERS][self::OSS_OBJECT_COPY_SOURCE] = $param; $options[self::OSS_HEADERS][self::OSS_OBJECT_COPY_SOURCE_RANGE] = "bytes=" . $start_range . "-" . $end_range; $response = $this->auth($options); $result = new UploadPartResult($response); return $result->getData(); }
Copy an existing file as a part @param string $fromBucket source bucket name @param string $fromObject source object name @param string $toBucket target bucket name @param string $toObject target object name @param int $partNumber Part number @param string $uploadId Upload Id @param array $options Key-Value array---it should have 'start' or 'end' key to specify the range of the source object to copy. If it's not specifed, the whole object is copied. @return null @throws OssException
uploadPartCopy
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function generatePresignedUrl($bucket, $object, $expiration, $method = self::OSS_HTTP_GET, $options = NULL) { $this->precheckCommon($bucket, $object, $options); //method if (self::OSS_HTTP_GET !== $method && self::OSS_HTTP_PUT !== $method) { throw new OssException("method is invalid"); } $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_OBJECT] = $object; $options[self::OSS_METHOD] = $method; if (!isset($options[self::OSS_CONTENT_TYPE])) { $options[self::OSS_CONTENT_TYPE] = ''; } $options[self::OSS_PREAUTH] = $expiration; $options[self::OSS_DATE] = $expiration; $this->setSignStsInUrl(true); return $this->auth($options); }
Sign URL with specified expiration time in seconds and HTTP method. The signed URL could be used to access the object directly. @param string $bucket @param string $object @param int $expiration expiration time of the Url, unix epoch, since 1970.1.1 00.00.00 UTC @param string $method @param array $options Key-Value array @return string @throws OssException
generatePresignedUrl
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
private function authPrecheckBucket($options) { if (!(('/' == $options[self::OSS_OBJECT]) && ('' == $options[self::OSS_BUCKET]) && ('GET' == $options[self::OSS_METHOD])) && !OssUtil::validateBucket($options[self::OSS_BUCKET])) { throw new OssException('"' . $options[self::OSS_BUCKET] . '"' . 'bucket name is invalid'); } }
Validates bucket name--throw OssException if it's invalid @param $options @throws OssException
authPrecheckBucket
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
private function authPrecheckObject($options) { if (isset($options[self::OSS_OBJECT]) && $options[self::OSS_OBJECT] === '/') { return; } if (isset($options[self::OSS_OBJECT]) && !OssUtil::validateObject($options[self::OSS_OBJECT])) { throw new OssException('"' . $options[self::OSS_OBJECT] . '"' . ' object name is invalid'); } }
Validates the object name--throw OssException if it's invalid. @param $options @throws OssException
authPrecheckObject
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
private function generateResourceUri($options) { $resource_uri = ""; // resource_uri + bucket if (isset($options[self::OSS_BUCKET]) && '' !== $options[self::OSS_BUCKET]) { if ($this->hostType === self::OSS_HOST_TYPE_IP) { $resource_uri = '/' . $options[self::OSS_BUCKET]; } } // resource_uri + object if (isset($options[self::OSS_OBJECT]) && '/' !== $options[self::OSS_OBJECT]) { $resource_uri .= '/' . str_replace(array('%2F', '%25'), array('/', '%'), rawurlencode($options[self::OSS_OBJECT])); } // resource_uri + sub_resource $conjunction = '?'; if (isset($options[self::OSS_SUB_RESOURCE])) { $resource_uri .= $conjunction . $options[self::OSS_SUB_RESOURCE]; } return $resource_uri; }
Gets the resource Uri in the current request @param $options @return string return the resource uri.
generateResourceUri
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
private function generateSignableQueryStringParam($options,$cred) { $signableQueryStringParams = array(); $signableList = array( self::OSS_PART_NUM, 'response-content-type', 'response-content-language', 'response-cache-control', 'response-content-encoding', 'response-expires', 'response-content-disposition', self::OSS_UPLOAD_ID, self::OSS_COMP, self::OSS_LIVE_CHANNEL_STATUS, self::OSS_LIVE_CHANNEL_START_TIME, self::OSS_LIVE_CHANNEL_END_TIME, self::OSS_PROCESS, self::OSS_POSITION, self::OSS_SYMLINK, self::OSS_RESTORE, self::OSS_TAGGING, self::OSS_WORM_ID, self::OSS_TRAFFIC_LIMIT, self::OSS_VERSION_ID, self::OSS_CONTINUATION_TOKEN, self::OSS_CNAME, ); foreach ($signableList as $item) { if (isset($options[$item])) { $signableQueryStringParams[$item] = $options[$item]; } } if ($this->enableStsInUrl && (!empty($cred->getSecurityToken()))) { $signableQueryStringParams["security-token"] = $cred->getSecurityToken(); } return $signableQueryStringParams; }
Generates the signalbe query string parameters in array type @param array $options @param Credentials $cred @return array
generateSignableQueryStringParam
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
private function generateSignableResource($options) { $signableResource = ""; $signableResource .= '/'; if (isset($options[self::OSS_BUCKET]) && '' !== $options[self::OSS_BUCKET]) { $signableResource .= $options[self::OSS_BUCKET]; // if there's no object in options, adding a '/' if the host type is not IP.\ if ($options[self::OSS_OBJECT] == '/') { if ($this->hostType !== self::OSS_HOST_TYPE_IP) { $signableResource .= "/"; } } }
Generates the resource uri for signing @param mixed $options @return string
generateSignableResource
php
xiebruce/PicUploader
vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php
MIT
public function getPreSharedKeyIsSet() { if (array_key_exists("preSharedKeyIsSet", $this->_propDict)) { return $this->_propDict["preSharedKeyIsSet"]; } else { return null; } }
Gets the preSharedKeyIsSet This is the pre-shared key for WPA Personal Wi-Fi network. @return bool|null The preSharedKeyIsSet
getPreSharedKeyIsSet
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
MIT
public function setPreSharedKeyIsSet($val) { $this->_propDict["preSharedKeyIsSet"] = boolval($val); return $this; }
Sets the preSharedKeyIsSet This is the pre-shared key for WPA Personal Wi-Fi network. @param bool $val The preSharedKeyIsSet @return AndroidDeviceOwnerWiFiConfiguration
setPreSharedKeyIsSet
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
MIT
public function getProxyExclusionList() { if (array_key_exists("proxyExclusionList", $this->_propDict)) { return $this->_propDict["proxyExclusionList"]; } else { return null; } }
Gets the proxyExclusionList List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as .example.com. @return string|null The proxyExclusionList
getProxyExclusionList
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
MIT
public function setProxyExclusionList($val) { $this->_propDict["proxyExclusionList"] = $val; return $this; }
Sets the proxyExclusionList List of hosts to exclude using the proxy on connections for. These hosts can use wildcards such as .example.com. @param string $val The proxyExclusionList @return AndroidDeviceOwnerWiFiConfiguration
setProxyExclusionList
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
MIT
public function getWiFiSecurityType() { if (array_key_exists("wiFiSecurityType", $this->_propDict)) { if (is_a($this->_propDict["wiFiSecurityType"], "\Beta\Microsoft\Graph\Model\AndroidDeviceOwnerWiFiSecurityType") || is_null($this->_propDict["wiFiSecurityType"])) { return $this->_propDict["wiFiSecurityType"]; } else { $this->_propDict["wiFiSecurityType"] = new AndroidDeviceOwnerWiFiSecurityType($this->_propDict["wiFiSecurityType"]); return $this->_propDict["wiFiSecurityType"]; } } return null; }
Gets the wiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type. Possible values are: open, wep, wpaPersonal, wpaEnterprise. @return AndroidDeviceOwnerWiFiSecurityType|null The wiFiSecurityType
getWiFiSecurityType
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AndroidDeviceOwnerWiFiConfiguration.php
MIT
public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Microsoft\Graph\ExternalConnectors\Model\ConnectionOperationStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new ConnectionOperationStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; }
Gets the status Indicates the status of the asynchronous operation. Possible values are: unspecified, inprogress, completed, failed, unknownFutureValue. @return ConnectionOperationStatus|null The status
getStatus
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/ExternalConnectors/Model/ConnectionOperation.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/ExternalConnectors/Model/ConnectionOperation.php
MIT
public function getActiveDirectorySiteCode() { if (array_key_exists("activeDirectorySiteCode", $this->_propDict)) { return $this->_propDict["activeDirectorySiteCode"]; } else { return null; } }
Gets the activeDirectorySiteCode Gets or sets the Active Directory site. @return string|null The activeDirectorySiteCode
getActiveDirectorySiteCode
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setActiveDirectorySiteCode($val) { $this->_propDict["activeDirectorySiteCode"] = $val; return $this; }
Sets the activeDirectorySiteCode Gets or sets the Active Directory site. @param string $val The value of the activeDirectorySiteCode @return MacOSKerberosSingleSignOnExtension
setActiveDirectorySiteCode
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getBlockActiveDirectorySiteAutoDiscovery() { if (array_key_exists("blockActiveDirectorySiteAutoDiscovery", $this->_propDict)) { return $this->_propDict["blockActiveDirectorySiteAutoDiscovery"]; } else { return null; } }
Gets the blockActiveDirectorySiteAutoDiscovery Enables or disables whether the Kerberos extension can automatically determine its site name. @return bool|null The blockActiveDirectorySiteAutoDiscovery
getBlockActiveDirectorySiteAutoDiscovery
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setBlockActiveDirectorySiteAutoDiscovery($val) { $this->_propDict["blockActiveDirectorySiteAutoDiscovery"] = $val; return $this; }
Sets the blockActiveDirectorySiteAutoDiscovery Enables or disables whether the Kerberos extension can automatically determine its site name. @param bool $val The value of the blockActiveDirectorySiteAutoDiscovery @return MacOSKerberosSingleSignOnExtension
setBlockActiveDirectorySiteAutoDiscovery
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getBlockAutomaticLogin() { if (array_key_exists("blockAutomaticLogin", $this->_propDict)) { return $this->_propDict["blockAutomaticLogin"]; } else { return null; } }
Gets the blockAutomaticLogin Enables or disables Keychain usage. @return bool|null The blockAutomaticLogin
getBlockAutomaticLogin
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setBlockAutomaticLogin($val) { $this->_propDict["blockAutomaticLogin"] = $val; return $this; }
Sets the blockAutomaticLogin Enables or disables Keychain usage. @param bool $val The value of the blockAutomaticLogin @return MacOSKerberosSingleSignOnExtension
setBlockAutomaticLogin
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getCacheName() { if (array_key_exists("cacheName", $this->_propDict)) { return $this->_propDict["cacheName"]; } else { return null; } }
Gets the cacheName Gets or sets the Generic Security Services name of the Kerberos cache to use for this profile. @return string|null The cacheName
getCacheName
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setCacheName($val) { $this->_propDict["cacheName"] = $val; return $this; }
Sets the cacheName Gets or sets the Generic Security Services name of the Kerberos cache to use for this profile. @param string $val The value of the cacheName @return MacOSKerberosSingleSignOnExtension
setCacheName
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getCredentialBundleIdAccessControlList() { if (array_key_exists("credentialBundleIdAccessControlList", $this->_propDict)) { return $this->_propDict["credentialBundleIdAccessControlList"]; } else { return null; } }
Gets the credentialBundleIdAccessControlList Gets or sets a list of app Bundle IDs allowed to access the Kerberos Ticket Granting Ticket. @return string|null The credentialBundleIdAccessControlList
getCredentialBundleIdAccessControlList
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setCredentialBundleIdAccessControlList($val) { $this->_propDict["credentialBundleIdAccessControlList"] = $val; return $this; }
Sets the credentialBundleIdAccessControlList Gets or sets a list of app Bundle IDs allowed to access the Kerberos Ticket Granting Ticket. @param string $val The value of the credentialBundleIdAccessControlList @return MacOSKerberosSingleSignOnExtension
setCredentialBundleIdAccessControlList
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getCredentialsCacheMonitored() { if (array_key_exists("credentialsCacheMonitored", $this->_propDict)) { return $this->_propDict["credentialsCacheMonitored"]; } else { return null; } }
Gets the credentialsCacheMonitored When set to True, the credential is requested on the next matching Kerberos challenge or network state change. When the credential is expired or missing, a new credential is created. Available for devices running macOS versions 12 and later. @return bool|null The credentialsCacheMonitored
getCredentialsCacheMonitored
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setCredentialsCacheMonitored($val) { $this->_propDict["credentialsCacheMonitored"] = $val; return $this; }
Sets the credentialsCacheMonitored When set to True, the credential is requested on the next matching Kerberos challenge or network state change. When the credential is expired or missing, a new credential is created. Available for devices running macOS versions 12 and later. @param bool $val The value of the credentialsCacheMonitored @return MacOSKerberosSingleSignOnExtension
setCredentialsCacheMonitored
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getDomainRealms() { if (array_key_exists("domainRealms", $this->_propDict)) { return $this->_propDict["domainRealms"]; } else { return null; } }
Gets the domainRealms Gets or sets a list of realms for custom domain-realm mapping. Realms are case sensitive. @return string|null The domainRealms
getDomainRealms
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setDomainRealms($val) { $this->_propDict["domainRealms"] = $val; return $this; }
Sets the domainRealms Gets or sets a list of realms for custom domain-realm mapping. Realms are case sensitive. @param string $val The value of the domainRealms @return MacOSKerberosSingleSignOnExtension
setDomainRealms
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getIsDefaultRealm() { if (array_key_exists("isDefaultRealm", $this->_propDict)) { return $this->_propDict["isDefaultRealm"]; } else { return null; } }
Gets the isDefaultRealm When true, this profile's realm will be selected as the default. Necessary if multiple Kerberos-type profiles are configured. @return bool|null The isDefaultRealm
getIsDefaultRealm
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setIsDefaultRealm($val) { $this->_propDict["isDefaultRealm"] = $val; return $this; }
Sets the isDefaultRealm When true, this profile's realm will be selected as the default. Necessary if multiple Kerberos-type profiles are configured. @param bool $val The value of the isDefaultRealm @return MacOSKerberosSingleSignOnExtension
setIsDefaultRealm
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getKerberosAppsInBundleIdACLIncluded() { if (array_key_exists("kerberosAppsInBundleIdACLIncluded", $this->_propDict)) { return $this->_propDict["kerberosAppsInBundleIdACLIncluded"]; } else { return null; } }
Gets the kerberosAppsInBundleIdACLIncluded When set to True, the Kerberos extension allows any apps entered with the app bundle ID, managed apps, and standard Kerberos utilities, such as TicketViewer and klist, to access and use the credential. Available for devices running macOS versions 12 and later. @return bool|null The kerberosAppsInBundleIdACLIncluded
getKerberosAppsInBundleIdACLIncluded
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setKerberosAppsInBundleIdACLIncluded($val) { $this->_propDict["kerberosAppsInBundleIdACLIncluded"] = $val; return $this; }
Sets the kerberosAppsInBundleIdACLIncluded When set to True, the Kerberos extension allows any apps entered with the app bundle ID, managed apps, and standard Kerberos utilities, such as TicketViewer and klist, to access and use the credential. Available for devices running macOS versions 12 and later. @param bool $val The value of the kerberosAppsInBundleIdACLIncluded @return MacOSKerberosSingleSignOnExtension
setKerberosAppsInBundleIdACLIncluded
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getManagedAppsInBundleIdACLIncluded() { if (array_key_exists("managedAppsInBundleIdACLIncluded", $this->_propDict)) { return $this->_propDict["managedAppsInBundleIdACLIncluded"]; } else { return null; } }
Gets the managedAppsInBundleIdACLIncluded When set to True, the Kerberos extension allows managed apps, and any apps entered with the app bundle ID to access the credential. When set to False, the Kerberos extension allows all apps to access the credential. Available for devices running iOS and iPadOS versions 14 and later. @return bool|null The managedAppsInBundleIdACLIncluded
getManagedAppsInBundleIdACLIncluded
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setManagedAppsInBundleIdACLIncluded($val) { $this->_propDict["managedAppsInBundleIdACLIncluded"] = $val; return $this; }
Sets the managedAppsInBundleIdACLIncluded When set to True, the Kerberos extension allows managed apps, and any apps entered with the app bundle ID to access the credential. When set to False, the Kerberos extension allows all apps to access the credential. Available for devices running iOS and iPadOS versions 14 and later. @param bool $val The value of the managedAppsInBundleIdACLIncluded @return MacOSKerberosSingleSignOnExtension
setManagedAppsInBundleIdACLIncluded
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getModeCredentialUsed() { if (array_key_exists("modeCredentialUsed", $this->_propDict)) { return $this->_propDict["modeCredentialUsed"]; } else { return null; } }
Gets the modeCredentialUsed Select how other processes use the Kerberos Extension credential. @return string|null The modeCredentialUsed
getModeCredentialUsed
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setModeCredentialUsed($val) { $this->_propDict["modeCredentialUsed"] = $val; return $this; }
Sets the modeCredentialUsed Select how other processes use the Kerberos Extension credential. @param string $val The value of the modeCredentialUsed @return MacOSKerberosSingleSignOnExtension
setModeCredentialUsed
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordBlockModification($val) { $this->_propDict["passwordBlockModification"] = $val; return $this; }
Sets the passwordBlockModification Enables or disables password changes. @param bool $val The value of the passwordBlockModification @return MacOSKerberosSingleSignOnExtension
setPasswordBlockModification
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getPasswordChangeUrl() { if (array_key_exists("passwordChangeUrl", $this->_propDict)) { return $this->_propDict["passwordChangeUrl"]; } else { return null; } }
Gets the passwordChangeUrl Gets or sets the URL that the user will be sent to when they initiate a password change. @return string|null The passwordChangeUrl
getPasswordChangeUrl
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordChangeUrl($val) { $this->_propDict["passwordChangeUrl"] = $val; return $this; }
Sets the passwordChangeUrl Gets or sets the URL that the user will be sent to when they initiate a password change. @param string $val The value of the passwordChangeUrl @return MacOSKerberosSingleSignOnExtension
setPasswordChangeUrl
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getPasswordEnableLocalSync() { if (array_key_exists("passwordEnableLocalSync", $this->_propDict)) { return $this->_propDict["passwordEnableLocalSync"]; } else { return null; } }
Gets the passwordEnableLocalSync Enables or disables password syncing. This won't affect users logged in with a mobile account on macOS. @return bool|null The passwordEnableLocalSync
getPasswordEnableLocalSync
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordEnableLocalSync($val) { $this->_propDict["passwordEnableLocalSync"] = $val; return $this; }
Sets the passwordEnableLocalSync Enables or disables password syncing. This won't affect users logged in with a mobile account on macOS. @param bool $val The value of the passwordEnableLocalSync @return MacOSKerberosSingleSignOnExtension
setPasswordEnableLocalSync
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordExpirationDays($val) { $this->_propDict["passwordExpirationDays"] = $val; return $this; }
Sets the passwordExpirationDays Overrides the default password expiration in days. For most domains, this value is calculated automatically. @param int $val The value of the passwordExpirationDays @return MacOSKerberosSingleSignOnExtension
setPasswordExpirationDays
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getPasswordExpirationNotificationDays() { if (array_key_exists("passwordExpirationNotificationDays", $this->_propDict)) { return $this->_propDict["passwordExpirationNotificationDays"]; } else { return null; } }
Gets the passwordExpirationNotificationDays Gets or sets the number of days until the user is notified that their password will expire (default is 15). @return int|null The passwordExpirationNotificationDays
getPasswordExpirationNotificationDays
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordExpirationNotificationDays($val) { $this->_propDict["passwordExpirationNotificationDays"] = $val; return $this; }
Sets the passwordExpirationNotificationDays Gets or sets the number of days until the user is notified that their password will expire (default is 15). @param int $val The value of the passwordExpirationNotificationDays @return MacOSKerberosSingleSignOnExtension
setPasswordExpirationNotificationDays
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function getPasswordMinimumAgeDays() { if (array_key_exists("passwordMinimumAgeDays", $this->_propDict)) { return $this->_propDict["passwordMinimumAgeDays"]; } else { return null; } }
Gets the passwordMinimumAgeDays Gets or sets the minimum number of days until a user can change their password again. @return int|null The passwordMinimumAgeDays
getPasswordMinimumAgeDays
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordMinimumAgeDays($val) { $this->_propDict["passwordMinimumAgeDays"] = $val; return $this; }
Sets the passwordMinimumAgeDays Gets or sets the minimum number of days until a user can change their password again. @param int $val The value of the passwordMinimumAgeDays @return MacOSKerberosSingleSignOnExtension
setPasswordMinimumAgeDays
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordMinimumLength($val) { $this->_propDict["passwordMinimumLength"] = $val; return $this; }
Sets the passwordMinimumLength Gets or sets the minimum length of a password. @param int $val The value of the passwordMinimumLength @return MacOSKerberosSingleSignOnExtension
setPasswordMinimumLength
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT
public function setPasswordPreviousPasswordBlockCount($val) { $this->_propDict["passwordPreviousPasswordBlockCount"] = $val; return $this; }
Sets the passwordPreviousPasswordBlockCount Gets or sets the number of previous passwords to block. @param int $val The value of the passwordPreviousPasswordBlockCount @return MacOSKerberosSingleSignOnExtension
setPasswordPreviousPasswordBlockCount
php
xiebruce/PicUploader
vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
https://github.com/xiebruce/PicUploader/blob/master/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/MacOSKerberosSingleSignOnExtension.php
MIT