progrupa / azure-rest-api
自动生成的 Microsoft Azure REST API 库
dev-master
2017-05-09 08:28 UTC
Requires
- php: >=5.6
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ~6.0
- sainsburys/guzzle-oauth2-plugin: ~3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-25 06:44:43 UTC
README
Azure 批处理服务的 REST 请求客户端。
此 PHP 包由 Swagger Codegen 项目自动生成
- API 版本:2016-07-01.3.1
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
需求
PHP 5.4.0 及以上版本
安装与使用
Composer
要使用 Composer 安装绑定,请在 composer.json 中添加以下内容
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/SwaggerClient-php/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请按照 安装过程 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $api_instance = new Progrupa\Azure\Api\AccountsApi(); $api_version = "api_version_example"; // string | Client API Version. $filter = "filter_example"; // string | An OData $filter clause. $maxresults = 1000; // int | The maximum number of items to return in the response. A maximum of 1000 results will be returned. $timeout = 30; // int | The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. $client_request_id = "client_request_id_example"; // string | The caller-generated request identity, in the form of a GUID with no decoration such as curly braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. $return_client_request_id = false; // bool | Whether the server should return the client-request-id in the response. $ocp_date = "ocp_date_example"; // string | The time the request was issued. If not specified, this header will be automatically populated with the current system clock time. try { $result = $api_instance->accountListNodeAgentSkus($api_version, $filter, $maxresults, $timeout, $client_request_id, $return_client_request_id, $ocp_date); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccountsApi->accountListNodeAgentSkus: ', $e->getMessage(), PHP_EOL; } ?>
API 端点文档
所有 URI 都是相对于 https://batch.core.windows.net
模型文档
- AccountListNodeAgentSkusResult
- AffinityInformation
- ApplicationListResult
- ApplicationPackageReference
- ApplicationSummary
- AutoPoolSpecification
- AutoScaleRun
- AutoScaleRunError
- BatchError
- BatchErrorDetail
- Certificate
- CertificateAddParameter
- CertificateListResult
- CertificateReference
- CloudJob
- CloudJobListPreparationAndReleaseTaskStatusResult
- CloudJobListResult
- CloudJobSchedule
- CloudJobScheduleListResult
- CloudPool
- CloudPoolListResult
- CloudServiceConfiguration
- CloudTask
- CloudTaskListResult
- CloudTaskListSubtasksResult
- ComputeNode
- ComputeNodeError
- ComputeNodeGetRemoteLoginSettingsResult
- ComputeNodeInformation
- ComputeNodeListResult
- ComputeNodeUser
- DeleteCertificateError
- EnvironmentSetting
- ErrorMessage
- ExitCodeMapping
- ExitCodeRangeMapping
- ExitConditions
- ExitOptions
- FileProperties
- ImageReference
- JobAddParameter
- JobConstraints
- JobDisableParameter
- JobExecutionInformation
- JobManagerTask
- JobPatchParameter
- JobPreparationAndReleaseTaskExecutionInformation
- JobPreparationTask
- JobPreparationTaskExecutionInformation
- JobReleaseTask
- JobReleaseTaskExecutionInformation
- JobScheduleAddParameter
- JobScheduleExecutionInformation
- JobSchedulePatchParameter
- JobScheduleStatistics
- JobScheduleUpdateParameter
- JobSchedulingError
- JobSpecification
- JobStatistics
- JobTerminateParameter
- JobUpdateParameter
- MetadataItem
- MultiInstanceSettings
- NameValuePair
- NetworkConfiguration
- NodeAgentSku
- NodeDisableSchedulingParameter
- NodeFile
- NodeFileListResult
- NodeRebootParameter
- NodeReimageParameter
- NodeRemoveParameter
- NodeUpdateUserParameter
- PoolAddParameter
- PoolEnableAutoScaleParameter
- PoolEvaluateAutoScaleParameter
- PoolInformation
- PoolListPoolUsageMetricsResult
- PoolPatchParameter
- PoolResizeParameter
- PoolSpecification
- PoolStatistics
- PoolUpdatePropertiesParameter
- PoolUpgradeOSParameter
- PoolUsageMetrics
- RecentJob
- ResizeError
- ResourceFile
- ResourceStatistics
- Schedule
- StartTask
- StartTaskInformation
- SubtaskInformation
- TaskAddCollectionParameter
- TaskAddCollectionResult
- TaskAddParameter
- TaskAddResult
- TaskConstraints
- TaskDependencies
- TaskExecutionInformation
- TaskIdRange
- TaskInformation
- TaskSchedulingError
- TaskSchedulingPolicy
- 任务统计
- 任务更新参数
- 使用统计
- 虚拟机配置
- Windows配置
授权文档
所有端点均不需要授权。