Skip to content

Latest commit

 

History

History
637 lines (593 loc) · 54.3 KB

README.md

File metadata and controls

637 lines (593 loc) · 54.3 KB

Go API client for paas

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: v1.11
  • Package version: 1.1
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import paas "github.com/hamidfzm/arvancloud-go/paas"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), paas.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), paas.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), paas.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), paas.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://napi.arvancloud.ir/paas/v1/regions/ir-thr-at1/o

Class Method HTTP request Description
BuildConfigAPI CreateNamespacedBuildConfig Post /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs create a BuildConfig
BuildConfigAPI CreateNamespacedBuildConfigInstantiate Post /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs/{name}/instantiate create instantiate of a BuildConfig
BuildConfigAPI DeleteNamespacedBuildConfig Delete /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs/{name} delete a BuildConfig
BuildConfigAPI DeletecollectionNamespacedBuildConfig Delete /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs delete collection of BuildConfig
BuildConfigAPI ListNamespacedBuildConfig Get /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs list or watch objects of kind BuildConfig
BuildConfigAPI PatchNamespacedBuildConfig Patch /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs/{name} partially update the specified BuildConfig
BuildConfigAPI ReadNamespacedBuildConfig Get /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs/{name} read the specified BuildConfig
BuildConfigAPI ReplaceNamespacedBuildConfig Put /apis/build.openshift.io/v1/namespaces/{namespace}/buildconfigs/{name} replace the specified BuildConfig
BuildsAPI CreateNamespacedBuild Post /apis/build.openshift.io/v1/namespaces/{namespace}/builds create a Build
BuildsAPI DeleteNamespacedBuild Delete /apis/build.openshift.io/v1/namespaces/{namespace}/builds/{name} delete a Build
BuildsAPI DeletecollectionNamespacedBuild Delete /apis/build.openshift.io/v1/namespaces/{namespace}/builds delete collection of Build
BuildsAPI ListNamespacedBuild Get /apis/build.openshift.io/v1/namespaces/{namespace}/builds list or watch objects of kind Build
BuildsAPI PatchNamespacedBuild Patch /apis/build.openshift.io/v1/namespaces/{namespace}/builds/{name} partially update the specified Build
BuildsAPI ReadNamespacedBuild Get /apis/build.openshift.io/v1/namespaces/{namespace}/builds/{name} read the specified Build
BuildsAPI ReadNamespacedBuildLog Get /apis/build.openshift.io/v1/namespaces/{namespace}/builds/{name}/log read log of the specified Build
BuildsAPI ReplaceNamespacedBuild Put /apis/build.openshift.io/v1/namespaces/{namespace}/builds/{name} replace the specified Build
ConfigMapAPI CreateNamespacedConfigMap Post /api/v1/namespaces/{namespace}/configmaps create a ConfigMap
ConfigMapAPI DeleteNamespacedConfigMap Delete /api/v1/namespaces/{namespace}/configmaps/{name} delete a ConfigMap
ConfigMapAPI DeletecollectionNamespacedConfigMap Delete /api/v1/namespaces/{namespace}/configmaps delete collection of ConfigMap
ConfigMapAPI ListNamespacedConfigMap Get /api/v1/namespaces/{namespace}/configmaps list or watch objects of kind ConfigMap
ConfigMapAPI PatchNamespacedConfigMap Patch /api/v1/namespaces/{namespace}/configmaps/{name} partially update the specified ConfigMap
ConfigMapAPI ReadNamespacedConfigMap Get /api/v1/namespaces/{namespace}/configmaps/{name} read the specified ConfigMap
ConfigMapAPI ReplaceNamespacedConfigMap Put /api/v1/namespaces/{namespace}/configmaps/{name} replace the specified ConfigMap
DeploymentAPI CreateNamespacedDeployment Post /apis/apps/v1/namespaces/{namespace}/deployments create a Deployment
DeploymentAPI DeleteNamespacedDeployment Delete /apis/apps/v1/namespaces/{namespace}/deployments/{name} delete a Deployment
DeploymentAPI DeletecollectionNamespacedDeployment Delete /apis/apps/v1/namespaces/{namespace}/deployments delete collection of Deployment
DeploymentAPI ListNamespacedDeployment Get /apis/apps/v1/namespaces/{namespace}/deployments list or watch objects of kind Deployment
DeploymentAPI PatchNamespacedDeployment Patch /apis/apps/v1/namespaces/{namespace}/deployments/{name} partially update the specified Deployment
DeploymentAPI PatchNamespacedDeploymentScale Patch /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale partially update scale of the specified Deployment
DeploymentAPI PatchNamespacedDeploymentStatus Patch /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status partially update status of the specified Deployment
DeploymentAPI ReadNamespacedDeployment Get /apis/apps/v1/namespaces/{namespace}/deployments/{name} read the specified Deployment
DeploymentAPI ReadNamespacedDeploymentScale Get /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale read scale of the specified Deployment
DeploymentAPI ReadNamespacedDeploymentStatus Get /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status read status of the specified Deployment
DeploymentAPI ReplaceNamespacedDeployment Put /apis/apps/v1/namespaces/{namespace}/deployments/{name} replace the specified Deployment
DeploymentAPI ReplaceNamespacedDeploymentScale Put /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale replace scale of the specified Deployment
DeploymentAPI ReplaceNamespacedDeploymentStatus Put /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status replace status of the specified Deployment
DeploymentConfigAPI CreateNamespacedDeploymentConfig Post /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs create a DeploymentConfig
DeploymentConfigAPI DeleteNamespacedDeploymentConfig Delete /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name} delete a DeploymentConfig
DeploymentConfigAPI DeletecollectionNamespacedDeploymentConfig Delete /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs delete collection of DeploymentConfig
DeploymentConfigAPI ListNamespacedDeploymentConfig Get /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs list or watch objects of kind DeploymentConfig
DeploymentConfigAPI PatchNamespacedDeploymentConfig Patch /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name} partially update the specified DeploymentConfig
DeploymentConfigAPI PatchNamespacedDeploymentConfigScale Patch /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale partially update scale of the specified DeploymentConfig
DeploymentConfigAPI ReadNamespacedDeploymentConfig Get /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name} read the specified DeploymentConfig
DeploymentConfigAPI ReadNamespacedDeploymentConfigScale Get /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale read scale of the specified DeploymentConfig
DeploymentConfigAPI ReplaceNamespacedDeploymentConfig Put /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name} replace the specified DeploymentConfig
DeploymentConfigAPI ReplaceNamespacedDeploymentConfigScale Put /apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale replace scale of the specified DeploymentConfig
EventsAPI ListNamespacedEvent Get /api/v1/namespaces/{namespace}/events list or watch objects of kind Event
EventsAPI ReadNamespacedEvent Get /api/v1/namespaces/{namespace}/events/{name} read the specified Event
HorizontalPodAutoscalerAPI CreateNamespacedHorizontalPodAutoscaler Post /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers create a HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI DeleteNamespacedHorizontalPodAutoscaler Delete /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} delete a HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI DeletecollectionNamespacedHorizontalPodAutoscaler Delete /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers delete collection of HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI ListNamespacedHorizontalPodAutoscaler Get /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers list or watch objects of kind HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI PatchNamespacedHorizontalPodAutoscaler Patch /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} partially update the specified HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI PatchNamespacedHorizontalPodAutoscalerStatus Patch /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status partially update status of the specified HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI ReadNamespacedHorizontalPodAutoscaler Get /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} read the specified HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI ReadNamespacedHorizontalPodAutoscalerStatus Get /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status read status of the specified HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI ReplaceNamespacedHorizontalPodAutoscaler Put /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name} replace the specified HorizontalPodAutoscaler
HorizontalPodAutoscalerAPI ReplaceNamespacedHorizontalPodAutoscalerStatus Put /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status replace status of the specified HorizontalPodAutoscaler
ImageStreamAPI CreateNamespacedImageStream Post /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams create an ImageStream
ImageStreamAPI DeleteNamespacedImageStream Delete /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name} delete an ImageStream
ImageStreamAPI DeletecollectionNamespacedImageStream Delete /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams delete collection of ImageStream
ImageStreamAPI ListNamespacedImageStream Get /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams list or watch objects of kind ImageStream
ImageStreamAPI PatchNamespacedImageStream Patch /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name} partially update the specified ImageStream
ImageStreamAPI ReadNamespacedImageStream Get /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name} read the specified ImageStream
ImageStreamAPI ReplaceNamespacedImageStream Put /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreams/{name} replace the specified ImageStream
ImageStreamTagAPI CreateNamespacedImageStreamTag Post /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreamtags create an ImageStreamTag
ImageStreamTagAPI DeleteNamespacedImageStreamTag Delete /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreamtags/{name} delete an ImageStreamTag
ImageStreamTagAPI ListNamespacedImageStreamTag Get /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreamtags list objects of kind ImageStreamTag
ImageStreamTagAPI PatchNamespacedImageStreamTag Patch /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreamtags/{name} partially update the specified ImageStreamTag
ImageStreamTagAPI ReadNamespacedImageStreamTag Get /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreamtags/{name} read the specified ImageStreamTag
ImageStreamTagAPI ReplaceNamespacedImageStreamTag Put /apis/image.openshift.io/v1/namespaces/{namespace}/imagestreamtags/{name} replace the specified ImageStreamTag
PersistentVolumeClaimAPI CreateNamespacedPersistentVolumeClaim Post /api/v1/namespaces/{namespace}/persistentvolumeclaims create a PersistentVolumeClaim
PersistentVolumeClaimAPI DeleteNamespacedPersistentVolumeClaim Delete /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} delete a PersistentVolumeClaim
PersistentVolumeClaimAPI DeletecollectionNamespacedPersistentVolumeClaim Delete /api/v1/namespaces/{namespace}/persistentvolumeclaims delete collection of PersistentVolumeClaim
PersistentVolumeClaimAPI ListNamespacedPersistentVolumeClaim Get /api/v1/namespaces/{namespace}/persistentvolumeclaims list or watch objects of kind PersistentVolumeClaim
PersistentVolumeClaimAPI PatchNamespacedPersistentVolumeClaim Patch /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} partially update the specified PersistentVolumeClaim
PersistentVolumeClaimAPI ReadNamespacedPersistentVolumeClaim Get /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} read the specified PersistentVolumeClaim
PersistentVolumeClaimAPI ReplaceNamespacedPersistentVolumeClaim Put /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} replace the specified PersistentVolumeClaim
PodAPI ConnectGetNamespacedPodExec Get /api/v1/namespaces/{namespace}/pods/{name}/exec connect GET requests to exec of Pod
PodAPI ConnectPostNamespacedPodExec Post /api/v1/namespaces/{namespace}/pods/{name}/exec connect POST requests to exec of Pod
PodAPI CreateNamespacedPod Post /api/v1/namespaces/{namespace}/pods create a Pod
PodAPI DeleteNamespacedPod Delete /api/v1/namespaces/{namespace}/pods/{name} delete a Pod
PodAPI DeletecollectionNamespacedPod Delete /api/v1/namespaces/{namespace}/pods delete collection of Pod
PodAPI ListNamespacedPod Get /api/v1/namespaces/{namespace}/pods list or watch objects of kind Pod
PodAPI PatchNamespacedPod Patch /api/v1/namespaces/{namespace}/pods/{name} partially update the specified Pod
PodAPI ReadNamespacedPod Get /api/v1/namespaces/{namespace}/pods/{name} read the specified Pod
PodAPI ReadNamespacedPodLog Get /api/v1/namespaces/{namespace}/pods/{name}/log read log of the specified Pod
PodAPI ReplaceNamespacedPod Put /api/v1/namespaces/{namespace}/pods/{name} replace the specified Pod
ReplicaSetAPI CreateNamespacedReplicaSet Post /apis/apps/v1/namespaces/{namespace}/replicasets create a ReplicaSet
ReplicaSetAPI DeleteNamespacedReplicaSet Delete /apis/apps/v1/namespaces/{namespace}/replicasets/{name} delete a ReplicaSet
ReplicaSetAPI DeletecollectionNamespacedReplicaSet Delete /apis/apps/v1/namespaces/{namespace}/replicasets delete collection of ReplicaSet
ReplicaSetAPI ListNamespacedReplicaSet Get /apis/apps/v1/namespaces/{namespace}/replicasets list or watch objects of kind ReplicaSet
ReplicaSetAPI PatchNamespacedReplicaSet Patch /apis/apps/v1/namespaces/{namespace}/replicasets/{name} partially update the specified ReplicaSet
ReplicaSetAPI PatchNamespacedReplicaSetScale Patch /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale partially update scale of the specified ReplicaSet
ReplicaSetAPI PatchNamespacedReplicaSetStatus Patch /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status partially update status of the specified ReplicaSet
ReplicaSetAPI ReadNamespacedReplicaSet Get /apis/apps/v1/namespaces/{namespace}/replicasets/{name} read the specified ReplicaSet
ReplicaSetAPI ReadNamespacedReplicaSetScale Get /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale read scale of the specified ReplicaSet
ReplicaSetAPI ReadNamespacedReplicaSetStatus Get /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status read status of the specified ReplicaSet
ReplicaSetAPI ReplaceNamespacedReplicaSet Put /apis/apps/v1/namespaces/{namespace}/replicasets/{name} replace the specified ReplicaSet
ReplicaSetAPI ReplaceNamespacedReplicaSetScale Put /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale replace scale of the specified ReplicaSet
ReplicaSetAPI ReplaceNamespacedReplicaSetStatus Put /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status replace status of the specified ReplicaSet
ResourceQuotaAPI ListNamespacedResourceQuota Get /api/v1/namespaces/{namespace}/resourcequotas list or watch objects of kind ResourceQuota
RouteAPI CreateNamespacedRoute Post /apis/route.openshift.io/v1/namespaces/{namespace}/routes create a Route
RouteAPI DeleteNamespacedRoute Delete /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name} delete a Route
RouteAPI DeletecollectionNamespacedRoute Delete /apis/route.openshift.io/v1/namespaces/{namespace}/routes delete collection of Route
RouteAPI ListNamespacedRoute Get /apis/route.openshift.io/v1/namespaces/{namespace}/routes list or watch objects of kind Route
RouteAPI PatchNamespacedRoute Patch /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name} partially update the specified Route
RouteAPI PatchNamespacedRouteStatus Patch /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name}/status partially update status of the specified Route
RouteAPI ReadNamespacedRoute Get /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name} read the specified Route
RouteAPI ReadNamespacedRouteStatus Get /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name}/status read status of the specified Route
RouteAPI ReplaceNamespacedRoute Put /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name} replace the specified Route
RouteAPI ReplaceNamespacedRouteStatus Put /apis/route.openshift.io/v1/namespaces/{namespace}/routes/{name}/status replace status of the specified Route
SecretAPI CreateNamespacedSecret Post /api/v1/namespaces/{namespace}/secrets create a Secret
SecretAPI DeleteNamespacedSecret Delete /api/v1/namespaces/{namespace}/secrets/{name} delete a Secret
SecretAPI DeletecollectionNamespacedSecret Delete /api/v1/namespaces/{namespace}/secrets delete collection of Secret
SecretAPI ListNamespacedSecret Get /api/v1/namespaces/{namespace}/secrets list or watch objects of kind Secret
SecretAPI PatchNamespacedSecret Patch /api/v1/namespaces/{namespace}/secrets/{name} partially update the specified Secret
SecretAPI ReadNamespacedSecret Get /api/v1/namespaces/{namespace}/secrets/{name} read the specified Secret
SecretAPI ReplaceNamespacedSecret Put /api/v1/namespaces/{namespace}/secrets/{name} replace the specified Secret
ServiceAPI CreateNamespacedService Post /api/v1/namespaces/{namespace}/services create a Service
ServiceAPI DeleteNamespacedService Delete /api/v1/namespaces/{namespace}/services/{name} delete a Service
ServiceAPI ListNamespacedService Get /api/v1/namespaces/{namespace}/services list or watch objects of kind Service
ServiceAPI PatchNamespacedService Patch /api/v1/namespaces/{namespace}/services/{name} partially update the specified Service
ServiceAPI ReadNamespacedService Get /api/v1/namespaces/{namespace}/services/{name} read the specified Service
ServiceAPI ReplaceNamespacedService Put /api/v1/namespaces/{namespace}/services/{name} replace the specified Service
StatefulSetAPI CreateNamespacedStatefulSet Post /apis/apps/v1/namespaces/{namespace}/statefulsets create a StatefulSet
StatefulSetAPI DeleteNamespacedStatefulSet Delete /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} delete a StatefulSet
StatefulSetAPI DeletecollectionNamespacedStatefulSet Delete /apis/apps/v1/namespaces/{namespace}/statefulsets delete collection of StatefulSet
StatefulSetAPI ListNamespacedStatefulSet Get /apis/apps/v1/namespaces/{namespace}/statefulsets list or watch objects of kind StatefulSet
StatefulSetAPI PatchNamespacedStatefulSet Patch /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} partially update the specified StatefulSet
StatefulSetAPI PatchNamespacedStatefulSetScale Patch /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale partially update scale of the specified StatefulSet
StatefulSetAPI PatchNamespacedStatefulSetStatus Patch /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status partially update status of the specified StatefulSet
StatefulSetAPI ReadNamespacedStatefulSet Get /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} read the specified StatefulSet
StatefulSetAPI ReadNamespacedStatefulSetScale Get /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale read scale of the specified StatefulSet
StatefulSetAPI ReadNamespacedStatefulSetStatus Get /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status read status of the specified StatefulSet
StatefulSetAPI ReplaceNamespacedStatefulSet Put /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} replace the specified StatefulSet
StatefulSetAPI ReplaceNamespacedStatefulSetScale Put /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale replace scale of the specified StatefulSet
StatefulSetAPI ReplaceNamespacedStatefulSetStatus Put /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status replace status of the specified StatefulSet
TemplateAPI DeleteNamespacedTemplate Delete /apis/template.openshift.io/v1/namespaces/{namespace}/templates/{name} delete a Template
TemplateAPI ListNamespacedTemplate Get /apis/template.openshift.io/v1/namespaces/{namespace}/templates list or watch objects of kind Template
TemplateAPI ListTemplateForAllNamespaces Get /apis/template.openshift.io/v1/templates list or watch objects of kind Template
TemplateAPI PatchNamespacedTemplate Patch /apis/template.openshift.io/v1/namespaces/{namespace}/templates/{name} partially update the specified Template
TemplateAPI ReadNamespacedTemplate Get /apis/template.openshift.io/v1/namespaces/{namespace}/templates/{name} read the specified Template
TemplateAPI ReplaceNamespacedTemplate Put /apis/template.openshift.io/v1/namespaces/{namespace}/templates/{name} replace the specified Template
TemplateInstanceAPI CreateNamespacedTemplateInstance Post /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances create a TemplateInstance
TemplateInstanceAPI DeleteNamespacedTemplateInstance Delete /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances/{name} delete a TemplateInstance
TemplateInstanceAPI DeletecollectionNamespacedTemplateInstance Delete /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances delete collection of TemplateInstance
TemplateInstanceAPI ListNamespacedTemplateInstance Get /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances list or watch objects of kind TemplateInstance
TemplateInstanceAPI ListTemplateInstanceForAllNamespaces Get /apis/template.openshift.io/v1/templateinstances list or watch objects of kind TemplateInstance
TemplateInstanceAPI PatchNamespacedTemplateInstance Patch /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances/{name} partially update the specified TemplateInstance
TemplateInstanceAPI ReadNamespacedTemplateInstance Get /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances/{name} read the specified TemplateInstance
TemplateInstanceAPI ReadNamespacedTemplateInstanceStatus Get /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances/{name}/status read status of the specified TemplateInstance
TemplateInstanceAPI ReplaceNamespacedTemplateInstance Put /apis/template.openshift.io/v1/namespaces/{namespace}/templateinstances/{name} replace the specified TemplateInstance

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		sw.ContextAPIKeys,
		map[string]sw.APIKey{
			"Authorization": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author