universityofadelaide / openshift-restclient-php
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-16 12:52:28 UTC
README
OpenShift 在 Kubernetes 的基础上提供构建、应用程序生命周期、镜像内容管理以及管理策略。该 API 允许对这些对象进行一致管理。所有 API 操作都通过授权令牌进行认证,该令牌作为服务账户的生成密钥(JWT 格式)或通过位于 /oauth/authorize 的本地 OAuth 端点提供。核心基础设施组件可能使用不需要认证的客户端证书。所有 API 操作都返回一个 'resourceVersion' 字符串,表示底层存储中对象的版本。标准的 LIST 操作对底层对象执行快照读取,返回一个表示所列对象一致版本的 resourceVersion。WATCH 操作允许客户端观察在提供的 resourceVersion 之后对一组对象的任何更新。通过从返回的资源版本开始列表和监视,客户端可以观察到一个或多个对象状态的持续视图。请注意,WATCH 总是返回提供资源版本之后的更新。监视可以扩展到过去的一定时间范围内 - 使用 etcd 2 时,监视窗口为 1000 个事件(在大型集群中可能仅为几秒钟),因此客户端必须明确处理“监视过旧错误”通过重新列出。对象被分为两大类 - 那些具有生命周期并必须反映集群状态的对象,以及那些没有状态的对象。具有生命周期的对象通常有三个主要部分:* 'metadata',对所有对象都通用 * 'spec',表示所需状态 * 'status',表示在当前时间有多少所需状态反映在集群上。没有状态的对象具有 'metadata',但可能缺少 'spec' 或 'status' 部分。对象分为命名空间范围(仅存在于命名空间内)和集群范围(存在于命名空间外)。命名空间范围的资源在删除命名空间时将被删除,如果命名空间尚未创建或正在删除过程中,则不能创建。集群范围的资源通常仅对管理员可访问 - 例如节点、持久卷和集群策略等资源。所有对象都具有一个由 'kind' 和 'apiVersion' 字段组合而成的模式。此模式仅对任何给定版本是累加的 - 不允许在不增加 apiVersion 的情况下进行向后不兼容的更改。服务器将返回并接受一系列标准响应,这些响应具有一个共同的模式 - 例如,常见的错误类型是 'metav1.Status'(下面将描述)并在 API 服务器上的任何错误时返回。API 可用多种序列化格式 - 默认为 JSON(Accept: application/json 和 Content-Type: application/json),但客户端也可以使用 YAML(application/yaml)或本地的 Protobuf 模式(application/vnd.kubernetes.protobuf)。请注意,WATCH API 调用的格式略有不同 - 对于 JSON,它返回换行符分隔的对象,而对于 Protobuf,它返回长度分隔的帧(4 字节网络顺序),其中包含一个 'versioned.Watch' Protobuf 对象。有关更多信息,请参阅 OpenShift 文档:https://docs.openshift.org。
此 PHP 包是由 Swagger Codegen 项目自动生成的
- API 版本:最新版
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
要求
PHP 5.5 及以上版本
安装与使用
Composer
通过Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/universityofadelaide/openshift-restclient-php.git"
}
],
"require": {
"universityofadelaide/openshift-restclient-php": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/openshift-restclient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请遵循安装程序,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: openshift_auth UniversityOfAdelaide\OpenShift\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $api_instance = new UniversityOfAdelaide\OpenShift\Api\ApisApi(); try { $result = $api_instance->getAPIVersions(); print_r($result); } catch (Exception $e) { echo 'Exception when calling ApisApi->getAPIVersions: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于https://
模型文档
- IntstrIntOrString
- ResourceQuantity
- RuntimeRawExtension
- V1APIGroup
- V1APIGroupList
- V1APIResource
- V1APIResourceList
- V1APIVersions
- V1AWSElasticBlockStoreVolumeSource
- V1Affinity
- V1AppliedClusterResourceQuota
- V1AppliedClusterResourceQuotaList
- V1AttachedVolume
- V1AzureDiskVolumeSource
- V1AzureFileVolumeSource
- V1BinaryBuildSource
- V1Binding
- V1BitbucketWebHookCause
- V1Build
- V1BuildConfig
- V1BuildConfigList
- V1BuildConfigSpec
- V1BuildConfigStatus
- V1BuildList
- V1BuildLog
- V1BuildOutput
- V1BuildPostCommitSpec
- V1BuildRequest
- V1BuildSource
- V1BuildSpec
- V1BuildStatus
- V1BuildStatusOutput
- V1BuildStatusOutputTo
- V1BuildStrategy
- V1BuildTriggerCause
- V1BuildTriggerPolicy
- V1Capabilities
- V1CephFSVolumeSource
- V1CinderVolumeSource
- V1ClusterNetwork
- V1ClusterNetworkList
- V1ClusterPolicy
- V1ClusterPolicyBinding
- V1ClusterPolicyBindingList
- V1ClusterPolicyList
- V1ClusterResourceQuota
- V1ClusterResourceQuotaList
- V1ClusterResourceQuotaSelector
- V1ClusterResourceQuotaSpec
- V1ClusterResourceQuotaStatus
- V1ClusterRole
- V1ClusterRoleBinding
- V1ClusterRoleBindingList
- V1ClusterRoleList
- V1ClusterRoleScopeRestriction
- V1ComponentCondition
- V1ComponentStatus
- V1ComponentStatusList
- V1ConfigMap
- V1ConfigMapEnvSource
- V1ConfigMapKeySelector
- V1ConfigMapList
- V1ConfigMapProjection
- V1ConfigMapVolumeSource
- V1Container
- V1ContainerImage
- V1ContainerPort
- V1ContainerState
- V1ContainerStateRunning
- V1ContainerStateTerminated
- V1ContainerStateWaiting
- V1ContainerStatus
- V1CrossVersionObjectReference
- V1CustomBuildStrategy
- V1CustomDeploymentStrategyParams
- V1DaemonEndpoint
- V1DeleteOptions
- V1DeploymentCause
- V1DeploymentCauseImageTrigger
- V1DeploymentCondition
- V1DeploymentConfig
- V1DeploymentConfigList
- V1DeploymentConfigRollback
- V1DeploymentConfigRollbackSpec
- V1DeploymentConfigSpec
- V1DeploymentConfigStatus
- V1DeploymentDetails
- V1DeploymentLog
- V1DeploymentRequest
- V1DeploymentStrategy
- V1DeploymentTriggerImageChangeParams
- V1DeploymentTriggerPolicy
- V1DeprecatedDownwardAPIVolumeFile
- V1DeprecatedDownwardAPIVolumeSource
- V1DockerBuildStrategy
- V1DockerStrategyOptions
- V1DownwardAPIProjection
- V1DownwardAPIVolumeFile
- V1DownwardAPIVolumeSource
- V1EgressNetworkPolicy
- V1EgressNetworkPolicyList
- V1EgressNetworkPolicyPeer
- V1EgressNetworkPolicyRule
- V1EgressNetworkPolicySpec
- V1EmptyDirVolumeSource
- V1EndpointAddress
- V1EndpointPort
- V1EndpointSubset
- V1Endpoints
- V1EndpointsList
- V1EnvFromSource
- V1EnvVar
- V1EnvVarSource
- V1Event
- V1EventList
- V1EventSource
- V1ExecAction
- V1ExecNewPodHook
- V1FCVolumeSource
- V1FSGroupStrategyOptions
- V1FlexVolumeSource
- V1FlockerVolumeSource
- V1GCEPersistentDiskVolumeSource
- V1GenericWebHookCause
- V1GitBuildSource
- V1GitHubWebHookCause
- V1GitLabWebHookCause
- V1GitRepoVolumeSource
- V1GitSourceRevision
- V1GlusterfsVolumeSource
- V1Group
- V1GroupList
- V1GroupRestriction
- V1GroupVersionForDiscovery
- V1HTTPGetAction
- V1HTTPHeader
- V1Handler
- V1HorizontalPodAutoscaler
- V1HorizontalPodAutoscalerList
- V1HorizontalPodAutoscalerSpec
- V1HorizontalPodAutoscalerStatus
- V1HostPathVolumeSource
- V1HostSubnet
- V1HostSubnetList
- V1IDRange
- V1ISCSIVolumeSource
- V1Identity
- V1IdentityList
- V1Image
- V1ImageChangeCause
- V1ImageChangeTrigger
- V1ImageImportSpec
- V1ImageImportStatus
- V1ImageLabel
- V1ImageLayer
- V1ImageList
- V1ImageLookupPolicy
- V1ImageSignature
- V1ImageSource
- V1ImageSourcePath
- V1ImageStream
- V1ImageStreamImage
- V1ImageStreamImport
- V1ImageStreamImportSpec
- V1ImageStreamImportStatus
- V1ImageStreamList
- V1ImageStreamMapping
- V1ImageStreamSpec
- V1ImageStreamStatus
- V1ImageStreamTag
- V1ImageStreamTagList
- V1JenkinsPipelineBuildStrategy
- V1Job
- V1JobCondition
- V1JobList
- V1JobSpec
- V1JobStatus
- V1KeyToPath
- V1LabelSelector
- V1LabelSelectorRequirement
- V1Lifecycle
- V1LifecycleHook
- V1LimitRange
- V1LimitRangeItem
- V1LimitRangeList
- V1LimitRangeSpec
- V1ListMeta
- V1LoadBalancerIngress
- V1LoadBalancerStatus
- V1LocalObjectReference
- V1LocalResourceAccessReview
- V1LocalSubjectAccessReview
- V1NFSVolumeSource
- V1NamedClusterRole
- V1NamedClusterRoleBinding
- V1NamedRole
- V1NamedRoleBinding
- V1NamedTagEventList
- V1Namespace
- V1NamespaceList
- V1NamespaceSpec
- V1NamespaceStatus
- V1NetNamespace
- V1NetNamespaceList
- V1Node
- V1NodeAddress
- V1NodeAffinity
- V1NodeCondition
- V1NodeDaemonEndpoints
- V1NodeList
- V1NodeSelector
- V1NodeSelectorRequirement
- V1NodeSelectorTerm
- V1NodeSpec
- V1NodeStatus
- V1NodeSystemInfo
- V1NonResourceAttributes
- V1OAuthAccessToken
- V1OAuthAccessTokenList
- V1OAuthAuthorizeToken
- V1OAuthAuthorizeTokenList
- V1OAuthClient
- V1OAuthClientAuthorization
- V1OAuthClientAuthorizationList
- V1OAuthClientList
- V1ObjectFieldSelector
- V1ObjectMeta
- V1ObjectReference
- V1OwnerReference
- V1Parameter
- V1PersistentVolume
- V1PersistentVolumeClaim
- V1PersistentVolumeClaimList
- V1PersistentVolumeClaimSpec
- V1PersistentVolumeClaimStatus
- V1PersistentVolumeClaimVolumeSource
- V1PersistentVolumeList
- V1PersistentVolumeSpec
- V1PersistentVolumeStatus
- V1PhotonPersistentDiskVolumeSource
- V1Pod
- V1PodAffinity
- V1PodAffinityTerm
- V1PodAntiAffinity
- V1PodCondition
- V1PodList
- V1PodSecurityContext
- V1PodSecurityPolicyReview
- V1PodSecurityPolicyReviewSpec
- V1PodSecurityPolicyReviewStatus
- V1PodSecurityPolicySelfSubjectReview
- V1PodSecurityPolicySelfSubjectReviewSpec
- V1PodSecurityPolicySubjectReview
- V1PodSecurityPolicySubjectReviewSpec
- V1PodSecurityPolicySubjectReviewStatus
- V1PodSpec
- V1PodStatus
- V1PodTemplate
- V1PodTemplateList
- V1PodTemplateSpec
- V1Policy
- V1PolicyBinding
- V1PolicyBindingList
- V1PolicyList
- V1PolicyRule
- V1PortworxVolumeSource
- V1Preconditions
- V1PreferredSchedulingTerm
- V1Probe
- V1Project
- V1ProjectList
- V1ProjectRequest
- V1ProjectSpec
- V1ProjectStatus
- V1ProjectedVolumeSource
- V1QuobyteVolumeSource
- V1RBDVolumeSource
- V1RecreateDeploymentStrategyParams
- V1ReplicationController
- V1ReplicationControllerCondition
- V1ReplicationControllerList
- V1ReplicationControllerSpec
- V1ReplicationControllerStatus
- V1RepositoryImportSpec
- V1RepositoryImportStatus
- V1ResourceAccessReview
- V1ResourceAttributes
- V1ResourceFieldSelector
- V1ResourceQuota
- V1ResourceQuotaList
- V1ResourceQuotaSpec
- V1ResourceQuotaStatus
- V1ResourceQuotaStatusByNamespace
- V1ResourceRequirements
- V1Role
- V1RoleBinding
- V1RoleBindingList
- V1RoleBindingRestriction
- V1RoleBindingRestrictionList
- V1RoleBindingRestrictionSpec
- V1RoleList
- V1RollingDeploymentStrategyParams
- V1Route
- V1RouteIngress
- V1RouteIngressCondition
- V1RouteList
- V1RoutePort
- V1RouteSpec
- V1RouteStatus
- V1RouteTargetReference
- V1RunAsUserStrategyOptions
- V1SELinuxContextStrategyOptions
- V1SELinuxOptions
- V1Scale
- V1ScaleIOVolumeSource
- V1ScaleSpec
- V1ScaleStatus
- V1ScopeRestriction
- V1Secret
- V1SecretBuildSource
- V1SecretEnvSource
- V1SecretKeySelector
- V1SecretList
- V1SecretProjection
- V1SecretSpec
- V1SecretVolumeSource
- V1SecurityContext
- V1SecurityContextConstraints
- V1SecurityContextConstraintsList
- V1SelfSubjectAccessReview
- V1SelfSubjectAccessReviewSpec
- V1SelfSubjectRulesReview
- V1SelfSubjectRulesReviewSpec
- V1ServerAddressByClientCIDR
- V1Service
- V1ServiceAccount
- V1ServiceAccountList
- V1ServiceAccountPodSecurityPolicyReviewStatus
- V1ServiceAccountReference
- V1ServiceAccountRestriction
- V1ServiceList
- V1ServicePort
- V1ServiceSpec
- V1ServiceStatus
- V1SignatureCondition
- V1SignatureIssuer
- V1SignatureSubject
- V1SourceBuildStrategy
- V1SourceControlUser
- V1SourceRevision
- V1StageInfo
- V1Status
- V1StatusCause
- V1StatusDetails
- V1StepInfo
- V1StorageClass
- V1StorageClassList
- V1SubjectAccessReview
- V1SubjectAccessReviewSpec
- V1SubjectAccessReviewStatus
- V1SubjectRulesReview
- V1SubjectRulesReviewSpec
- V1SubjectRulesReviewStatus
- V1SupplementalGroupsStrategyOptions
- V1TCPSocketAction
- V1TLSConfig
- V1TagEvent
- V1TagEventCondition
- V1TagImageHook
- V1TagImportPolicy
- V1TagReference
- V1TagReferencePolicy
- V1Taint
- V1Template
- V1TemplateList
- V1Time
- V1TokenReview
- V1TokenReviewSpec
- V1TokenReviewStatus
- V1Toleration
- V1User
- V1UserIdentityMapping
- V1UserInfo
- V1UserList
- V1UserRestriction
- V1Volume
- V1VolumeMount
- V1VolumeProjection
- V1VsphereVirtualDiskVolumeSource
- V1WatchEvent
- V1WebHookTrigger
- V1WeightedPodAffinityTerm
- V1alpha1PodPreset
- V1alpha1PodPresetList
- V1alpha1PodPresetSpec
- V1beta1APIVersion
- V1beta1CPUTargetUtilization
- V1beta1CertificateSigningRequest
- V1beta1CertificateSigningRequestCondition
- V1beta1CertificateSigningRequestList
- V1beta1CertificateSigningRequestSpec
- V1beta1CertificateSigningRequestStatus
- V1beta1ClusterRole
- V1beta1ClusterRoleBinding
- V1beta1ClusterRoleBindingList
- V1beta1ClusterRoleList
- V1beta1DaemonSet
- V1beta1DaemonSetList
- V1beta1DaemonSetSpec
- V1beta1DaemonSetStatus
- V1beta1DaemonSetUpdateStrategy
- V1beta1Deployment
- V1beta1DeploymentCondition
- V1beta1DeploymentList
- V1beta1DeploymentRollback
- V1beta1DeploymentSpec
- V1beta1DeploymentStatus
- V1beta1DeploymentStrategy
- V1beta1Eviction
- V1beta1FSGroupStrategyOptions
- V1beta1HTTPIngressPath
- V1beta1HTTPIngressRuleValue
- V1beta1HorizontalPodAutoscaler
- V1beta1HorizontalPodAutoscalerList
- V1beta1HorizontalPodAutoscalerSpec
- V1beta1HorizontalPodAutoscalerStatus
- V1beta1HostPortRange
- V1beta1IDRange
- V1beta1Ingress
- V1beta1IngressBackend
- V1beta1IngressList
- V1beta1IngressRule
- V1beta1IngressSpec
- V1beta1IngressStatus
- V1beta1IngressTLS
- V1beta1LocalSubjectAccessReview
- V1beta1NetworkPolicy
- V1beta1NetworkPolicyIngressRule
- V1beta1NetworkPolicyList
- V1beta1NetworkPolicyPeer
- V1beta1NetworkPolicyPort
- V1beta1NetworkPolicySpec
- V1beta1NonResourceAttributes
- V1beta1PodDisruptionBudget
- V1beta1PodDisruptionBudgetList
- V1beta1PodDisruptionBudgetSpec
- V1beta1PodDisruptionBudgetStatus
- V1beta1PodSecurityPolicy
- V1beta1PodSecurityPolicyList
- V1beta1PodSecurityPolicySpec
- V1beta1PolicyRule
- V1beta1ReplicaSet
- V1beta1ReplicaSetCondition
- V1beta1ReplicaSetList
- V1beta1ReplicaSetSpec
- V1beta1ReplicaSetStatus
- V1beta1ResourceAttributes
- V1beta1Role
- V1beta1RoleBinding
- V1beta1RoleBindingList
- V1beta1RoleList
- V1beta1RoleRef
- V1beta1RollbackConfig
- V1beta1RollingUpdateDaemonSet
- V1beta1RollingUpdateDeployment
- V1beta1RunAsUserStrategyOptions
- V1beta1SELinuxStrategyOptions
- V1beta1Scale
- V1beta1ScaleSpec
- V1beta1ScaleStatus
- V1beta1SelfSubjectAccessReview
- V1beta1SelfSubjectAccessReviewSpec
- V1beta1StatefulSet
- V1beta1StatefulSetList
- V1beta1StatefulSetSpec
- V1beta1StatefulSetStatus
- V1beta1StorageClass
- V1beta1StorageClassList
- V1beta1Subject
- V1beta1SubjectAccessReview
- V1beta1SubjectAccessReviewSpec
- V1beta1SubjectAccessReviewStatus
- V1beta1SubresourceReference
- 版本1beta1补充组策略选项
- 版本1beta1第三方资源
- 版本1beta1第三方资源列表
- 版本1beta1令牌审查
- 版本1beta1令牌审查规范
- 版本1beta1令牌审查状态
- 版本1beta1用户信息
- 版本2alpha1定时作业
- 版本2alpha1定时作业列表
- 版本2alpha1定时作业规范
- 版本2alpha1定时作业状态
- 版本2alpha1跨版本对象引用
- 版本2alpha1水平 pod 自动伸缩器
- 版本2alpha1水平 pod 自动伸缩器列表
- 版本2alpha1水平 pod 自动伸缩器规范
- 版本2alpha1水平 pod 自动伸缩器状态
- 版本2alpha1作业模板规范
- 版本2alpha1指标规范
- 版本2alpha1指标状态
- 版本2alpha1对象指标源
- 版本2alpha1对象指标状态
- 版本2alpha1 pod 指标源
- 版本2alpha1 pod 指标状态
- 版本2alpha1资源指标源
- 版本2alpha1资源指标状态
- 版本信息
授权文档
openshift_auth
- 类型: OAuth
- 流程: 隐式
- 授权 URL: https:///oauth/authorize
- 作用域:
- 写入: openshift: 修改
- 读取: openshift: 读取