diff --git a/adaptor/pcm_pod/server/ali/create_container_group.go b/adaptor/pcm_pod/server/ali/create_container_group.go index 947e0fa8..f42e65cc 100644 --- a/adaptor/pcm_pod/server/ali/create_container_group.go +++ b/adaptor/pcm_pod/server/ali/create_container_group.go @@ -1,7 +1,7 @@ package ali import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server" "code.gitlink.org.cn/JCCE/PCM.git/common/tenanter" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" diff --git a/adaptor/pcm_pod/server/ali/delete_container_group.go b/adaptor/pcm_pod/server/ali/delete_container_group.go index 6eb96b49..479a98e9 100644 --- a/adaptor/pcm_pod/server/ali/delete_container_group.go +++ b/adaptor/pcm_pod/server/ali/delete_container_group.go @@ -16,7 +16,7 @@ package ali import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server" "code.gitlink.org.cn/JCCE/PCM.git/common/tenanter" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" diff --git a/adaptor/pcm_pod/server/ali/describe_container_groups.go b/adaptor/pcm_pod/server/ali/describe_container_groups.go index f672f057..07a237dc 100644 --- a/adaptor/pcm_pod/server/ali/describe_container_groups.go +++ b/adaptor/pcm_pod/server/ali/describe_container_groups.go @@ -1,7 +1,7 @@ package ali import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" diff --git a/adaptor/pcm_pod/server/ali/update_container_group.go b/adaptor/pcm_pod/server/ali/update_container_group.go index 00234056..d93651a7 100644 --- a/adaptor/pcm_pod/server/ali/update_container_group.go +++ b/adaptor/pcm_pod/server/ali/update_container_group.go @@ -16,7 +16,7 @@ package ali import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server" "code.gitlink.org.cn/JCCE/PCM.git/common/tenanter" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" diff --git a/adaptor/pcm_pod/server/kubernetes/api/core/v1/types.go b/adaptor/pcm_pod/server/kubernetes/api/core/v1/types.go index 82ed68fb..79b68fce 100644 --- a/adaptor/pcm_pod/server/kubernetes/api/core/v1/types.go +++ b/adaptor/pcm_pod/server/kubernetes/api/core/v1/types.go @@ -299,7 +299,7 @@ const ( // +genclient // +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PersistentVolume (PV) is a storage resource provisioned by an administrator. // It is analogous to a node. @@ -415,7 +415,7 @@ type PersistentVolumeStatus struct { Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PersistentVolumeList is a list of PersistentVolume items. type PersistentVolumeList struct { @@ -430,7 +430,7 @@ type PersistentVolumeList struct { } // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PersistentVolumeClaim is a user's request for and claim to a persistent volume type PersistentVolumeClaim struct { @@ -452,7 +452,7 @@ type PersistentVolumeClaim struct { Status PersistentVolumeClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PersistentVolumeClaimList is a list of PersistentVolumeClaim items. type PersistentVolumeClaimList struct { @@ -3408,7 +3408,8 @@ type PodDNSConfigOption struct { // IP address information for entries in the (plural) PodIPs field. // Each entry includes: -// IP: An IP address allocated to the pod. Routable at least within the cluster. +// +// IP: An IP address allocated to the pod. Routable at least within the cluster. type PodIP struct { // ip is an IP address (IPv4 or IPv6) assigned to the pod IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` @@ -3664,7 +3665,7 @@ type PodStatus struct { EphemeralContainerStatuses []ContainerStatus `json:"ephemeralContainerStatuses,omitempty" protobuf:"bytes,13,rep,name=ephemeralContainerStatuses"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded type PodStatusResult struct { @@ -3685,7 +3686,7 @@ type PodStatusResult struct { // +genclient // +genclient:method=GetEphemeralContainers,verb=get,subresource=ephemeralcontainers,result=EphemeralContainers // +genclient:method=UpdateEphemeralContainers,verb=update,subresource=ephemeralcontainers,input=EphemeralContainers,result=EphemeralContainers -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Pod is a collection of containers that can run on a host. This resource is created // by clients and scheduled onto hosts. @@ -3710,7 +3711,7 @@ type Pod struct { Status PodStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodList is a list of Pods. type PodList struct { @@ -3739,7 +3740,7 @@ type PodTemplateSpec struct { } // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodTemplate describes a template for creating copies of a predefined pod. type PodTemplate struct { @@ -3755,7 +3756,7 @@ type PodTemplate struct { Template PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodTemplateList is a list of PodTemplates. type PodTemplateList struct { @@ -3863,9 +3864,9 @@ type ReplicationControllerCondition struct { } // +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/api/autoscaling/v1.Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/api/autoscaling/v1.Scale,result=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/api/autoscaling/v1.Scale -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +genclient:method=GetScale,verb=get,subresource=scale,result=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/api/autoscaling/v1.Scale +// +genclient:method=UpdateScale,verb=update,subresource=scale,input=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/api/autoscaling/v1.Scale,result=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/api/autoscaling/v1.Scale +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ReplicationController represents the configuration of a replication controller. type ReplicationController struct { @@ -3891,7 +3892,7 @@ type ReplicationController struct { Status ReplicationControllerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ReplicationControllerList is a collection of replication controllers. type ReplicationControllerList struct { @@ -4374,7 +4375,7 @@ type ServicePort struct { // +genclient // +genclient:skipVerbs=deleteCollection -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Service is a named abstraction of software service (for example, mysql) consisting of local port // (for example 3306) that the proxy listens on, and the selector that determines which pods @@ -4405,7 +4406,7 @@ const ( ClusterIPNone = "None" ) -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ServiceList holds a list of services. type ServiceList struct { @@ -4420,8 +4421,8 @@ type ServiceList struct { } // +genclient -// +genclient:method=CreateToken,verb=create,subresource=token,input=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/api/authentication/v1.TokenRequest,result=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/api/authentication/v1.TokenRequest -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +genclient:method=CreateToken,verb=create,subresource=token,input=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/api/authentication/v1.TokenRequest,result=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/api/authentication/v1.TokenRequest +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ServiceAccount binds together: // * a name, understood by users, and perhaps by peripheral systems, for an identity @@ -4454,7 +4455,7 @@ type ServiceAccount struct { AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,4,opt,name=automountServiceAccountToken"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ServiceAccountList is a list of ServiceAccount objects type ServiceAccountList struct { @@ -4470,20 +4471,21 @@ type ServiceAccountList struct { } // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Endpoints is a collection of endpoints that implement the actual service. Example: -// Name: "mysvc", -// Subsets: [ -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// }, -// { -// Addresses: [{"ip": "10.10.3.3"}], -// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] -// }, -// ] +// +// Name: "mysvc", +// Subsets: [ +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// }, +// { +// Addresses: [{"ip": "10.10.3.3"}], +// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] +// }, +// ] type Endpoints struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. @@ -4505,13 +4507,16 @@ type Endpoints struct { // EndpointSubset is a group of addresses with a common set of ports. The // expanded set of endpoints is the Cartesian product of Addresses x Ports. // For example, given: -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// } +// +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// } +// // The resulting set of endpoints can be viewed as: -// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], -// b: [ 10.10.1.1:309, 10.10.2.2:309 ] +// +// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], +// b: [ 10.10.1.1:309, 10.10.2.2:309 ] type EndpointSubset struct { // IP addresses which offer the related ports that are marked as ready. These endpoints // should be considered safe for load balancers and clients to utilize. @@ -4577,7 +4582,7 @@ type EndpointPort struct { AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,4,opt,name=appProtocol"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // EndpointsList is a list of endpoints. type EndpointsList struct { @@ -4970,7 +4975,7 @@ type ResourceList map[ResourceName]resource.Quantity // +genclient // +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Node is a worker node in Kubernetes. // Each node will have a unique identifier in the cache (i.e. in etcd). @@ -4994,7 +4999,7 @@ type Node struct { Status NodeStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // NodeList is the whole list of all Nodes which have been registered with master. type NodeList struct { @@ -5088,7 +5093,7 @@ type NamespaceCondition struct { // +genclient // +genclient:nonNamespaced // +genclient:skipVerbs=deleteCollection -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Namespace provides a scope for Names. // Use of multiple namespaces is optional. @@ -5110,7 +5115,7 @@ type Namespace struct { Status NamespaceStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // NamespaceList is a list of Namespaces. type NamespaceList struct { @@ -5125,7 +5130,7 @@ type NamespaceList struct { Items []Namespace `json:"items" protobuf:"bytes,2,rep,name=items"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Binding ties one object to another; for example, a pod is bound to a node by a scheduler. // Deprecated in 1.7, please use the bindings subresource of pods instead. @@ -5140,7 +5145,7 @@ type Binding struct { Target ObjectReference `json:"target" protobuf:"bytes,2,opt,name=target"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // A list of ephemeral containers used with the Pod ephemeralcontainers subresource. type EphemeralContainers struct { @@ -5161,11 +5166,11 @@ type EphemeralContainers struct { type Preconditions struct { // Specifies the target UID. // +optional - UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/types.UID"` + UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/types.UID"` } // +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodLogOptions is the query options for a Pod's logs REST call. type PodLogOptions struct { @@ -5217,7 +5222,7 @@ type PodLogOptions struct { } // +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodAttachOptions is the query options to a Pod's remote attach call. // --- @@ -5255,7 +5260,7 @@ type PodAttachOptions struct { } // +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodExecOptions is the query options to a Pod's remote exec call. // --- @@ -5294,7 +5299,7 @@ type PodExecOptions struct { } // +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodPortForwardOptions is the query options to a Pod's port forward call // when using WebSockets. @@ -5312,7 +5317,7 @@ type PodPortForwardOptions struct { } // +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // PodProxyOptions is the query options to a Pod's proxy call. type PodProxyOptions struct { @@ -5324,7 +5329,7 @@ type PodProxyOptions struct { } // +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // NodeProxyOptions is the query options to a Node's proxy call. type NodeProxyOptions struct { @@ -5336,7 +5341,7 @@ type NodeProxyOptions struct { } // +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ServiceProxyOptions is the query options to a Service's proxy call. type ServiceProxyOptions struct { @@ -5364,9 +5369,10 @@ type ServiceProxyOptions struct { // and the version of the actual struct is irrelevant. // 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type // will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. +// // Instead of using this type, create a locally provided and used type that is well-focused on your reference. // For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object type ObjectReference struct { // Kind of the referent. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds @@ -5383,7 +5389,7 @@ type ObjectReference struct { // UID of the referent. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids // +optional - UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/types.UID"` + UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/types.UID"` // API version of the referent. // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,5,opt,name=apiVersion"` @@ -5428,7 +5434,7 @@ type TypedLocalObjectReference struct { Name string `json:"name" protobuf:"bytes,3,opt,name=name"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // SerializedReference is a reference to serialized object. type SerializedReference struct { @@ -5457,7 +5463,7 @@ const ( ) // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Event is a report of an event somewhere in the cluster. Events // have a limited retention time and triggers and messages may evolve @@ -5541,7 +5547,7 @@ type EventSeries struct { // +k8s:deprecated=state,protobuf=3 } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // EventList is a list of events. type EventList struct { @@ -5555,7 +5561,7 @@ type EventList struct { Items []Event `json:"items" protobuf:"bytes,2,rep,name=items"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // List holds a list of objects, which may not be known by the server. type List metav1.List @@ -5600,7 +5606,7 @@ type LimitRangeSpec struct { } // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // LimitRange sets resource usage limits for each kind of resource in a Namespace. type LimitRange struct { @@ -5616,7 +5622,7 @@ type LimitRange struct { Spec LimitRangeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // LimitRangeList is a list of LimitRange items. type LimitRangeList struct { @@ -5759,7 +5765,7 @@ type ResourceQuotaStatus struct { } // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ResourceQuota sets aggregate quota restrictions enforced per namespace type ResourceQuota struct { @@ -5780,7 +5786,7 @@ type ResourceQuota struct { Status ResourceQuotaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ResourceQuotaList is a list of ResourceQuota items. type ResourceQuotaList struct { @@ -5796,7 +5802,7 @@ type ResourceQuotaList struct { } // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Secret holds secret data of a certain type. The total bytes of the values in // the Data field must be less than MaxSecretSize bytes. @@ -5921,7 +5927,7 @@ const ( SecretTypeBootstrapToken SecretType = "bootstrap.kubernetes.io/token" ) -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // SecretList is a list of Secret. type SecretList struct { @@ -5937,7 +5943,7 @@ type SecretList struct { } // +genclient -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ConfigMap holds configuration data for pods to consume. type ConfigMap struct { @@ -5973,7 +5979,7 @@ type ConfigMap struct { BinaryData map[string][]byte `json:"binaryData,omitempty" protobuf:"bytes,3,rep,name=binaryData"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ConfigMapList is a resource containing a list of ConfigMap objects. type ConfigMapList struct { @@ -6015,7 +6021,7 @@ type ComponentCondition struct { // +genclient // +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // ComponentStatus (and ComponentStatusList) holds the cluster validation info. // Deprecated: This API is deprecated in v1.19+ @@ -6033,7 +6039,7 @@ type ComponentStatus struct { Conditions []ComponentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // Status of all the conditions for the component as a list of ComponentStatus objects. // Deprecated: This API is deprecated in v1.19+ @@ -6219,7 +6225,7 @@ type WindowsSecurityContextOptions struct { RunAsUserName *string `json:"runAsUserName,omitempty" protobuf:"bytes,3,opt,name=runAsUserName"` } -// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/apimachinery/pkg/runtime.Object +// +k8s:deepcopy-gen:interfaces=code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/apimachinery/pkg/runtime.Object // RangeAllocation is not a public type. type RangeAllocation struct { diff --git a/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/clientset.go b/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/clientset.go index c00b9430..687f90ad 100644 --- a/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/clientset.go +++ b/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/clientset.go @@ -21,7 +21,7 @@ package kubernetes import ( "fmt" - corev1 "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/client-go/kubernetes/typed/core/v1" + corev1 "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/typed/core/v1" discovery "k8s.io/client-go/discovery" admissionregistrationv1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" admissionregistrationv1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" diff --git a/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/typed/core/v1/pod.go b/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/typed/core/v1/pod.go index 95da2502..d687332b 100644 --- a/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/typed/core/v1/pod.go +++ b/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes/typed/core/v1/pod.go @@ -1,7 +1,7 @@ package v1 import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server" "code.gitlink.org.cn/JCCE/PCM.git/common/tenanter" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" @@ -15,7 +15,7 @@ import ( "strconv" "time" - v1 "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/api/core/v1" + v1 "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/api/core/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" corev1 "k8s.io/client-go/applyconfigurations/core/v1" diff --git a/adaptor/pcm_pod/server/pod.go b/adaptor/pcm_pod/server/pod.go index 9985d053..32279929 100644 --- a/adaptor/pcm_pod/server/pod.go +++ b/adaptor/pcm_pod/server/pod.go @@ -6,7 +6,7 @@ import ( "fmt" "sync" - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/service" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/service" "code.gitlink.org.cn/JCCE/PCM.git/common/tenanter" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" diff --git a/adaptor/pcm_pod/server/tencent/client.go b/adaptor/pcm_pod/server/tencent/client.go index 0629ca7f..688cb854 100644 --- a/adaptor/pcm_pod/server/tencent/client.go +++ b/adaptor/pcm_pod/server/tencent/client.go @@ -15,7 +15,7 @@ package v20180525 import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server" "code.gitlink.org.cn/JCCE/PCM.git/common/tenanter" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" @@ -71,18 +71,19 @@ func NewAcquireClusterAdminRoleResponse() (response *AcquireClusterAdminRoleResp // 通过此接口,可以获取集群的tke:admin的ClusterRole,即管理员角色,可以用于CAM侧高权限的用户,通过CAM策略给予子账户此接口权限,进而可以通过此接口直接获取到kubernetes集群内的管理员角色。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" -// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" -// INTERNALERROR_KUBERNETESGETOPERATIONERROR = "InternalError.KubernetesGetOperationError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" +// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" +// INTERNALERROR_KUBERNETESGETOPERATIONERROR = "InternalError.KubernetesGetOperationError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" func (c *Client) AcquireClusterAdminRole(request *AcquireClusterAdminRoleRequest) (response *AcquireClusterAdminRoleResponse, err error) { return c.AcquireClusterAdminRoleWithContext(context.Background(), request) } @@ -91,18 +92,19 @@ func (c *Client) AcquireClusterAdminRole(request *AcquireClusterAdminRoleRequest // 通过此接口,可以获取集群的tke:admin的ClusterRole,即管理员角色,可以用于CAM侧高权限的用户,通过CAM策略给予子账户此接口权限,进而可以通过此接口直接获取到kubernetes集群内的管理员角色。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" -// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" -// INTERNALERROR_KUBERNETESGETOPERATIONERROR = "InternalError.KubernetesGetOperationError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" +// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" +// INTERNALERROR_KUBERNETESGETOPERATIONERROR = "InternalError.KubernetesGetOperationError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" func (c *Client) AcquireClusterAdminRoleWithContext(ctx context.Context, request *AcquireClusterAdminRoleRequest) (response *AcquireClusterAdminRoleResponse, err error) { if request == nil { request = NewAcquireClusterAdminRoleRequest() @@ -139,17 +141,18 @@ func NewAddClusterCIDRResponse() (response *AddClusterCIDRResponse) { // 给GR集群增加可用的ClusterCIDR // // 可能返回的错误码: -// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) AddClusterCIDR(request *AddClusterCIDRRequest) (response *AddClusterCIDRResponse, err error) { return c.AddClusterCIDRWithContext(context.Background(), request) } @@ -158,17 +161,18 @@ func (c *Client) AddClusterCIDR(request *AddClusterCIDRRequest) (response *AddCl // 给GR集群增加可用的ClusterCIDR // // 可能返回的错误码: -// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) AddClusterCIDRWithContext(ctx context.Context, request *AddClusterCIDRRequest) (response *AddClusterCIDRResponse, err error) { if request == nil { request = NewAddClusterCIDRRequest() @@ -205,17 +209,18 @@ func NewAddExistedInstancesResponse() (response *AddExistedInstancesResponse) { // 添加已经存在的实例到集群 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" func (c *Client) AddExistedInstances(request *AddExistedInstancesRequest) (response *AddExistedInstancesResponse, err error) { return c.AddExistedInstancesWithContext(context.Background(), request) } @@ -224,17 +229,18 @@ func (c *Client) AddExistedInstances(request *AddExistedInstancesRequest) (respo // 添加已经存在的实例到集群 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" func (c *Client) AddExistedInstancesWithContext(ctx context.Context, request *AddExistedInstancesRequest) (response *AddExistedInstancesResponse, err error) { if request == nil { request = NewAddExistedInstancesRequest() @@ -271,7 +277,8 @@ func NewAddNodeToNodePoolResponse() (response *AddNodeToNodePoolResponse) { // 将集群内节点移入节点池 // // 可能返回的错误码: -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) AddNodeToNodePool(request *AddNodeToNodePoolRequest) (response *AddNodeToNodePoolResponse, err error) { return c.AddNodeToNodePoolWithContext(context.Background(), request) } @@ -280,7 +287,8 @@ func (c *Client) AddNodeToNodePool(request *AddNodeToNodePoolRequest) (response // 将集群内节点移入节点池 // // 可能返回的错误码: -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) AddNodeToNodePoolWithContext(ctx context.Context, request *AddNodeToNodePoolRequest) (response *AddNodeToNodePoolResponse, err error) { if request == nil { request = NewAddNodeToNodePoolRequest() @@ -317,16 +325,17 @@ func NewAddVpcCniSubnetsResponse() (response *AddVpcCniSubnetsResponse) { // 针对VPC-CNI模式的集群,增加集群容器网络可使用的子网 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) AddVpcCniSubnets(request *AddVpcCniSubnetsRequest) (response *AddVpcCniSubnetsResponse, err error) { return c.AddVpcCniSubnetsWithContext(context.Background(), request) } @@ -335,16 +344,17 @@ func (c *Client) AddVpcCniSubnets(request *AddVpcCniSubnetsRequest) (response *A // 针对VPC-CNI模式的集群,增加集群容器网络可使用的子网 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) AddVpcCniSubnetsWithContext(ctx context.Context, request *AddVpcCniSubnetsRequest) (response *AddVpcCniSubnetsResponse, err error) { if request == nil { request = NewAddVpcCniSubnetsRequest() @@ -381,15 +391,16 @@ func NewCheckInstancesUpgradeAbleResponse() (response *CheckInstancesUpgradeAble // 检查给定节点列表中哪些是可升级的 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) CheckInstancesUpgradeAble(request *CheckInstancesUpgradeAbleRequest) (response *CheckInstancesUpgradeAbleResponse, err error) { return c.CheckInstancesUpgradeAbleWithContext(context.Background(), request) } @@ -398,15 +409,16 @@ func (c *Client) CheckInstancesUpgradeAble(request *CheckInstancesUpgradeAbleReq // 检查给定节点列表中哪些是可升级的 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) CheckInstancesUpgradeAbleWithContext(ctx context.Context, request *CheckInstancesUpgradeAbleRequest) (response *CheckInstancesUpgradeAbleResponse, err error) { if request == nil { request = NewCheckInstancesUpgradeAbleRequest() @@ -443,49 +455,50 @@ func NewCreateClusterResponse() (response *CreateClusterResponse) { // 创建集群 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" -// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" -// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" -// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" -// INTERNALERROR_CIDRINVALI = "InternalError.CidrInvali" -// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNUMBERNOTMATCH = "InternalError.CvmNumberNotMatch" -// INTERNALERROR_CVMSTATUS = "InternalError.CvmStatus" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" -// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" -// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" -// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_QUOTAUSGLIMIT = "InternalError.QuotaUSGLimit" -// INTERNALERROR_TASKCREATEFAILED = "InternalError.TaskCreateFailed" -// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" -// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" -// INVALIDPARAMETER_INVALIDPRIVATENETWORKCIDR = "InvalidParameter.InvalidPrivateNetworkCIDR" -// LIMITEXCEEDED = "LimitExceeded" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" +// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" +// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" +// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" +// INTERNALERROR_CIDRINVALI = "InternalError.CidrInvali" +// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNUMBERNOTMATCH = "InternalError.CvmNumberNotMatch" +// INTERNALERROR_CVMSTATUS = "InternalError.CvmStatus" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" +// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" +// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" +// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_QUOTAUSGLIMIT = "InternalError.QuotaUSGLimit" +// INTERNALERROR_TASKCREATEFAILED = "InternalError.TaskCreateFailed" +// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" +// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" +// INVALIDPARAMETER_INVALIDPRIVATENETWORKCIDR = "InvalidParameter.InvalidPrivateNetworkCIDR" +// LIMITEXCEEDED = "LimitExceeded" func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error) { return c.CreateClusterWithContext(context.Background(), request) } @@ -494,49 +507,50 @@ func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateC // 创建集群 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" -// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" -// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" -// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" -// INTERNALERROR_CIDRINVALI = "InternalError.CidrInvali" -// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNUMBERNOTMATCH = "InternalError.CvmNumberNotMatch" -// INTERNALERROR_CVMSTATUS = "InternalError.CvmStatus" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" -// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" -// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" -// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_QUOTAUSGLIMIT = "InternalError.QuotaUSGLimit" -// INTERNALERROR_TASKCREATEFAILED = "InternalError.TaskCreateFailed" -// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" -// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" -// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" -// INVALIDPARAMETER_INVALIDPRIVATENETWORKCIDR = "InvalidParameter.InvalidPrivateNetworkCIDR" -// LIMITEXCEEDED = "LimitExceeded" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" +// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" +// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" +// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" +// INTERNALERROR_CIDRINVALI = "InternalError.CidrInvali" +// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNUMBERNOTMATCH = "InternalError.CvmNumberNotMatch" +// INTERNALERROR_CVMSTATUS = "InternalError.CvmStatus" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" +// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" +// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" +// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_QUOTAUSGLIMIT = "InternalError.QuotaUSGLimit" +// INTERNALERROR_TASKCREATEFAILED = "InternalError.TaskCreateFailed" +// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRMASKSIZEOUTOFRANGE = "InvalidParameter.CIDRMaskSizeOutOfRange" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" +// INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" +// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" +// INVALIDPARAMETER_INVALIDPRIVATENETWORKCIDR = "InvalidParameter.InvalidPrivateNetworkCIDR" +// LIMITEXCEEDED = "LimitExceeded" func (c *Client) CreateClusterWithContext(ctx context.Context, request *CreateClusterRequest) (response *CreateClusterResponse, err error) { if request == nil { request = NewCreateClusterRequest() @@ -573,24 +587,25 @@ func NewCreateClusterAsGroupResponse() (response *CreateClusterAsGroupResponse) // 为已经存在的集群创建伸缩组 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterAsGroup(request *CreateClusterAsGroupRequest) (response *CreateClusterAsGroupResponse, err error) { return c.CreateClusterAsGroupWithContext(context.Background(), request) } @@ -599,24 +614,25 @@ func (c *Client) CreateClusterAsGroup(request *CreateClusterAsGroupRequest) (res // 为已经存在的集群创建伸缩组 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterAsGroupWithContext(ctx context.Context, request *CreateClusterAsGroupRequest) (response *CreateClusterAsGroupResponse, err error) { if request == nil { request = NewCreateClusterAsGroupRequest() @@ -653,25 +669,26 @@ func NewCreateClusterEndpointResponse() (response *CreateClusterEndpointResponse // 创建集群访问端口(独立集群开启内网/外网访问,托管集群支持开启内网访问) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_EMPTYCLUSTERNOTSUPPORT = "InternalError.EmptyClusterNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_EMPTYCLUSTERNOTSUPPORT = "InternalError.EmptyClusterNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterEndpoint(request *CreateClusterEndpointRequest) (response *CreateClusterEndpointResponse, err error) { return c.CreateClusterEndpointWithContext(context.Background(), request) } @@ -680,25 +697,26 @@ func (c *Client) CreateClusterEndpoint(request *CreateClusterEndpointRequest) (r // 创建集群访问端口(独立集群开启内网/外网访问,托管集群支持开启内网访问) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_EMPTYCLUSTERNOTSUPPORT = "InternalError.EmptyClusterNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_EMPTYCLUSTERNOTSUPPORT = "InternalError.EmptyClusterNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterEndpointWithContext(ctx context.Context, request *CreateClusterEndpointRequest) (response *CreateClusterEndpointResponse, err error) { if request == nil { request = NewCreateClusterEndpointRequest() @@ -735,24 +753,25 @@ func NewCreateClusterEndpointVipResponse() (response *CreateClusterEndpointVipRe // 创建托管集群外网访问端口(老的方式,仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterEndpointVip(request *CreateClusterEndpointVipRequest) (response *CreateClusterEndpointVipResponse, err error) { return c.CreateClusterEndpointVipWithContext(context.Background(), request) } @@ -761,24 +780,25 @@ func (c *Client) CreateClusterEndpointVip(request *CreateClusterEndpointVipReque // 创建托管集群外网访问端口(老的方式,仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterEndpointVipWithContext(ctx context.Context, request *CreateClusterEndpointVipRequest) (response *CreateClusterEndpointVipResponse, err error) { if request == nil { request = NewCreateClusterEndpointVipRequest() @@ -815,37 +835,38 @@ func NewCreateClusterInstancesResponse() (response *CreateClusterInstancesRespon // 扩展(新建)集群节点 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterInstances(request *CreateClusterInstancesRequest) (response *CreateClusterInstancesResponse, err error) { return c.CreateClusterInstancesWithContext(context.Background(), request) } @@ -854,37 +875,38 @@ func (c *Client) CreateClusterInstances(request *CreateClusterInstancesRequest) // 扩展(新建)集群节点 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateClusterInstancesWithContext(ctx context.Context, request *CreateClusterInstancesRequest) (response *CreateClusterInstancesResponse, err error) { if request == nil { request = NewCreateClusterInstancesRequest() @@ -921,14 +943,15 @@ func NewCreateClusterNodePoolResponse() (response *CreateClusterNodePoolResponse // 创建节点池 // // 可能返回的错误码: -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) CreateClusterNodePool(request *CreateClusterNodePoolRequest) (response *CreateClusterNodePoolResponse, err error) { return c.CreateClusterNodePoolWithContext(context.Background(), request) } @@ -937,14 +960,15 @@ func (c *Client) CreateClusterNodePool(request *CreateClusterNodePoolRequest) (r // 创建节点池 // // 可能返回的错误码: -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) CreateClusterNodePoolWithContext(ctx context.Context, request *CreateClusterNodePoolRequest) (response *CreateClusterNodePoolResponse, err error) { if request == nil { request = NewCreateClusterNodePoolRequest() @@ -981,7 +1005,8 @@ func NewCreateClusterNodePoolFromExistingAsgResponse() (response *CreateClusterN // 从伸缩组创建节点池 // // 可能返回的错误码: -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) CreateClusterNodePoolFromExistingAsg(request *CreateClusterNodePoolFromExistingAsgRequest) (response *CreateClusterNodePoolFromExistingAsgResponse, err error) { return c.CreateClusterNodePoolFromExistingAsgWithContext(context.Background(), request) } @@ -990,7 +1015,8 @@ func (c *Client) CreateClusterNodePoolFromExistingAsg(request *CreateClusterNode // 从伸缩组创建节点池 // // 可能返回的错误码: -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) CreateClusterNodePoolFromExistingAsgWithContext(ctx context.Context, request *CreateClusterNodePoolFromExistingAsgRequest) (response *CreateClusterNodePoolFromExistingAsgResponse, err error) { if request == nil { request = NewCreateClusterNodePoolFromExistingAsgRequest() @@ -1027,20 +1053,21 @@ func NewCreateClusterRouteResponse() (response *CreateClusterRouteResponse) { // 创建集群路由 // // 可能返回的错误码: -// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" -// INTERNALERROR_CIDROUTOFROUTETABLE = "InternalError.CidrOutOfRouteTable" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_GATEWAYALREADYASSOCIATEDCIDR = "InternalError.GatewayAlreadyAssociatedCidr" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" -// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_ROUTETABLENOTFOUND = "ResourceNotFound.RouteTableNotFound" +// +// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" +// INTERNALERROR_CIDROUTOFROUTETABLE = "InternalError.CidrOutOfRouteTable" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_GATEWAYALREADYASSOCIATEDCIDR = "InternalError.GatewayAlreadyAssociatedCidr" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" +// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_ROUTETABLENOTFOUND = "ResourceNotFound.RouteTableNotFound" func (c *Client) CreateClusterRoute(request *CreateClusterRouteRequest) (response *CreateClusterRouteResponse, err error) { return c.CreateClusterRouteWithContext(context.Background(), request) } @@ -1049,20 +1076,21 @@ func (c *Client) CreateClusterRoute(request *CreateClusterRouteRequest) (respons // 创建集群路由 // // 可能返回的错误码: -// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" -// INTERNALERROR_CIDROUTOFROUTETABLE = "InternalError.CidrOutOfRouteTable" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_GATEWAYALREADYASSOCIATEDCIDR = "InternalError.GatewayAlreadyAssociatedCidr" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" -// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_ROUTETABLENOTFOUND = "ResourceNotFound.RouteTableNotFound" +// +// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" +// INTERNALERROR_CIDROUTOFROUTETABLE = "InternalError.CidrOutOfRouteTable" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_GATEWAYALREADYASSOCIATEDCIDR = "InternalError.GatewayAlreadyAssociatedCidr" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" +// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_ROUTETABLENOTFOUND = "ResourceNotFound.RouteTableNotFound" func (c *Client) CreateClusterRouteWithContext(ctx context.Context, request *CreateClusterRouteRequest) (response *CreateClusterRouteResponse, err error) { if request == nil { request = NewCreateClusterRouteRequest() @@ -1099,20 +1127,21 @@ func NewCreateClusterRouteTableResponse() (response *CreateClusterRouteTableResp // 创建集群路由表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" -// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" -// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" -// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" -// INTERNALERROR_RESOURCEEXISTALREADY = "InternalError.ResourceExistAlready" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" +// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" +// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" +// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" +// INTERNALERROR_RESOURCEEXISTALREADY = "InternalError.ResourceExistAlready" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) CreateClusterRouteTable(request *CreateClusterRouteTableRequest) (response *CreateClusterRouteTableResponse, err error) { return c.CreateClusterRouteTableWithContext(context.Background(), request) } @@ -1121,20 +1150,21 @@ func (c *Client) CreateClusterRouteTable(request *CreateClusterRouteTableRequest // 创建集群路由表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" -// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" -// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" -// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" -// INTERNALERROR_RESOURCEEXISTALREADY = "InternalError.ResourceExistAlready" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" +// INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" +// INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" +// INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" +// INTERNALERROR_RESOURCEEXISTALREADY = "InternalError.ResourceExistAlready" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) CreateClusterRouteTableWithContext(ctx context.Context, request *CreateClusterRouteTableRequest) (response *CreateClusterRouteTableResponse, err error) { if request == nil { request = NewCreateClusterRouteTableRequest() @@ -1171,17 +1201,18 @@ func NewCreateEKSClusterResponse() (response *CreateEKSClusterResponse) { // 创建弹性集群 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateEKSCluster(request *CreateEKSClusterRequest) (response *CreateEKSClusterResponse, err error) { return c.CreateEKSClusterWithContext(context.Background(), request) } @@ -1190,17 +1221,18 @@ func (c *Client) CreateEKSCluster(request *CreateEKSClusterRequest) (response *C // 创建弹性集群 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateEKSClusterWithContext(ctx context.Context, request *CreateEKSClusterRequest) (response *CreateEKSClusterResponse, err error) { if request == nil { request = NewCreateEKSClusterRequest() @@ -1237,13 +1269,14 @@ func NewCreateEKSContainerInstancesResponse() (response *CreateEKSContainerInsta // 创建容器实例 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CMDTIMEOUT = "InternalError.CmdTimeout" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CMDTIMEOUT = "InternalError.CmdTimeout" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" func CreateEKSContainerInstances(request *CreateEKSContainerInstancesRequest) (response *CreateEKSContainerInstancesResponse, err error) { provider := pbtenant.CloudProvider(request.ProviderId) @@ -1331,13 +1364,14 @@ func CreateEKSContainerInstances(request *CreateEKSContainerInstancesRequest) (r // 创建容器实例 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CMDTIMEOUT = "InternalError.CmdTimeout" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CMDTIMEOUT = "InternalError.CmdTimeout" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) CreateEKSContainerInstancesWithContext(ctx context.Context, request *CreateEKSContainerInstancesRequest) (response *CreateEKSContainerInstancesResponse, err error) { if request == nil { request = NewCreateEKSContainerInstancesRequest() @@ -1374,8 +1408,9 @@ func NewCreateImageCacheResponse() (response *CreateImageCacheResponse) { // 创建镜像缓存的接口。创建过程中,请勿删除EKSCI实例和云盘,否则镜像缓存将创建失败。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) CreateImageCache(request *CreateImageCacheRequest) (response *CreateImageCacheResponse, err error) { return c.CreateImageCacheWithContext(context.Background(), request) } @@ -1384,8 +1419,9 @@ func (c *Client) CreateImageCache(request *CreateImageCacheRequest) (response *C // 创建镜像缓存的接口。创建过程中,请勿删除EKSCI实例和云盘,否则镜像缓存将创建失败。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) CreateImageCacheWithContext(ctx context.Context, request *CreateImageCacheRequest) (response *CreateImageCacheResponse, err error) { if request == nil { request = NewCreateImageCacheRequest() @@ -1422,11 +1458,12 @@ func NewCreatePrometheusAlertRuleResponse() (response *CreatePrometheusAlertRule // 创建告警规则 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND = "ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreatePrometheusAlertRule(request *CreatePrometheusAlertRuleRequest) (response *CreatePrometheusAlertRuleResponse, err error) { return c.CreatePrometheusAlertRuleWithContext(context.Background(), request) } @@ -1435,11 +1472,12 @@ func (c *Client) CreatePrometheusAlertRule(request *CreatePrometheusAlertRuleReq // 创建告警规则 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND = "ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreatePrometheusAlertRuleWithContext(ctx context.Context, request *CreatePrometheusAlertRuleRequest) (response *CreatePrometheusAlertRuleResponse, err error) { if request == nil { request = NewCreatePrometheusAlertRuleRequest() @@ -1476,12 +1514,13 @@ func NewCreatePrometheusDashboardResponse() (response *CreatePrometheusDashboard // 创建grafana监控面板 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) CreatePrometheusDashboard(request *CreatePrometheusDashboardRequest) (response *CreatePrometheusDashboardResponse, err error) { return c.CreatePrometheusDashboardWithContext(context.Background(), request) } @@ -1490,12 +1529,13 @@ func (c *Client) CreatePrometheusDashboard(request *CreatePrometheusDashboardReq // 创建grafana监控面板 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) CreatePrometheusDashboardWithContext(ctx context.Context, request *CreatePrometheusDashboardRequest) (response *CreatePrometheusDashboardResponse, err error) { if request == nil { request = NewCreatePrometheusDashboardRequest() @@ -1532,9 +1572,10 @@ func NewCreatePrometheusTemplateResponse() (response *CreatePrometheusTemplateRe // 创建一个云原生Prometheus模板实例 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) CreatePrometheusTemplate(request *CreatePrometheusTemplateRequest) (response *CreatePrometheusTemplateResponse, err error) { return c.CreatePrometheusTemplateWithContext(context.Background(), request) } @@ -1543,9 +1584,10 @@ func (c *Client) CreatePrometheusTemplate(request *CreatePrometheusTemplateReque // 创建一个云原生Prometheus模板实例 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) CreatePrometheusTemplateWithContext(ctx context.Context, request *CreatePrometheusTemplateRequest) (response *CreatePrometheusTemplateResponse, err error) { if request == nil { request = NewCreatePrometheusTemplateRequest() @@ -1582,19 +1624,20 @@ func NewDeleteClusterResponse() (response *DeleteClusterResponse) { // 删除集群(YUNAPI V3版本) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// OPERATIONDENIED_CLUSTERINDELETIONPROTECTION = "OperationDenied.ClusterInDeletionProtection" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// OPERATIONDENIED_CLUSTERINDELETIONPROTECTION = "OperationDenied.ClusterInDeletionProtection" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error) { return c.DeleteClusterWithContext(context.Background(), request) } @@ -1603,19 +1646,20 @@ func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteC // 删除集群(YUNAPI V3版本) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// OPERATIONDENIED_CLUSTERINDELETIONPROTECTION = "OperationDenied.ClusterInDeletionProtection" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// OPERATIONDENIED_CLUSTERINDELETIONPROTECTION = "OperationDenied.ClusterInDeletionProtection" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" func (c *Client) DeleteClusterWithContext(ctx context.Context, request *DeleteClusterRequest) (response *DeleteClusterResponse, err error) { if request == nil { request = NewDeleteClusterRequest() @@ -1652,23 +1696,24 @@ func NewDeleteClusterAsGroupsResponse() (response *DeleteClusterAsGroupsResponse // 删除集群伸缩组 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNKNOWNPARAMETER = "UnknownParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNKNOWNPARAMETER = "UnknownParameter" func (c *Client) DeleteClusterAsGroups(request *DeleteClusterAsGroupsRequest) (response *DeleteClusterAsGroupsResponse, err error) { return c.DeleteClusterAsGroupsWithContext(context.Background(), request) } @@ -1677,23 +1722,24 @@ func (c *Client) DeleteClusterAsGroups(request *DeleteClusterAsGroupsRequest) (r // 删除集群伸缩组 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNKNOWNPARAMETER = "UnknownParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNKNOWNPARAMETER = "UnknownParameter" func (c *Client) DeleteClusterAsGroupsWithContext(ctx context.Context, request *DeleteClusterAsGroupsRequest) (response *DeleteClusterAsGroupsResponse, err error) { if request == nil { request = NewDeleteClusterAsGroupsRequest() @@ -1730,28 +1776,29 @@ func NewDeleteClusterEndpointResponse() (response *DeleteClusterEndpointResponse // 删除集群访问端口(独立集群开启内网/外网访问,托管集群支持开启内网访问) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteClusterEndpoint(request *DeleteClusterEndpointRequest) (response *DeleteClusterEndpointResponse, err error) { return c.DeleteClusterEndpointWithContext(context.Background(), request) } @@ -1760,28 +1807,29 @@ func (c *Client) DeleteClusterEndpoint(request *DeleteClusterEndpointRequest) (r // 删除集群访问端口(独立集群开启内网/外网访问,托管集群支持开启内网访问) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteClusterEndpointWithContext(ctx context.Context, request *DeleteClusterEndpointRequest) (response *DeleteClusterEndpointResponse, err error) { if request == nil { request = NewDeleteClusterEndpointRequest() @@ -1818,25 +1866,26 @@ func NewDeleteClusterEndpointVipResponse() (response *DeleteClusterEndpointVipRe // 删除托管集群外网访问端口(老的方式,仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" -// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" +// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteClusterEndpointVip(request *DeleteClusterEndpointVipRequest) (response *DeleteClusterEndpointVipResponse, err error) { return c.DeleteClusterEndpointVipWithContext(context.Background(), request) } @@ -1845,25 +1894,26 @@ func (c *Client) DeleteClusterEndpointVip(request *DeleteClusterEndpointVipReque // 删除托管集群外网访问端口(老的方式,仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" -// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" +// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteClusterEndpointVipWithContext(ctx context.Context, request *DeleteClusterEndpointVipRequest) (response *DeleteClusterEndpointVipResponse, err error) { if request == nil { request = NewDeleteClusterEndpointVipRequest() @@ -1900,17 +1950,18 @@ func NewDeleteClusterInstancesResponse() (response *DeleteClusterInstancesRespon // 删除集群中的实例 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" func (c *Client) DeleteClusterInstances(request *DeleteClusterInstancesRequest) (response *DeleteClusterInstancesResponse, err error) { return c.DeleteClusterInstancesWithContext(context.Background(), request) } @@ -1919,17 +1970,18 @@ func (c *Client) DeleteClusterInstances(request *DeleteClusterInstancesRequest) // 删除集群中的实例 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" func (c *Client) DeleteClusterInstancesWithContext(ctx context.Context, request *DeleteClusterInstancesRequest) (response *DeleteClusterInstancesResponse, err error) { if request == nil { request = NewDeleteClusterInstancesRequest() @@ -1966,9 +2018,10 @@ func NewDeleteClusterNodePoolResponse() (response *DeleteClusterNodePoolResponse // 删除节点池 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DeleteClusterNodePool(request *DeleteClusterNodePoolRequest) (response *DeleteClusterNodePoolResponse, err error) { return c.DeleteClusterNodePoolWithContext(context.Background(), request) } @@ -1977,9 +2030,10 @@ func (c *Client) DeleteClusterNodePool(request *DeleteClusterNodePoolRequest) (r // 删除节点池 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DeleteClusterNodePoolWithContext(ctx context.Context, request *DeleteClusterNodePoolRequest) (response *DeleteClusterNodePoolResponse, err error) { if request == nil { request = NewDeleteClusterNodePoolRequest() @@ -2016,12 +2070,13 @@ func NewDeleteClusterRouteResponse() (response *DeleteClusterRouteResponse) { // 删除集群路由 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DeleteClusterRoute(request *DeleteClusterRouteRequest) (response *DeleteClusterRouteResponse, err error) { return c.DeleteClusterRouteWithContext(context.Background(), request) } @@ -2030,12 +2085,13 @@ func (c *Client) DeleteClusterRoute(request *DeleteClusterRouteRequest) (respons // 删除集群路由 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DeleteClusterRouteWithContext(ctx context.Context, request *DeleteClusterRouteRequest) (response *DeleteClusterRouteResponse, err error) { if request == nil { request = NewDeleteClusterRouteRequest() @@ -2072,12 +2128,13 @@ func NewDeleteClusterRouteTableResponse() (response *DeleteClusterRouteTableResp // 删除集群路由表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_ROUTETABLENOTEMPTY = "InternalError.RouteTableNotEmpty" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_ROUTETABLENOTEMPTY = "InternalError.RouteTableNotEmpty" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" func (c *Client) DeleteClusterRouteTable(request *DeleteClusterRouteTableRequest) (response *DeleteClusterRouteTableResponse, err error) { return c.DeleteClusterRouteTableWithContext(context.Background(), request) } @@ -2086,12 +2143,13 @@ func (c *Client) DeleteClusterRouteTable(request *DeleteClusterRouteTableRequest // 删除集群路由表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_ROUTETABLENOTEMPTY = "InternalError.RouteTableNotEmpty" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_ROUTETABLENOTEMPTY = "InternalError.RouteTableNotEmpty" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" func (c *Client) DeleteClusterRouteTableWithContext(ctx context.Context, request *DeleteClusterRouteTableRequest) (response *DeleteClusterRouteTableResponse, err error) { if request == nil { request = NewDeleteClusterRouteTableRequest() @@ -2128,17 +2186,18 @@ func NewDeleteEKSClusterResponse() (response *DeleteEKSClusterResponse) { // 删除弹性集群(yunapiv3) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteEKSCluster(request *DeleteEKSClusterRequest) (response *DeleteEKSClusterResponse, err error) { return c.DeleteEKSClusterWithContext(context.Background(), request) } @@ -2147,17 +2206,18 @@ func (c *Client) DeleteEKSCluster(request *DeleteEKSClusterRequest) (response *D // 删除弹性集群(yunapiv3) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteEKSClusterWithContext(ctx context.Context, request *DeleteEKSClusterRequest) (response *DeleteEKSClusterResponse, err error) { if request == nil { request = NewDeleteEKSClusterRequest() @@ -2194,15 +2254,16 @@ func NewDeleteEKSContainerInstancesResponse() (response *DeleteEKSContainerInsta // 删除容器实例,可批量删除 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func DeleteEKSContainerInstances(request *DeleteEKSContainerInstancesRequest) (response *DeleteEKSContainerInstancesResponse, err error) { provider := pbtenant.CloudProvider(request.ProviderId) var configFile string @@ -2267,15 +2328,16 @@ func DeleteEKSContainerInstances(request *DeleteEKSContainerInstancesRequest) (r // 删除容器实例,可批量删除 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteEKSContainerInstancesWithContext(ctx context.Context, request *DeleteEKSContainerInstancesRequest) (response *DeleteEKSContainerInstancesResponse, err error) { if request == nil { request = NewDeleteEKSContainerInstancesRequest() @@ -2312,9 +2374,10 @@ func NewDeleteImageCachesResponse() (response *DeleteImageCachesResponse) { // 批量删除镜像缓存 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DeleteImageCaches(request *DeleteImageCachesRequest) (response *DeleteImageCachesResponse, err error) { return c.DeleteImageCachesWithContext(context.Background(), request) } @@ -2323,9 +2386,10 @@ func (c *Client) DeleteImageCaches(request *DeleteImageCachesRequest) (response // 批量删除镜像缓存 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DeleteImageCachesWithContext(ctx context.Context, request *DeleteImageCachesRequest) (response *DeleteImageCachesResponse, err error) { if request == nil { request = NewDeleteImageCachesRequest() @@ -2362,10 +2426,11 @@ func NewDeletePrometheusAlertRuleResponse() (response *DeletePrometheusAlertRule // 删除告警规则 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DeletePrometheusAlertRule(request *DeletePrometheusAlertRuleRequest) (response *DeletePrometheusAlertRuleResponse, err error) { return c.DeletePrometheusAlertRuleWithContext(context.Background(), request) } @@ -2374,10 +2439,11 @@ func (c *Client) DeletePrometheusAlertRule(request *DeletePrometheusAlertRuleReq // 删除告警规则 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DeletePrometheusAlertRuleWithContext(ctx context.Context, request *DeletePrometheusAlertRuleRequest) (response *DeletePrometheusAlertRuleResponse, err error) { if request == nil { request = NewDeletePrometheusAlertRuleRequest() @@ -2414,11 +2480,12 @@ func NewDeletePrometheusTemplateResponse() (response *DeletePrometheusTemplateRe // 删除一个云原生Prometheus配置模板 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DeletePrometheusTemplate(request *DeletePrometheusTemplateRequest) (response *DeletePrometheusTemplateResponse, err error) { return c.DeletePrometheusTemplateWithContext(context.Background(), request) } @@ -2427,11 +2494,12 @@ func (c *Client) DeletePrometheusTemplate(request *DeletePrometheusTemplateReque // 删除一个云原生Prometheus配置模板 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DeletePrometheusTemplateWithContext(ctx context.Context, request *DeletePrometheusTemplateRequest) (response *DeletePrometheusTemplateResponse, err error) { if request == nil { request = NewDeletePrometheusTemplateRequest() @@ -2468,13 +2536,14 @@ func NewDeletePrometheusTemplateSyncResponse() (response *DeletePrometheusTempla // 取消模板同步,这将会删除目标中该模板所生产的配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DeletePrometheusTemplateSync(request *DeletePrometheusTemplateSyncRequest) (response *DeletePrometheusTemplateSyncResponse, err error) { return c.DeletePrometheusTemplateSyncWithContext(context.Background(), request) } @@ -2483,13 +2552,14 @@ func (c *Client) DeletePrometheusTemplateSync(request *DeletePrometheusTemplateS // 取消模板同步,这将会删除目标中该模板所生产的配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DeletePrometheusTemplateSyncWithContext(ctx context.Context, request *DeletePrometheusTemplateSyncRequest) (response *DeletePrometheusTemplateSyncResponse, err error) { if request == nil { request = NewDeletePrometheusTemplateSyncRequest() @@ -2526,12 +2596,13 @@ func NewDescribeAvailableClusterVersionResponse() (response *DescribeAvailableCl // 获取集群可以升级的所有版本 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) DescribeAvailableClusterVersion(request *DescribeAvailableClusterVersionRequest) (response *DescribeAvailableClusterVersionResponse, err error) { return c.DescribeAvailableClusterVersionWithContext(context.Background(), request) } @@ -2540,12 +2611,13 @@ func (c *Client) DescribeAvailableClusterVersion(request *DescribeAvailableClust // 获取集群可以升级的所有版本 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) DescribeAvailableClusterVersionWithContext(ctx context.Context, request *DescribeAvailableClusterVersionRequest) (response *DescribeAvailableClusterVersionResponse, err error) { if request == nil { request = NewDescribeAvailableClusterVersionRequest() @@ -2582,17 +2654,18 @@ func NewDescribeClusterAsGroupOptionResponse() (response *DescribeClusterAsGroup // 集群弹性伸缩配置 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterAsGroupOption(request *DescribeClusterAsGroupOptionRequest) (response *DescribeClusterAsGroupOptionResponse, err error) { return c.DescribeClusterAsGroupOptionWithContext(context.Background(), request) } @@ -2601,17 +2674,18 @@ func (c *Client) DescribeClusterAsGroupOption(request *DescribeClusterAsGroupOpt // 集群弹性伸缩配置 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterAsGroupOptionWithContext(ctx context.Context, request *DescribeClusterAsGroupOptionRequest) (response *DescribeClusterAsGroupOptionResponse, err error) { if request == nil { request = NewDescribeClusterAsGroupOptionRequest() @@ -2648,19 +2722,20 @@ func NewDescribeClusterAsGroupsResponse() (response *DescribeClusterAsGroupsResp // 集群关联的伸缩组列表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PODNOTFOUND = "InternalError.PodNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PODNOTFOUND = "InternalError.PodNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" func (c *Client) DescribeClusterAsGroups(request *DescribeClusterAsGroupsRequest) (response *DescribeClusterAsGroupsResponse, err error) { return c.DescribeClusterAsGroupsWithContext(context.Background(), request) } @@ -2669,19 +2744,20 @@ func (c *Client) DescribeClusterAsGroups(request *DescribeClusterAsGroupsRequest // 集群关联的伸缩组列表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PODNOTFOUND = "InternalError.PodNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PODNOTFOUND = "InternalError.PodNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" func (c *Client) DescribeClusterAsGroupsWithContext(ctx context.Context, request *DescribeClusterAsGroupsRequest) (response *DescribeClusterAsGroupsResponse, err error) { if request == nil { request = NewDescribeClusterAsGroupsRequest() @@ -2718,10 +2794,11 @@ func NewDescribeClusterAuthenticationOptionsResponse() (response *DescribeCluste // 查看集群认证配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) DescribeClusterAuthenticationOptions(request *DescribeClusterAuthenticationOptionsRequest) (response *DescribeClusterAuthenticationOptionsResponse, err error) { return c.DescribeClusterAuthenticationOptionsWithContext(context.Background(), request) } @@ -2730,10 +2807,11 @@ func (c *Client) DescribeClusterAuthenticationOptions(request *DescribeClusterAu // 查看集群认证配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) DescribeClusterAuthenticationOptionsWithContext(ctx context.Context, request *DescribeClusterAuthenticationOptionsRequest) (response *DescribeClusterAuthenticationOptionsResponse, err error) { if request == nil { request = NewDescribeClusterAuthenticationOptionsRequest() @@ -2770,14 +2848,15 @@ func NewDescribeClusterCommonNamesResponse() (response *DescribeClusterCommonNam // 获取指定子账户在RBAC授权模式中对应kube-apiserver客户端证书的CommonName字段,如果没有客户端证书,将会签发一个,此接口有最大传入子账户数量上限,当前为50 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" func (c *Client) DescribeClusterCommonNames(request *DescribeClusterCommonNamesRequest) (response *DescribeClusterCommonNamesResponse, err error) { return c.DescribeClusterCommonNamesWithContext(context.Background(), request) } @@ -2786,14 +2865,15 @@ func (c *Client) DescribeClusterCommonNames(request *DescribeClusterCommonNamesR // 获取指定子账户在RBAC授权模式中对应kube-apiserver客户端证书的CommonName字段,如果没有客户端证书,将会签发一个,此接口有最大传入子账户数量上限,当前为50 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" func (c *Client) DescribeClusterCommonNamesWithContext(ctx context.Context, request *DescribeClusterCommonNamesRequest) (response *DescribeClusterCommonNamesResponse, err error) { if request == nil { request = NewDescribeClusterCommonNamesRequest() @@ -2830,11 +2910,12 @@ func NewDescribeClusterControllersResponse() (response *DescribeClusterControlle // 用于查询Kubernetes的各个原生控制器是否开启 // // 可能返回的错误码: -// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DescribeClusterControllers(request *DescribeClusterControllersRequest) (response *DescribeClusterControllersResponse, err error) { return c.DescribeClusterControllersWithContext(context.Background(), request) } @@ -2843,11 +2924,12 @@ func (c *Client) DescribeClusterControllers(request *DescribeClusterControllersR // 用于查询Kubernetes的各个原生控制器是否开启 // // 可能返回的错误码: -// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DescribeClusterControllersWithContext(ctx context.Context, request *DescribeClusterControllersRequest) (response *DescribeClusterControllersResponse, err error) { if request == nil { request = NewDescribeClusterControllersRequest() @@ -2884,28 +2966,29 @@ func NewDescribeClusterEndpointStatusResponse() (response *DescribeClusterEndpoi // 查询集群访问端口状态(独立集群开启内网/外网访问,托管集群支持开启内网访问) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_KUBERNETESINTERNAL = "InternalError.KubernetesInternal" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_KUBERNETESINTERNAL = "InternalError.KubernetesInternal" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterEndpointStatus(request *DescribeClusterEndpointStatusRequest) (response *DescribeClusterEndpointStatusResponse, err error) { return c.DescribeClusterEndpointStatusWithContext(context.Background(), request) } @@ -2914,28 +2997,29 @@ func (c *Client) DescribeClusterEndpointStatus(request *DescribeClusterEndpointS // 查询集群访问端口状态(独立集群开启内网/外网访问,托管集群支持开启内网访问) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_KUBERNETESINTERNAL = "InternalError.KubernetesInternal" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_KUBERNETESINTERNAL = "InternalError.KubernetesInternal" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterEndpointStatusWithContext(ctx context.Context, request *DescribeClusterEndpointStatusRequest) (response *DescribeClusterEndpointStatusResponse, err error) { if request == nil { request = NewDescribeClusterEndpointStatusRequest() @@ -2972,28 +3056,29 @@ func NewDescribeClusterEndpointVipStatusResponse() (response *DescribeClusterEnd // 查询集群开启端口流程状态(仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" -// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" +// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterEndpointVipStatus(request *DescribeClusterEndpointVipStatusRequest) (response *DescribeClusterEndpointVipStatusResponse, err error) { return c.DescribeClusterEndpointVipStatusWithContext(context.Background(), request) } @@ -3002,28 +3087,29 @@ func (c *Client) DescribeClusterEndpointVipStatus(request *DescribeClusterEndpoi // 查询集群开启端口流程状态(仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" -// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" +// INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterEndpointVipStatusWithContext(ctx context.Context, request *DescribeClusterEndpointVipStatusRequest) (response *DescribeClusterEndpointVipStatusResponse, err error) { if request == nil { request = NewDescribeClusterEndpointVipStatusRequest() @@ -3057,39 +3143,43 @@ func NewDescribeClusterInstancesResponse() (response *DescribeClusterInstancesRe } // DescribeClusterInstances -// 查询集群下节点实例信息 +// +// 查询集群下节点实例信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error) { return c.DescribeClusterInstancesWithContext(context.Background(), request) } // DescribeClusterInstances -// 查询集群下节点实例信息 +// +// 查询集群下节点实例信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) DescribeClusterInstancesWithContext(ctx context.Context, request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error) { if request == nil { request = NewDescribeClusterInstancesRequest() @@ -3126,23 +3216,24 @@ func NewDescribeClusterKubeconfigResponse() (response *DescribeClusterKubeconfig // 获取集群的kubeconfig文件,不同子账户获取自己的kubeconfig文件,该文件中有每个子账户自己的kube-apiserver的客户端证书,默认首次调此接口时候创建客户端证书,时效20年,未授予任何权限,如果是集群所有者或者主账户,则默认是cluster-admin权限。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" -// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" -// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" -// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" +// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" +// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" +// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" func (c *Client) DescribeClusterKubeconfig(request *DescribeClusterKubeconfigRequest) (response *DescribeClusterKubeconfigResponse, err error) { return c.DescribeClusterKubeconfigWithContext(context.Background(), request) } @@ -3151,23 +3242,24 @@ func (c *Client) DescribeClusterKubeconfig(request *DescribeClusterKubeconfigReq // 获取集群的kubeconfig文件,不同子账户获取自己的kubeconfig文件,该文件中有每个子账户自己的kube-apiserver的客户端证书,默认首次调此接口时候创建客户端证书,时效20年,未授予任何权限,如果是集群所有者或者主账户,则默认是cluster-admin权限。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" -// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" -// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" -// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" +// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" +// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" +// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" func (c *Client) DescribeClusterKubeconfigWithContext(ctx context.Context, request *DescribeClusterKubeconfigRequest) (response *DescribeClusterKubeconfigResponse, err error) { if request == nil { request = NewDescribeClusterKubeconfigRequest() @@ -3204,11 +3296,12 @@ func NewDescribeClusterNodePoolDetailResponse() (response *DescribeClusterNodePo // 查询节点池详情 // // 可能返回的错误码: -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) DescribeClusterNodePoolDetail(request *DescribeClusterNodePoolDetailRequest) (response *DescribeClusterNodePoolDetailResponse, err error) { return c.DescribeClusterNodePoolDetailWithContext(context.Background(), request) } @@ -3217,11 +3310,12 @@ func (c *Client) DescribeClusterNodePoolDetail(request *DescribeClusterNodePoolD // 查询节点池详情 // // 可能返回的错误码: -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) DescribeClusterNodePoolDetailWithContext(ctx context.Context, request *DescribeClusterNodePoolDetailRequest) (response *DescribeClusterNodePoolDetailResponse, err error) { if request == nil { request = NewDescribeClusterNodePoolDetailRequest() @@ -3258,11 +3352,12 @@ func NewDescribeClusterNodePoolsResponse() (response *DescribeClusterNodePoolsRe // 查询节点池列表 // // 可能返回的错误码: -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) DescribeClusterNodePools(request *DescribeClusterNodePoolsRequest) (response *DescribeClusterNodePoolsResponse, err error) { return c.DescribeClusterNodePoolsWithContext(context.Background(), request) } @@ -3271,11 +3366,12 @@ func (c *Client) DescribeClusterNodePools(request *DescribeClusterNodePoolsReque // 查询节点池列表 // // 可能返回的错误码: -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" func (c *Client) DescribeClusterNodePoolsWithContext(ctx context.Context, request *DescribeClusterNodePoolsRequest) (response *DescribeClusterNodePoolsResponse, err error) { if request == nil { request = NewDescribeClusterNodePoolsRequest() @@ -3312,7 +3408,8 @@ func NewDescribeClusterRouteTablesResponse() (response *DescribeClusterRouteTabl // 查询集群路由表 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" +// +// INTERNALERROR_DB = "InternalError.Db" func (c *Client) DescribeClusterRouteTables(request *DescribeClusterRouteTablesRequest) (response *DescribeClusterRouteTablesResponse, err error) { return c.DescribeClusterRouteTablesWithContext(context.Background(), request) } @@ -3321,7 +3418,8 @@ func (c *Client) DescribeClusterRouteTables(request *DescribeClusterRouteTablesR // 查询集群路由表 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" +// +// INTERNALERROR_DB = "InternalError.Db" func (c *Client) DescribeClusterRouteTablesWithContext(ctx context.Context, request *DescribeClusterRouteTablesRequest) (response *DescribeClusterRouteTablesResponse, err error) { if request == nil { request = NewDescribeClusterRouteTablesRequest() @@ -3358,9 +3456,10 @@ func NewDescribeClusterRoutesResponse() (response *DescribeClusterRoutesResponse // 查询集群路由 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeClusterRoutes(request *DescribeClusterRoutesRequest) (response *DescribeClusterRoutesResponse, err error) { return c.DescribeClusterRoutesWithContext(context.Background(), request) } @@ -3369,9 +3468,10 @@ func (c *Client) DescribeClusterRoutes(request *DescribeClusterRoutesRequest) (r // 查询集群路由 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeClusterRoutesWithContext(ctx context.Context, request *DescribeClusterRoutesRequest) (response *DescribeClusterRoutesResponse, err error) { if request == nil { request = NewDescribeClusterRoutesRequest() @@ -3408,31 +3508,32 @@ func NewDescribeClusterSecurityResponse() (response *DescribeClusterSecurityResp // 集群的密钥信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_LBCOMMON = "InternalError.LbCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCENOTFOUND_KUBERESOURCENOTFOUND = "ResourceNotFound.KubeResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_LBCOMMON = "InternalError.LbCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCENOTFOUND_KUBERESOURCENOTFOUND = "ResourceNotFound.KubeResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterSecurity(request *DescribeClusterSecurityRequest) (response *DescribeClusterSecurityResponse, err error) { return c.DescribeClusterSecurityWithContext(context.Background(), request) } @@ -3441,31 +3542,32 @@ func (c *Client) DescribeClusterSecurity(request *DescribeClusterSecurityRequest // 集群的密钥信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_LBCOMMON = "InternalError.LbCommon" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCENOTFOUND_KUBERESOURCENOTFOUND = "ResourceNotFound.KubeResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_LBCOMMON = "InternalError.LbCommon" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCENOTFOUND_KUBERESOURCENOTFOUND = "ResourceNotFound.KubeResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeClusterSecurityWithContext(ctx context.Context, request *DescribeClusterSecurityRequest) (response *DescribeClusterSecurityResponse, err error) { if request == nil { request = NewDescribeClusterSecurityRequest() @@ -3502,18 +3604,19 @@ func NewDescribeClusterStatusResponse() (response *DescribeClusterStatusResponse // 查看集群状态列表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -// UNKNOWNPARAMETER = "UnknownParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNKNOWNPARAMETER = "UnknownParameter" func (c *Client) DescribeClusterStatus(request *DescribeClusterStatusRequest) (response *DescribeClusterStatusResponse, err error) { return c.DescribeClusterStatusWithContext(context.Background(), request) } @@ -3522,18 +3625,19 @@ func (c *Client) DescribeClusterStatus(request *DescribeClusterStatusRequest) (r // 查看集群状态列表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -// UNKNOWNPARAMETER = "UnknownParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNKNOWNPARAMETER = "UnknownParameter" func (c *Client) DescribeClusterStatusWithContext(ctx context.Context, request *DescribeClusterStatusRequest) (response *DescribeClusterStatusResponse, err error) { if request == nil { request = NewDescribeClusterStatusRequest() @@ -3570,20 +3674,21 @@ func NewDescribeClustersResponse() (response *DescribeClustersResponse) { // 查询集群列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error) { return c.DescribeClustersWithContext(context.Background(), request) } @@ -3592,20 +3697,21 @@ func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *D // 查询集群列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" -// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" -// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" +// INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" +// INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" func (c *Client) DescribeClustersWithContext(ctx context.Context, request *DescribeClustersRequest) (response *DescribeClustersResponse, err error) { if request == nil { request = NewDescribeClustersRequest() @@ -3642,18 +3748,19 @@ func NewDescribeEKSClusterCredentialResponse() (response *DescribeEKSClusterCred // 获取弹性容器集群的接入认证信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeEKSClusterCredential(request *DescribeEKSClusterCredentialRequest) (response *DescribeEKSClusterCredentialResponse, err error) { return c.DescribeEKSClusterCredentialWithContext(context.Background(), request) } @@ -3662,18 +3769,19 @@ func (c *Client) DescribeEKSClusterCredential(request *DescribeEKSClusterCredent // 获取弹性容器集群的接入认证信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeEKSClusterCredentialWithContext(ctx context.Context, request *DescribeEKSClusterCredentialRequest) (response *DescribeEKSClusterCredentialResponse, err error) { if request == nil { request = NewDescribeEKSClusterCredentialRequest() @@ -3710,18 +3818,19 @@ func NewDescribeEKSClustersResponse() (response *DescribeEKSClustersResponse) { // 查询弹性集群列表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeEKSClusters(request *DescribeEKSClustersRequest) (response *DescribeEKSClustersResponse, err error) { return c.DescribeEKSClustersWithContext(context.Background(), request) } @@ -3730,18 +3839,19 @@ func (c *Client) DescribeEKSClusters(request *DescribeEKSClustersRequest) (respo // 查询弹性集群列表 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeEKSClustersWithContext(ctx context.Context, request *DescribeEKSClustersRequest) (response *DescribeEKSClustersResponse, err error) { if request == nil { request = NewDescribeEKSClustersRequest() @@ -3778,14 +3888,15 @@ func NewDescribeEKSContainerInstanceEventResponse() (response *DescribeEKSContai // 查询容器实例的事件 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCESSOLDOUT = "ResourcesSoldOut" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCESSOLDOUT = "ResourcesSoldOut" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeEKSContainerInstanceEvent(request *DescribeEKSContainerInstanceEventRequest) (response *DescribeEKSContainerInstanceEventResponse, err error) { return c.DescribeEKSContainerInstanceEventWithContext(context.Background(), request) } @@ -3794,14 +3905,15 @@ func (c *Client) DescribeEKSContainerInstanceEvent(request *DescribeEKSContainer // 查询容器实例的事件 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCESSOLDOUT = "ResourcesSoldOut" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCESSOLDOUT = "ResourcesSoldOut" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeEKSContainerInstanceEventWithContext(ctx context.Context, request *DescribeEKSContainerInstanceEventRequest) (response *DescribeEKSContainerInstanceEventResponse, err error) { if request == nil { request = NewDescribeEKSContainerInstanceEventRequest() @@ -3838,13 +3950,14 @@ func NewDescribeEKSContainerInstanceRegionsResponse() (response *DescribeEKSCont // 查询容器实例支持的地域 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeEKSContainerInstanceRegions(request *DescribeEKSContainerInstanceRegionsRequest) (response *DescribeEKSContainerInstanceRegionsResponse, err error) { return c.DescribeEKSContainerInstanceRegionsWithContext(context.Background(), request) } @@ -3853,13 +3966,14 @@ func (c *Client) DescribeEKSContainerInstanceRegions(request *DescribeEKSContain // 查询容器实例支持的地域 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeEKSContainerInstanceRegionsWithContext(ctx context.Context, request *DescribeEKSContainerInstanceRegionsRequest) (response *DescribeEKSContainerInstanceRegionsResponse, err error) { if request == nil { request = NewDescribeEKSContainerInstanceRegionsRequest() @@ -3896,11 +4010,12 @@ func NewDescribeEKSContainerInstancesResponse() (response *DescribeEKSContainerI // 查询容器实例 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" +// +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" func DescribeEKSContainerInstances(request *DescribeEKSContainerInstancesRequest) (response *DescribeEKSContainerInstancesResponse, err error) { provider := pbtenant.CloudProvider(request.ProviderId) EksCis := make([]*EksCi, 0) @@ -3947,11 +4062,12 @@ func DescribeEKSContainerInstances(request *DescribeEKSContainerInstancesRequest // 查询容器实例 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" +// +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeEKSContainerInstancesWithContext(ctx context.Context, request *DescribeEKSContainerInstancesRequest) (response *DescribeEKSContainerInstancesResponse, err error) { if request == nil { request = NewDescribeEKSContainerInstancesRequest() @@ -3988,13 +4104,14 @@ func NewDescribeEksContainerInstanceLogResponse() (response *DescribeEksContaine // 查询容器实例中容器日志 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCEUNAVAILABLE_EKSCONTAINERSTATUS = "ResourceUnavailable.EksContainerStatus" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCEUNAVAILABLE_EKSCONTAINERSTATUS = "ResourceUnavailable.EksContainerStatus" func (c *Client) DescribeEksContainerInstanceLog(request *DescribeEksContainerInstanceLogRequest) (response *DescribeEksContainerInstanceLogResponse, err error) { return c.DescribeEksContainerInstanceLogWithContext(context.Background(), request) } @@ -4003,13 +4120,14 @@ func (c *Client) DescribeEksContainerInstanceLog(request *DescribeEksContainerIn // 查询容器实例中容器日志 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCEUNAVAILABLE_EKSCONTAINERSTATUS = "ResourceUnavailable.EksContainerStatus" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CONTAINERNOTFOUND = "InternalError.ContainerNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCEUNAVAILABLE_EKSCONTAINERSTATUS = "ResourceUnavailable.EksContainerStatus" func (c *Client) DescribeEksContainerInstanceLogWithContext(ctx context.Context, request *DescribeEksContainerInstanceLogRequest) (response *DescribeEksContainerInstanceLogResponse, err error) { if request == nil { request = NewDescribeEksContainerInstanceLogRequest() @@ -4046,8 +4164,9 @@ func NewDescribeEnableVpcCniProgressResponse() (response *DescribeEnableVpcCniPr // 本接口用于查询开启vpc-cni模式的任务进度 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) DescribeEnableVpcCniProgress(request *DescribeEnableVpcCniProgressRequest) (response *DescribeEnableVpcCniProgressResponse, err error) { return c.DescribeEnableVpcCniProgressWithContext(context.Background(), request) } @@ -4056,8 +4175,9 @@ func (c *Client) DescribeEnableVpcCniProgress(request *DescribeEnableVpcCniProgr // 本接口用于查询开启vpc-cni模式的任务进度 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) DescribeEnableVpcCniProgressWithContext(ctx context.Context, request *DescribeEnableVpcCniProgressRequest) (response *DescribeEnableVpcCniProgressResponse, err error) { if request == nil { request = NewDescribeEnableVpcCniProgressRequest() @@ -4094,35 +4214,36 @@ func NewDescribeExistedInstancesResponse() (response *DescribeExistedInstancesRe // 查询已经存在的节点,判断是否可以加入集群 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" -// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" +// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeExistedInstances(request *DescribeExistedInstancesRequest) (response *DescribeExistedInstancesResponse, err error) { return c.DescribeExistedInstancesWithContext(context.Background(), request) } @@ -4131,35 +4252,36 @@ func (c *Client) DescribeExistedInstances(request *DescribeExistedInstancesReque // 查询已经存在的节点,判断是否可以加入集群 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" -// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" -// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" +// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" +// INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeExistedInstancesWithContext(ctx context.Context, request *DescribeExistedInstancesRequest) (response *DescribeExistedInstancesResponse, err error) { if request == nil { request = NewDescribeExistedInstancesRequest() @@ -4196,21 +4318,22 @@ func NewDescribeExternalClusterSpecResponse() (response *DescribeExternalCluster // 获取导入第三方集群YAML定义 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" -// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" -// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" +// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" +// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" func (c *Client) DescribeExternalClusterSpec(request *DescribeExternalClusterSpecRequest) (response *DescribeExternalClusterSpecResponse, err error) { return c.DescribeExternalClusterSpecWithContext(context.Background(), request) } @@ -4219,21 +4342,22 @@ func (c *Client) DescribeExternalClusterSpec(request *DescribeExternalClusterSpe // 获取导入第三方集群YAML定义 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" -// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" -// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" +// INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" +// INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" func (c *Client) DescribeExternalClusterSpecWithContext(ctx context.Context, request *DescribeExternalClusterSpecRequest) (response *DescribeExternalClusterSpecResponse, err error) { if request == nil { request = NewDescribeExternalClusterSpecRequest() @@ -4270,8 +4394,9 @@ func NewDescribeImageCachesResponse() (response *DescribeImageCachesResponse) { // 查询镜像缓存信息接口 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeImageCaches(request *DescribeImageCachesRequest) (response *DescribeImageCachesResponse, err error) { return c.DescribeImageCachesWithContext(context.Background(), request) } @@ -4280,8 +4405,9 @@ func (c *Client) DescribeImageCaches(request *DescribeImageCachesRequest) (respo // 查询镜像缓存信息接口 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeImageCachesWithContext(ctx context.Context, request *DescribeImageCachesRequest) (response *DescribeImageCachesResponse, err error) { if request == nil { request = NewDescribeImageCachesRequest() @@ -4318,25 +4444,26 @@ func NewDescribeImagesResponse() (response *DescribeImagesResponse) { // 获取镜像信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { return c.DescribeImagesWithContext(context.Background(), request) } @@ -4345,25 +4472,26 @@ func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *Descr // 获取镜像信息 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeImagesWithContext(ctx context.Context, request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { if request == nil { request = NewDescribeImagesRequest() @@ -4400,10 +4528,11 @@ func NewDescribePrometheusAgentInstancesResponse() (response *DescribePrometheus // 获取关联目标集群的实例列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribePrometheusAgentInstances(request *DescribePrometheusAgentInstancesRequest) (response *DescribePrometheusAgentInstancesResponse, err error) { return c.DescribePrometheusAgentInstancesWithContext(context.Background(), request) } @@ -4412,10 +4541,11 @@ func (c *Client) DescribePrometheusAgentInstances(request *DescribePrometheusAge // 获取关联目标集群的实例列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribePrometheusAgentInstancesWithContext(ctx context.Context, request *DescribePrometheusAgentInstancesRequest) (response *DescribePrometheusAgentInstancesResponse, err error) { if request == nil { request = NewDescribePrometheusAgentInstancesRequest() @@ -4452,10 +4582,11 @@ func NewDescribePrometheusAgentsResponse() (response *DescribePrometheusAgentsRe // 获取被关联集群列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DescribePrometheusAgents(request *DescribePrometheusAgentsRequest) (response *DescribePrometheusAgentsResponse, err error) { return c.DescribePrometheusAgentsWithContext(context.Background(), request) } @@ -4464,10 +4595,11 @@ func (c *Client) DescribePrometheusAgents(request *DescribePrometheusAgentsReque // 获取被关联集群列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DescribePrometheusAgentsWithContext(ctx context.Context, request *DescribePrometheusAgentsRequest) (response *DescribePrometheusAgentsResponse, err error) { if request == nil { request = NewDescribePrometheusAgentsRequest() @@ -4504,14 +4636,15 @@ func NewDescribePrometheusAlertHistoryResponse() (response *DescribePrometheusAl // 获取告警历史 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusAlertHistory(request *DescribePrometheusAlertHistoryRequest) (response *DescribePrometheusAlertHistoryResponse, err error) { return c.DescribePrometheusAlertHistoryWithContext(context.Background(), request) } @@ -4520,14 +4653,15 @@ func (c *Client) DescribePrometheusAlertHistory(request *DescribePrometheusAlert // 获取告警历史 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusAlertHistoryWithContext(ctx context.Context, request *DescribePrometheusAlertHistoryRequest) (response *DescribePrometheusAlertHistoryResponse, err error) { if request == nil { request = NewDescribePrometheusAlertHistoryRequest() @@ -4564,14 +4698,15 @@ func NewDescribePrometheusAlertRuleResponse() (response *DescribePrometheusAlert // 获取告警规则列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusAlertRule(request *DescribePrometheusAlertRuleRequest) (response *DescribePrometheusAlertRuleResponse, err error) { return c.DescribePrometheusAlertRuleWithContext(context.Background(), request) } @@ -4580,14 +4715,15 @@ func (c *Client) DescribePrometheusAlertRule(request *DescribePrometheusAlertRul // 获取告警规则列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusAlertRuleWithContext(ctx context.Context, request *DescribePrometheusAlertRuleRequest) (response *DescribePrometheusAlertRuleResponse, err error) { if request == nil { request = NewDescribePrometheusAlertRuleRequest() @@ -4624,14 +4760,15 @@ func NewDescribePrometheusInstanceResponse() (response *DescribePrometheusInstan // 获取实例详细信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusInstance(request *DescribePrometheusInstanceRequest) (response *DescribePrometheusInstanceResponse, err error) { return c.DescribePrometheusInstanceWithContext(context.Background(), request) } @@ -4640,14 +4777,15 @@ func (c *Client) DescribePrometheusInstance(request *DescribePrometheusInstanceR // 获取实例详细信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusInstanceWithContext(ctx context.Context, request *DescribePrometheusInstanceRequest) (response *DescribePrometheusInstanceResponse, err error) { if request == nil { request = NewDescribePrometheusInstanceRequest() @@ -4684,10 +4822,11 @@ func NewDescribePrometheusOverviewsResponse() (response *DescribePrometheusOverv // 获取实例列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) DescribePrometheusOverviews(request *DescribePrometheusOverviewsRequest) (response *DescribePrometheusOverviewsResponse, err error) { return c.DescribePrometheusOverviewsWithContext(context.Background(), request) } @@ -4696,10 +4835,11 @@ func (c *Client) DescribePrometheusOverviews(request *DescribePrometheusOverview // 获取实例列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) DescribePrometheusOverviewsWithContext(ctx context.Context, request *DescribePrometheusOverviewsRequest) (response *DescribePrometheusOverviewsResponse, err error) { if request == nil { request = NewDescribePrometheusOverviewsRequest() @@ -4736,14 +4876,15 @@ func NewDescribePrometheusTargetsResponse() (response *DescribePrometheusTargets // 获取targets信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusTargets(request *DescribePrometheusTargetsRequest) (response *DescribePrometheusTargetsResponse, err error) { return c.DescribePrometheusTargetsWithContext(context.Background(), request) } @@ -4752,14 +4893,15 @@ func (c *Client) DescribePrometheusTargets(request *DescribePrometheusTargetsReq // 获取targets信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" -// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" func (c *Client) DescribePrometheusTargetsWithContext(ctx context.Context, request *DescribePrometheusTargetsRequest) (response *DescribePrometheusTargetsResponse, err error) { if request == nil { request = NewDescribePrometheusTargetsRequest() @@ -4796,10 +4938,11 @@ func NewDescribePrometheusTemplateSyncResponse() (response *DescribePrometheusTe // 获取模板同步信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DescribePrometheusTemplateSync(request *DescribePrometheusTemplateSyncRequest) (response *DescribePrometheusTemplateSyncResponse, err error) { return c.DescribePrometheusTemplateSyncWithContext(context.Background(), request) } @@ -4808,10 +4951,11 @@ func (c *Client) DescribePrometheusTemplateSync(request *DescribePrometheusTempl // 获取模板同步信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) DescribePrometheusTemplateSyncWithContext(ctx context.Context, request *DescribePrometheusTemplateSyncRequest) (response *DescribePrometheusTemplateSyncResponse, err error) { if request == nil { request = NewDescribePrometheusTemplateSyncRequest() @@ -4848,9 +4992,10 @@ func NewDescribePrometheusTemplatesResponse() (response *DescribePrometheusTempl // 拉取模板列表,默认模板将总是在最前面 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) DescribePrometheusTemplates(request *DescribePrometheusTemplatesRequest) (response *DescribePrometheusTemplatesResponse, err error) { return c.DescribePrometheusTemplatesWithContext(context.Background(), request) } @@ -4859,9 +5004,10 @@ func (c *Client) DescribePrometheusTemplates(request *DescribePrometheusTemplate // 拉取模板列表,默认模板将总是在最前面 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" func (c *Client) DescribePrometheusTemplatesWithContext(ctx context.Context, request *DescribePrometheusTemplatesRequest) (response *DescribePrometheusTemplatesResponse, err error) { if request == nil { request = NewDescribePrometheusTemplatesRequest() @@ -4898,22 +5044,23 @@ func NewDescribeRegionsResponse() (response *DescribeRegionsResponse) { // 获取容器服务支持的所有地域 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { return c.DescribeRegionsWithContext(context.Background(), request) } @@ -4922,22 +5069,23 @@ func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *Des // 获取容器服务支持的所有地域 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeRegionsWithContext(ctx context.Context, request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { if request == nil { request = NewDescribeRegionsRequest() @@ -4974,13 +5122,14 @@ func NewDescribeRouteTableConflictsResponse() (response *DescribeRouteTableConfl // 查询路由表冲突列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" -// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" +// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeRouteTableConflicts(request *DescribeRouteTableConflictsRequest) (response *DescribeRouteTableConflictsResponse, err error) { return c.DescribeRouteTableConflictsWithContext(context.Background(), request) } @@ -4989,13 +5138,14 @@ func (c *Client) DescribeRouteTableConflicts(request *DescribeRouteTableConflict // 查询路由表冲突列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" -// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" +// INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) DescribeRouteTableConflictsWithContext(ctx context.Context, request *DescribeRouteTableConflictsRequest) (response *DescribeRouteTableConflictsResponse, err error) { if request == nil { request = NewDescribeRouteTableConflictsRequest() @@ -5032,17 +5182,18 @@ func NewDescribeTKEEdgeScriptResponse() (response *DescribeTKEEdgeScriptResponse // 获取边缘脚本链接 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeTKEEdgeScript(request *DescribeTKEEdgeScriptRequest) (response *DescribeTKEEdgeScriptResponse, err error) { return c.DescribeTKEEdgeScriptWithContext(context.Background(), request) } @@ -5051,17 +5202,18 @@ func (c *Client) DescribeTKEEdgeScript(request *DescribeTKEEdgeScriptRequest) (r // 获取边缘脚本链接 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeTKEEdgeScriptWithContext(ctx context.Context, request *DescribeTKEEdgeScriptRequest) (response *DescribeTKEEdgeScriptResponse, err error) { if request == nil { request = NewDescribeTKEEdgeScriptRequest() @@ -5098,24 +5250,25 @@ func NewDescribeVersionsResponse() (response *DescribeVersionsResponse) { // 获取集群版本信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVersions(request *DescribeVersionsRequest) (response *DescribeVersionsResponse, err error) { return c.DescribeVersionsWithContext(context.Background(), request) } @@ -5124,24 +5277,25 @@ func (c *Client) DescribeVersions(request *DescribeVersionsRequest) (response *D // 获取集群版本信息 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVersionsWithContext(ctx context.Context, request *DescribeVersionsRequest) (response *DescribeVersionsResponse, err error) { if request == nil { request = NewDescribeVersionsRequest() @@ -5178,19 +5332,20 @@ func NewDescribeVpcCniPodLimitsResponse() (response *DescribeVpcCniPodLimitsResp // 本接口查询当前用户和地域在指定可用区下的机型可支持的最大 TKE VPC-CNI 网络模式的 Pod 数量 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// MISSINGPARAMETER = "MissingParameter" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpcCniPodLimits(request *DescribeVpcCniPodLimitsRequest) (response *DescribeVpcCniPodLimitsResponse, err error) { return c.DescribeVpcCniPodLimitsWithContext(context.Background(), request) } @@ -5199,19 +5354,20 @@ func (c *Client) DescribeVpcCniPodLimits(request *DescribeVpcCniPodLimitsRequest // 本接口查询当前用户和地域在指定可用区下的机型可支持的最大 TKE VPC-CNI 网络模式的 Pod 数量 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// MISSINGPARAMETER = "MissingParameter" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpcCniPodLimitsWithContext(ctx context.Context, request *DescribeVpcCniPodLimitsRequest) (response *DescribeVpcCniPodLimitsResponse, err error) { if request == nil { request = NewDescribeVpcCniPodLimitsRequest() @@ -5248,8 +5404,9 @@ func NewDisableClusterDeletionProtectionResponse() (response *DisableClusterDele // 关闭集群删除保护 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DisableClusterDeletionProtection(request *DisableClusterDeletionProtectionRequest) (response *DisableClusterDeletionProtectionResponse, err error) { return c.DisableClusterDeletionProtectionWithContext(context.Background(), request) } @@ -5258,8 +5415,9 @@ func (c *Client) DisableClusterDeletionProtection(request *DisableClusterDeletio // 关闭集群删除保护 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DisableClusterDeletionProtectionWithContext(ctx context.Context, request *DisableClusterDeletionProtectionRequest) (response *DisableClusterDeletionProtectionResponse, err error) { if request == nil { request = NewDisableClusterDeletionProtectionRequest() @@ -5296,11 +5454,12 @@ func NewDisableVpcCniNetworkTypeResponse() (response *DisableVpcCniNetworkTypeRe // 提供给附加了VPC-CNI能力的Global-Route集群关闭VPC-CNI // // 可能返回的错误码: -// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DisableVpcCniNetworkType(request *DisableVpcCniNetworkTypeRequest) (response *DisableVpcCniNetworkTypeResponse, err error) { return c.DisableVpcCniNetworkTypeWithContext(context.Background(), request) } @@ -5309,11 +5468,12 @@ func (c *Client) DisableVpcCniNetworkType(request *DisableVpcCniNetworkTypeReque // 提供给附加了VPC-CNI能力的Global-Route集群关闭VPC-CNI // // 可能返回的错误码: -// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" -// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_KUBECLIENTCREATE = "InternalError.KubeClientCreate" +// INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) DisableVpcCniNetworkTypeWithContext(ctx context.Context, request *DisableVpcCniNetworkTypeRequest) (response *DisableVpcCniNetworkTypeResponse, err error) { if request == nil { request = NewDisableVpcCniNetworkTypeRequest() @@ -5350,8 +5510,9 @@ func NewEnableClusterDeletionProtectionResponse() (response *EnableClusterDeleti // 启用集群删除保护 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) EnableClusterDeletionProtection(request *EnableClusterDeletionProtectionRequest) (response *EnableClusterDeletionProtectionResponse, err error) { return c.EnableClusterDeletionProtectionWithContext(context.Background(), request) } @@ -5360,8 +5521,9 @@ func (c *Client) EnableClusterDeletionProtection(request *EnableClusterDeletionP // 启用集群删除保护 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) EnableClusterDeletionProtectionWithContext(ctx context.Context, request *EnableClusterDeletionProtectionRequest) (response *EnableClusterDeletionProtectionResponse, err error) { if request == nil { request = NewEnableClusterDeletionProtectionRequest() @@ -5398,9 +5560,10 @@ func NewEnableVpcCniNetworkTypeResponse() (response *EnableVpcCniNetworkTypeResp // GR集群可以通过本接口附加vpc-cni容器网络插件,开启vpc-cni容器网络能力 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) EnableVpcCniNetworkType(request *EnableVpcCniNetworkTypeRequest) (response *EnableVpcCniNetworkTypeResponse, err error) { return c.EnableVpcCniNetworkTypeWithContext(context.Background(), request) } @@ -5409,9 +5572,10 @@ func (c *Client) EnableVpcCniNetworkType(request *EnableVpcCniNetworkTypeRequest // GR集群可以通过本接口附加vpc-cni容器网络插件,开启vpc-cni容器网络能力 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) EnableVpcCniNetworkTypeWithContext(ctx context.Context, request *EnableVpcCniNetworkTypeRequest) (response *EnableVpcCniNetworkTypeResponse, err error) { if request == nil { request = NewEnableVpcCniNetworkTypeRequest() @@ -5448,21 +5612,22 @@ func NewForwardApplicationRequestV3Response() (response *ForwardApplicationReque // 操作TKE集群的addon // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" -// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" +// +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" func (c *Client) ForwardApplicationRequestV3(request *ForwardApplicationRequestV3Request) (response *ForwardApplicationRequestV3Response, err error) { return c.ForwardApplicationRequestV3WithContext(context.Background(), request) } @@ -5471,21 +5636,22 @@ func (c *Client) ForwardApplicationRequestV3(request *ForwardApplicationRequestV // 操作TKE集群的addon // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" -// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" +// +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_RBACFORBIDDEN = "FailedOperation.RBACForbidden" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" func (c *Client) ForwardApplicationRequestV3WithContext(ctx context.Context, request *ForwardApplicationRequestV3Request) (response *ForwardApplicationRequestV3Response, err error) { if request == nil { request = NewForwardApplicationRequestV3Request() @@ -5522,9 +5688,10 @@ func NewGetMostSuitableImageCacheResponse() (response *GetMostSuitableImageCache // 根据镜像列表,查询匹配的镜像缓存 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) GetMostSuitableImageCache(request *GetMostSuitableImageCacheRequest) (response *GetMostSuitableImageCacheResponse, err error) { return c.GetMostSuitableImageCacheWithContext(context.Background(), request) } @@ -5533,9 +5700,10 @@ func (c *Client) GetMostSuitableImageCache(request *GetMostSuitableImageCacheReq // 根据镜像列表,查询匹配的镜像缓存 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) GetMostSuitableImageCacheWithContext(ctx context.Context, request *GetMostSuitableImageCacheRequest) (response *GetMostSuitableImageCacheResponse, err error) { if request == nil { request = NewGetMostSuitableImageCacheRequest() @@ -5572,8 +5740,9 @@ func NewGetTkeAppChartListResponse() (response *GetTkeAppChartListResponse) { // 获取TKE支持的App列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) GetTkeAppChartList(request *GetTkeAppChartListRequest) (response *GetTkeAppChartListResponse, err error) { return c.GetTkeAppChartListWithContext(context.Background(), request) } @@ -5582,8 +5751,9 @@ func (c *Client) GetTkeAppChartList(request *GetTkeAppChartListRequest) (respons // 获取TKE支持的App列表 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" func (c *Client) GetTkeAppChartListWithContext(ctx context.Context, request *GetTkeAppChartListRequest) (response *GetTkeAppChartListResponse, err error) { if request == nil { request = NewGetTkeAppChartListRequest() @@ -5620,8 +5790,9 @@ func NewGetUpgradeInstanceProgressResponse() (response *GetUpgradeInstanceProgre // 获得节点升级当前的进度 // // 可能返回的错误码: -// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) GetUpgradeInstanceProgress(request *GetUpgradeInstanceProgressRequest) (response *GetUpgradeInstanceProgressResponse, err error) { return c.GetUpgradeInstanceProgressWithContext(context.Background(), request) } @@ -5630,8 +5801,9 @@ func (c *Client) GetUpgradeInstanceProgress(request *GetUpgradeInstanceProgressR // 获得节点升级当前的进度 // // 可能返回的错误码: -// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) GetUpgradeInstanceProgressWithContext(ctx context.Context, request *GetUpgradeInstanceProgressRequest) (response *GetUpgradeInstanceProgressResponse, err error) { if request == nil { request = NewGetUpgradeInstanceProgressRequest() @@ -5668,27 +5840,28 @@ func NewModifyClusterAsGroupAttributeResponse() (response *ModifyClusterAsGroupA // 修改集群伸缩组属性 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" -// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" +// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyClusterAsGroupAttribute(request *ModifyClusterAsGroupAttributeRequest) (response *ModifyClusterAsGroupAttributeResponse, err error) { return c.ModifyClusterAsGroupAttributeWithContext(context.Background(), request) } @@ -5697,27 +5870,28 @@ func (c *Client) ModifyClusterAsGroupAttribute(request *ModifyClusterAsGroupAttr // 修改集群伸缩组属性 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" -// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" -// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" +// INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" +// INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyClusterAsGroupAttributeWithContext(ctx context.Context, request *ModifyClusterAsGroupAttributeRequest) (response *ModifyClusterAsGroupAttributeResponse, err error) { if request == nil { request = NewModifyClusterAsGroupAttributeRequest() @@ -5754,23 +5928,24 @@ func NewModifyClusterAsGroupOptionAttributeResponse() (response *ModifyClusterAs // 修改集群弹性伸缩属性 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyClusterAsGroupOptionAttribute(request *ModifyClusterAsGroupOptionAttributeRequest) (response *ModifyClusterAsGroupOptionAttributeResponse, err error) { return c.ModifyClusterAsGroupOptionAttributeWithContext(context.Background(), request) } @@ -5779,23 +5954,24 @@ func (c *Client) ModifyClusterAsGroupOptionAttribute(request *ModifyClusterAsGro // 修改集群弹性伸缩属性 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" -// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" -// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ASCOMMON = "InternalError.AsCommon" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" +// INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" +// INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyClusterAsGroupOptionAttributeWithContext(ctx context.Context, request *ModifyClusterAsGroupOptionAttributeRequest) (response *ModifyClusterAsGroupOptionAttributeResponse, err error) { if request == nil { request = NewModifyClusterAsGroupOptionAttributeRequest() @@ -5832,20 +6008,21 @@ func NewModifyClusterAttributeResponse() (response *ModifyClusterAttributeRespon // 修改集群属性 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" -// INTERNALERROR_TRADEINSUFFICIENTBALANCE = "InternalError.TradeInsufficientBalance" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" +// INTERNALERROR_TRADEINSUFFICIENTBALANCE = "InternalError.TradeInsufficientBalance" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) ModifyClusterAttribute(request *ModifyClusterAttributeRequest) (response *ModifyClusterAttributeResponse, err error) { return c.ModifyClusterAttributeWithContext(context.Background(), request) } @@ -5854,20 +6031,21 @@ func (c *Client) ModifyClusterAttribute(request *ModifyClusterAttributeRequest) // 修改集群属性 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" -// INTERNALERROR_TRADEINSUFFICIENTBALANCE = "InternalError.TradeInsufficientBalance" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_TRADECOMMON = "InternalError.TradeCommon" +// INTERNALERROR_TRADEINSUFFICIENTBALANCE = "InternalError.TradeInsufficientBalance" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) ModifyClusterAttributeWithContext(ctx context.Context, request *ModifyClusterAttributeRequest) (response *ModifyClusterAttributeResponse, err error) { if request == nil { request = NewModifyClusterAttributeRequest() @@ -5904,10 +6082,11 @@ func NewModifyClusterAuthenticationOptionsResponse() (response *ModifyClusterAut // 修改集群认证配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) ModifyClusterAuthenticationOptions(request *ModifyClusterAuthenticationOptionsRequest) (response *ModifyClusterAuthenticationOptionsResponse, err error) { return c.ModifyClusterAuthenticationOptionsWithContext(context.Background(), request) } @@ -5916,10 +6095,11 @@ func (c *Client) ModifyClusterAuthenticationOptions(request *ModifyClusterAuthen // 修改集群认证配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) ModifyClusterAuthenticationOptionsWithContext(ctx context.Context, request *ModifyClusterAuthenticationOptionsRequest) (response *ModifyClusterAuthenticationOptionsResponse, err error) { if request == nil { request = NewModifyClusterAuthenticationOptionsRequest() @@ -5956,25 +6136,26 @@ func NewModifyClusterEndpointSPResponse() (response *ModifyClusterEndpointSPResp // 修改托管集群外网端口的安全策略(老的方式,仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCUNEXPECTEDERROR = "InternalError.VPCUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCUNEXPECTEDERROR = "InternalError.VPCUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error) { return c.ModifyClusterEndpointSPWithContext(context.Background(), request) } @@ -5983,25 +6164,26 @@ func (c *Client) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest // 修改托管集群外网端口的安全策略(老的方式,仅支持托管集群外网端口) // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INTERNALERROR_VPCUNEXPECTEDERROR = "InternalError.VPCUnexpectedError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INTERNALERROR_VPCUNEXPECTEDERROR = "InternalError.VPCUnexpectedError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyClusterEndpointSPWithContext(ctx context.Context, request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error) { if request == nil { request = NewModifyClusterEndpointSPRequest() @@ -6038,11 +6220,12 @@ func NewModifyClusterNodePoolResponse() (response *ModifyClusterNodePoolResponse // 编辑节点池 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// OPERATIONDENIED = "OperationDenied" -// UNSUPPORTEDOPERATION_CAENABLEFAILED = "UnsupportedOperation.CaEnableFailed" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// OPERATIONDENIED = "OperationDenied" +// UNSUPPORTEDOPERATION_CAENABLEFAILED = "UnsupportedOperation.CaEnableFailed" func (c *Client) ModifyClusterNodePool(request *ModifyClusterNodePoolRequest) (response *ModifyClusterNodePoolResponse, err error) { return c.ModifyClusterNodePoolWithContext(context.Background(), request) } @@ -6051,11 +6234,12 @@ func (c *Client) ModifyClusterNodePool(request *ModifyClusterNodePoolRequest) (r // 编辑节点池 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// OPERATIONDENIED = "OperationDenied" -// UNSUPPORTEDOPERATION_CAENABLEFAILED = "UnsupportedOperation.CaEnableFailed" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// OPERATIONDENIED = "OperationDenied" +// UNSUPPORTEDOPERATION_CAENABLEFAILED = "UnsupportedOperation.CaEnableFailed" func (c *Client) ModifyClusterNodePoolWithContext(ctx context.Context, request *ModifyClusterNodePoolRequest) (response *ModifyClusterNodePoolResponse, err error) { if request == nil { request = NewModifyClusterNodePoolRequest() @@ -6092,16 +6276,17 @@ func NewModifyNodePoolDesiredCapacityAboutAsgResponse() (response *ModifyNodePoo // 修改节点池关联伸缩组的期望实例数 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// UNKNOWNPARAMETER = "UnknownParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// UNKNOWNPARAMETER = "UnknownParameter" func (c *Client) ModifyNodePoolDesiredCapacityAboutAsg(request *ModifyNodePoolDesiredCapacityAboutAsgRequest) (response *ModifyNodePoolDesiredCapacityAboutAsgResponse, err error) { return c.ModifyNodePoolDesiredCapacityAboutAsgWithContext(context.Background(), request) } @@ -6110,16 +6295,17 @@ func (c *Client) ModifyNodePoolDesiredCapacityAboutAsg(request *ModifyNodePoolDe // 修改节点池关联伸缩组的期望实例数 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" -// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" -// UNKNOWNPARAMETER = "UnknownParameter" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" +// RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" +// UNKNOWNPARAMETER = "UnknownParameter" func (c *Client) ModifyNodePoolDesiredCapacityAboutAsgWithContext(ctx context.Context, request *ModifyNodePoolDesiredCapacityAboutAsgRequest) (response *ModifyNodePoolDesiredCapacityAboutAsgResponse, err error) { if request == nil { request = NewModifyNodePoolDesiredCapacityAboutAsgRequest() @@ -6156,16 +6342,17 @@ func NewModifyNodePoolInstanceTypesResponse() (response *ModifyNodePoolInstanceT // 修改节点池的机型配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) ModifyNodePoolInstanceTypes(request *ModifyNodePoolInstanceTypesRequest) (response *ModifyNodePoolInstanceTypesResponse, err error) { return c.ModifyNodePoolInstanceTypesWithContext(context.Background(), request) } @@ -6174,16 +6361,17 @@ func (c *Client) ModifyNodePoolInstanceTypes(request *ModifyNodePoolInstanceType // 修改节点池的机型配置 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) ModifyNodePoolInstanceTypesWithContext(ctx context.Context, request *ModifyNodePoolInstanceTypesRequest) (response *ModifyNodePoolInstanceTypesResponse, err error) { if request == nil { request = NewModifyNodePoolInstanceTypesRequest() @@ -6220,11 +6408,12 @@ func NewModifyPrometheusAlertRuleResponse() (response *ModifyPrometheusAlertRule // 修改告警规则 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) ModifyPrometheusAlertRule(request *ModifyPrometheusAlertRuleRequest) (response *ModifyPrometheusAlertRuleResponse, err error) { return c.ModifyPrometheusAlertRuleWithContext(context.Background(), request) } @@ -6233,11 +6422,12 @@ func (c *Client) ModifyPrometheusAlertRule(request *ModifyPrometheusAlertRuleReq // 修改告警规则 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) ModifyPrometheusAlertRuleWithContext(ctx context.Context, request *ModifyPrometheusAlertRuleRequest) (response *ModifyPrometheusAlertRuleResponse, err error) { if request == nil { request = NewModifyPrometheusAlertRuleRequest() @@ -6274,12 +6464,13 @@ func NewModifyPrometheusTemplateResponse() (response *ModifyPrometheusTemplateRe // 修改模板内容 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) ModifyPrometheusTemplate(request *ModifyPrometheusTemplateRequest) (response *ModifyPrometheusTemplateResponse, err error) { return c.ModifyPrometheusTemplateWithContext(context.Background(), request) } @@ -6288,12 +6479,13 @@ func (c *Client) ModifyPrometheusTemplate(request *ModifyPrometheusTemplateReque // 修改模板内容 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) ModifyPrometheusTemplateWithContext(ctx context.Context, request *ModifyPrometheusTemplateRequest) (response *ModifyPrometheusTemplateResponse, err error) { if request == nil { request = NewModifyPrometheusTemplateRequest() @@ -6330,8 +6522,9 @@ func NewRemoveNodeFromNodePoolResponse() (response *RemoveNodeFromNodePoolRespon // 移出节点池节点,但保留在集群内 // // 可能返回的错误码: -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) RemoveNodeFromNodePool(request *RemoveNodeFromNodePoolRequest) (response *RemoveNodeFromNodePoolResponse, err error) { return c.RemoveNodeFromNodePoolWithContext(context.Background(), request) } @@ -6340,8 +6533,9 @@ func (c *Client) RemoveNodeFromNodePool(request *RemoveNodeFromNodePoolRequest) // 移出节点池节点,但保留在集群内 // // 可能返回的错误码: -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) RemoveNodeFromNodePoolWithContext(ctx context.Context, request *RemoveNodeFromNodePoolRequest) (response *RemoveNodeFromNodePoolResponse, err error) { if request == nil { request = NewRemoveNodeFromNodePoolRequest() @@ -6378,10 +6572,11 @@ func NewRestartEKSContainerInstancesResponse() (response *RestartEKSContainerIns // 重启弹性容器实例,支持批量操作 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) RestartEKSContainerInstances(request *RestartEKSContainerInstancesRequest) (response *RestartEKSContainerInstancesResponse, err error) { return c.RestartEKSContainerInstancesWithContext(context.Background(), request) } @@ -6390,10 +6585,11 @@ func (c *Client) RestartEKSContainerInstances(request *RestartEKSContainerInstan // 重启弹性容器实例,支持批量操作 // // 可能返回的错误码: -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) RestartEKSContainerInstancesWithContext(ctx context.Context, request *RestartEKSContainerInstancesRequest) (response *RestartEKSContainerInstancesResponse, err error) { if request == nil { request = NewRestartEKSContainerInstancesRequest() @@ -6430,8 +6626,9 @@ func NewScaleInClusterMasterResponse() (response *ScaleInClusterMasterResponse) // 缩容独立集群master节点 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// OPERATIONDENIED = "OperationDenied" +// +// INTERNALERROR = "InternalError" +// OPERATIONDENIED = "OperationDenied" func (c *Client) ScaleInClusterMaster(request *ScaleInClusterMasterRequest) (response *ScaleInClusterMasterResponse, err error) { return c.ScaleInClusterMasterWithContext(context.Background(), request) } @@ -6440,8 +6637,9 @@ func (c *Client) ScaleInClusterMaster(request *ScaleInClusterMasterRequest) (res // 缩容独立集群master节点 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// OPERATIONDENIED = "OperationDenied" +// +// INTERNALERROR = "InternalError" +// OPERATIONDENIED = "OperationDenied" func (c *Client) ScaleInClusterMasterWithContext(ctx context.Context, request *ScaleInClusterMasterRequest) (response *ScaleInClusterMasterResponse, err error) { if request == nil { request = NewScaleInClusterMasterRequest() @@ -6478,8 +6676,9 @@ func NewScaleOutClusterMasterResponse() (response *ScaleOutClusterMasterResponse // 扩容独立集群master节点 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// OPERATIONDENIED = "OperationDenied" +// +// INTERNALERROR = "InternalError" +// OPERATIONDENIED = "OperationDenied" func (c *Client) ScaleOutClusterMaster(request *ScaleOutClusterMasterRequest) (response *ScaleOutClusterMasterResponse, err error) { return c.ScaleOutClusterMasterWithContext(context.Background(), request) } @@ -6488,8 +6687,9 @@ func (c *Client) ScaleOutClusterMaster(request *ScaleOutClusterMasterRequest) (r // 扩容独立集群master节点 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// OPERATIONDENIED = "OperationDenied" +// +// INTERNALERROR = "InternalError" +// OPERATIONDENIED = "OperationDenied" func (c *Client) ScaleOutClusterMasterWithContext(ctx context.Context, request *ScaleOutClusterMasterRequest) (response *ScaleOutClusterMasterResponse, err error) { if request == nil { request = NewScaleOutClusterMasterRequest() @@ -6526,16 +6726,17 @@ func NewSetNodePoolNodeProtectionResponse() (response *SetNodePoolNodeProtection // 仅能设置节点池中处于伸缩组的节点 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) SetNodePoolNodeProtection(request *SetNodePoolNodeProtectionRequest) (response *SetNodePoolNodeProtectionResponse, err error) { return c.SetNodePoolNodeProtectionWithContext(context.Background(), request) } @@ -6544,16 +6745,17 @@ func (c *Client) SetNodePoolNodeProtection(request *SetNodePoolNodeProtectionReq // 仅能设置节点池中处于伸缩组的节点 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" func (c *Client) SetNodePoolNodeProtectionWithContext(ctx context.Context, request *SetNodePoolNodeProtectionRequest) (response *SetNodePoolNodeProtectionResponse, err error) { if request == nil { request = NewSetNodePoolNodeProtectionRequest() @@ -6590,13 +6792,14 @@ func NewSyncPrometheusTemplateResponse() (response *SyncPrometheusTemplateRespon // 同步模板到实例或者集群 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) SyncPrometheusTemplate(request *SyncPrometheusTemplateRequest) (response *SyncPrometheusTemplateResponse, err error) { return c.SyncPrometheusTemplateWithContext(context.Background(), request) } @@ -6605,13 +6808,14 @@ func (c *Client) SyncPrometheusTemplate(request *SyncPrometheusTemplateRequest) // 同步模板到实例或者集群 // // 可能返回的错误码: -// INTERNALERROR_DB = "InternalError.Db" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" -// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" -// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" +// +// INTERNALERROR_DB = "InternalError.Db" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// INVALIDPARAMETER_PROMCLUSTERNOTFOUND = "InvalidParameter.PromClusterNotFound" +// INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" +// INVALIDPARAMETER_RESOURCENOTFOUND = "InvalidParameter.ResourceNotFound" func (c *Client) SyncPrometheusTemplateWithContext(ctx context.Context, request *SyncPrometheusTemplateRequest) (response *SyncPrometheusTemplateResponse, err error) { if request == nil { request = NewSyncPrometheusTemplateRequest() @@ -6648,13 +6852,14 @@ func NewUpdateClusterVersionResponse() (response *UpdateClusterVersionResponse) // 升级集群 Master 组件到指定版本 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CLUSTERUPGRADENODEVERSION = "InternalError.ClusterUpgradeNodeVersion" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CLUSTERUPGRADENODEVERSION = "InternalError.ClusterUpgradeNodeVersion" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) UpdateClusterVersion(request *UpdateClusterVersionRequest) (response *UpdateClusterVersionResponse, err error) { return c.UpdateClusterVersionWithContext(context.Background(), request) } @@ -6663,13 +6868,14 @@ func (c *Client) UpdateClusterVersion(request *UpdateClusterVersionRequest) (res // 升级集群 Master 组件到指定版本 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INTERNALERROR_CLUSTERUPGRADENODEVERSION = "InternalError.ClusterUpgradeNodeVersion" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR = "InternalError" +// INTERNALERROR_CLUSTERUPGRADENODEVERSION = "InternalError.ClusterUpgradeNodeVersion" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) UpdateClusterVersionWithContext(ctx context.Context, request *UpdateClusterVersionRequest) (response *UpdateClusterVersionResponse, err error) { if request == nil { request = NewUpdateClusterVersionRequest() @@ -6706,18 +6912,19 @@ func NewUpdateEKSClusterResponse() (response *UpdateEKSClusterResponse) { // 修改弹性集群名称等属性 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) UpdateEKSCluster(request *UpdateEKSClusterRequest) (response *UpdateEKSClusterResponse, err error) { return c.UpdateEKSClusterWithContext(context.Background(), request) } @@ -6726,18 +6933,19 @@ func (c *Client) UpdateEKSCluster(request *UpdateEKSClusterRequest) (response *U // 修改弹性集群名称等属性 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" -// INVALIDPARAMETER = "InvalidParameter" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" +// INVALIDPARAMETER = "InvalidParameter" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) UpdateEKSClusterWithContext(ctx context.Context, request *UpdateEKSClusterRequest) (response *UpdateEKSClusterResponse, err error) { if request == nil { request = NewUpdateEKSClusterRequest() @@ -6774,9 +6982,10 @@ func NewUpdateEKSContainerInstanceResponse() (response *UpdateEKSContainerInstan // 更新容器实例 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func UpdateEKSContainerInstance(request *UpdateEKSContainerInstanceRequest) (response *UpdateEKSContainerInstanceResponse, err error) { provider := pbtenant.CloudProvider(request.ProviderId) var configFile string @@ -6847,9 +7056,10 @@ func UpdateEKSContainerInstance(request *UpdateEKSContainerInstanceRequest) (res // 更新容器实例 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) UpdateEKSContainerInstanceWithContext(ctx context.Context, request *UpdateEKSContainerInstanceRequest) (response *UpdateEKSContainerInstanceResponse, err error) { if request == nil { request = NewUpdateEKSContainerInstanceRequest() @@ -6886,7 +7096,8 @@ func NewUpdateImageCacheResponse() (response *UpdateImageCacheResponse) { // 更新镜像缓存接口 // // 可能返回的错误码: -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) UpdateImageCache(request *UpdateImageCacheRequest) (response *UpdateImageCacheResponse, err error) { return c.UpdateImageCacheWithContext(context.Background(), request) } @@ -6895,7 +7106,8 @@ func (c *Client) UpdateImageCache(request *UpdateImageCacheRequest) (response *U // 更新镜像缓存接口 // // 可能返回的错误码: -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) UpdateImageCacheWithContext(ctx context.Context, request *UpdateImageCacheRequest) (response *UpdateImageCacheResponse, err error) { if request == nil { request = NewUpdateImageCacheRequest() @@ -6932,14 +7144,15 @@ func NewUpgradeClusterInstancesResponse() (response *UpgradeClusterInstancesResp // 给集群的一批work节点进行升级 // // 可能返回的错误码: -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_TASKALREADYRUNNING = "InternalError.TaskAlreadyRunning" -// INTERNALERROR_TASKLIFESTATEERROR = "InternalError.TaskLifeStateError" -// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_TASKALREADYRUNNING = "InternalError.TaskAlreadyRunning" +// INTERNALERROR_TASKLIFESTATEERROR = "InternalError.TaskLifeStateError" +// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) UpgradeClusterInstances(request *UpgradeClusterInstancesRequest) (response *UpgradeClusterInstancesResponse, err error) { return c.UpgradeClusterInstancesWithContext(context.Background(), request) } @@ -6948,14 +7161,15 @@ func (c *Client) UpgradeClusterInstances(request *UpgradeClusterInstancesRequest // 给集群的一批work节点进行升级 // // 可能返回的错误码: -// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" -// INTERNALERROR_PARAM = "InternalError.Param" -// INTERNALERROR_TASKALREADYRUNNING = "InternalError.TaskAlreadyRunning" -// INTERNALERROR_TASKLIFESTATEERROR = "InternalError.TaskLifeStateError" -// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" -// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" -// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" -// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" +// +// INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" +// INTERNALERROR_PARAM = "InternalError.Param" +// INTERNALERROR_TASKALREADYRUNNING = "InternalError.TaskAlreadyRunning" +// INTERNALERROR_TASKLIFESTATEERROR = "InternalError.TaskLifeStateError" +// INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" +// INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" +// INVALIDPARAMETER_PARAM = "InvalidParameter.Param" +// RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" func (c *Client) UpgradeClusterInstancesWithContext(ctx context.Context, request *UpgradeClusterInstancesRequest) (response *UpgradeClusterInstancesResponse, err error) { if request == nil { request = NewUpgradeClusterInstancesRequest() diff --git a/adaptor/pcm_slurm/cgo/example/get_all_jobs.go b/adaptor/pcm_slurm/cgo/example/get_all_jobs.go index 5436d677..b146a798 100644 --- a/adaptor/pcm_slurm/cgo/example/get_all_jobs.go +++ b/adaptor/pcm_slurm/cgo/example/get_all_jobs.go @@ -1,7 +1,9 @@ package main -import "slurm/jobinfo" -import "fmt" +import ( + job_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/jobinfo" + "fmt" +) func main() { job_list := job_info.Get_all_jobs() diff --git a/adaptor/pcm_slurm/cgo/example/get_all_nodes.go b/adaptor/pcm_slurm/cgo/example/get_all_nodes.go index 538e80e1..46e7263d 100644 --- a/adaptor/pcm_slurm/cgo/example/get_all_nodes.go +++ b/adaptor/pcm_slurm/cgo/example/get_all_nodes.go @@ -2,8 +2,8 @@ package main import ( node_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/nodeinfo" + "fmt" ) -import "fmt" func main() { node_list := node_info.Get_all_nodes() diff --git a/adaptor/pcm_slurm/cgo/example/get_info.go b/adaptor/pcm_slurm/cgo/example/get_info.go index f482ed4d..e8aa21c2 100644 --- a/adaptor/pcm_slurm/cgo/example/get_info.go +++ b/adaptor/pcm_slurm/cgo/example/get_info.go @@ -1,7 +1,9 @@ package main -import "slurm" -import "fmt" +import ( + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" + "fmt" +) func main() { diff --git a/adaptor/pcm_slurm/cgo/example/get_job_by_id.go b/adaptor/pcm_slurm/cgo/example/get_job_by_id.go index 9a26289c..bdf8ab57 100644 --- a/adaptor/pcm_slurm/cgo/example/get_job_by_id.go +++ b/adaptor/pcm_slurm/cgo/example/get_job_by_id.go @@ -1,12 +1,12 @@ package main import ( + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" job_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/jobinfo" + "fmt" + "os" + "strconv" ) -import "slurm" -import "fmt" -import "os" -import "strconv" func main() { diff --git a/adaptor/pcm_slurm/cgo/example/get_node_info.go b/adaptor/pcm_slurm/cgo/example/get_node_info.go index c64e52bc..8f338141 100644 --- a/adaptor/pcm_slurm/cgo/example/get_node_info.go +++ b/adaptor/pcm_slurm/cgo/example/get_node_info.go @@ -1,9 +1,11 @@ package main -import "slurm/nodeinfo" -import "slurm" -import "fmt" -import "os" +import ( + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" + node_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/nodeinfo" + "fmt" + "os" +) func main() { if len(os.Args) < 2 { diff --git a/adaptor/pcm_slurm/cgo/example/get_user_jobs.go b/adaptor/pcm_slurm/cgo/example/get_user_jobs.go index 39a5164c..7c3c17fb 100644 --- a/adaptor/pcm_slurm/cgo/example/get_user_jobs.go +++ b/adaptor/pcm_slurm/cgo/example/get_user_jobs.go @@ -1,9 +1,11 @@ package main -import "slurm/jobinfo" -import "slurm" -import "fmt" -import "os" +import ( + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" + job_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/jobinfo" + "fmt" + "os" +) func main() { diff --git a/adaptor/pcm_slurm/cgo/example/submit_example/mpi_container/submit_mpi_containier.go b/adaptor/pcm_slurm/cgo/example/submit_example/mpi_container/submit_mpi_containier.go deleted file mode 100644 index 8bc7654d..00000000 --- a/adaptor/pcm_slurm/cgo/example/submit_example/mpi_container/submit_mpi_containier.go +++ /dev/null @@ -1,110 +0,0 @@ -package main - -import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" - job_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/jobinfo" - submit_job "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/submitjob" - "fmt" - "os" - "os/exec" - "os/user" - "path/filepath" - "strconv" - "time" -) - -func fileExists(filename string) bool { - info, err := os.Stat(filename) - if os.IsNotExist(err) { - return false - } - return !info.IsDir() -} -func build_container(file_name, container_name string) { - - cmd := exec.Command("sudo", "/usr/local/bin/singularity", "build", container_name, file_name) - fmt.Print("Now build new container") - fmt.Printf("%s\n", cmd.String()) - stdoutStderr, err := cmd.CombinedOutput() - if err != nil { - fmt.Printf("error in creating container %s \n", err) - - fmt.Printf("%s\n", stdoutStderr) - // return - } - fmt.Printf("%s\n", stdoutStderr) -} - -func main() { - job_desc := submit_job.Job_descriptor{} - - dir, _ := os.Getwd() - container := filepath.Join(dir, "mpi_container.img") - definition := filepath.Join(dir, "mpi_container.def") - if !fileExists(container) { - build_container(definition, container) - } - - if !fileExists(container) { - return - } - /* use Cmd to create our script */ - - job_desc.Script = "#!/bin/bash\n export PATH=$PATH:/usr/local/bin\n hostname \n" - cmd := exec.Command("/home0/opt/openmpi/bin/mpirun", "-mca btl_tcp_if_include eth1", "/usr/local/bin/singularity", "exec", container, "/opt/mpi_pingpong") - job_desc.Script += cmd.String() - fmt.Printf("cmd %s\n", job_desc.Script) - user, _ := user.Current() - userid, _ := strconv.Atoi(user.Uid) - job_desc.User_id = uint32(userid) - groupid, _ := strconv.Atoi(user.Gid) - - job_desc.Group_id = uint32(groupid) - job_desc.Name = "mpi_job" - job_desc.Partition = "long" - job_desc.Time_limit = uint32(60) - job_desc.Min_nodes = uint32(2) - job_desc.Num_tasks = uint32(2) - job_desc.Std_out = ("./%j-out.txt") - job_desc.Std_err = ("./%j-err.txt") - job_desc.Work_dir = dir - - answer := submit_job.Submit_job(&job_desc) - if answer.Error_code != 0 { - msg := slurm.GetErrorString(answer.Error_code) - fmt.Printf("Error: %s\n", msg) - return - } - fmt.Printf("Submitted Job %d\n", answer.Job_id) - - job_list := job_info.Get_job(answer.Job_id) - if job_list.Error_code != 0 { - msg := slurm.GetErrorString(job_list.Error_code) - fmt.Printf("Error: %s\n", msg) - return - - } - job := job_list.Job_list[0] - - fmt.Printf("job %d is %s\n", answer.Job_id, job.Job_stateS) - state := job.Job_stateS - for state == "Pending" || state == "Running" { - time.Sleep(2 * time.Second) - job_list = job_info.Get_job(answer.Job_id) - if job_list.Error_code != 0 { - msg := slurm.GetErrorString(job_list.Error_code) - fmt.Printf("Error: %s\n", msg) - return - - } - job = job_list.Job_list[0] - - state = job.Job_stateS - - fmt.Printf("job %d is %s\n", answer.Job_id, job.Job_stateS) - - } - - fmt.Printf("Total runtime Job %d: %s\n", job.Job_id, job_info.Get_job_runtime(job).String()) - -} diff --git a/adaptor/pcm_slurm/cgo/example/submit_example/mpi/submit_mpi_and_update.go b/adaptor/pcm_slurm/cgo/example/submit_example/submit_mpi_and_update.go similarity index 100% rename from adaptor/pcm_slurm/cgo/example/submit_example/mpi/submit_mpi_and_update.go rename to adaptor/pcm_slurm/cgo/example/submit_example/submit_mpi_and_update.go diff --git a/adaptor/pcm_slurm/cgo/example/submit_example/submit_mpi_containier.go b/adaptor/pcm_slurm/cgo/example/submit_example/submit_mpi_containier.go new file mode 100644 index 00000000..d0b30cd8 --- /dev/null +++ b/adaptor/pcm_slurm/cgo/example/submit_example/submit_mpi_containier.go @@ -0,0 +1,111 @@ +package main + +// +//import ( +// "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" +// job_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/jobinfo" +// submit_job "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/submitjob" +// "fmt" +// "os" +// "os/exec" +// "os/user" +// "path/filepath" +// "strconv" +// "time" +//) +// +//func fileExists(filename string) bool { +// info, err := os.Stat(filename) +// if os.IsNotExist(err) { +// return false +// } +// return !info.IsDir() +//} +//func build_container(file_name, container_name string) { +// +// cmd := exec.Command("sudo", "/usr/local/bin/singularity", "build", container_name, file_name) +// fmt.Print("Now build new container") +// fmt.Printf("%s\n", cmd.String()) +// stdoutStderr, err := cmd.CombinedOutput() +// if err != nil { +// fmt.Printf("error in creating container %s \n", err) +// +// fmt.Printf("%s\n", stdoutStderr) +// // return +// } +// fmt.Printf("%s\n", stdoutStderr) +//} +// +//func main() { +// job_desc := submit_job.Job_descriptor{} +// +// dir, _ := os.Getwd() +// container := filepath.Join(dir, "mpi_container.img") +// definition := filepath.Join(dir, "mpi_container.def") +// if !fileExists(container) { +// build_container(definition, container) +// } +// +// if !fileExists(container) { +// return +// } +// /* use Cmd to create our script */ +// +// job_desc.Script = "#!/bin/bash\n export PATH=$PATH:/usr/local/bin\n hostname \n" +// cmd := exec.Command("/home0/opt/openmpi/bin/mpirun", "-mca btl_tcp_if_include eth1", "/usr/local/bin/singularity", "exec", container, "/opt/mpi_pingpong") +// job_desc.Script += cmd.String() +// fmt.Printf("cmd %s\n", job_desc.Script) +// user, _ := user.Current() +// userid, _ := strconv.Atoi(user.Uid) +// job_desc.User_id = uint32(userid) +// groupid, _ := strconv.Atoi(user.Gid) +// +// job_desc.Group_id = uint32(groupid) +// job_desc.Name = "mpi_job" +// job_desc.Partition = "long" +// job_desc.Time_limit = uint32(60) +// job_desc.Min_nodes = uint32(2) +// job_desc.Num_tasks = uint32(2) +// job_desc.Std_out = ("./%j-out.txt") +// job_desc.Std_err = ("./%j-err.txt") +// job_desc.Work_dir = dir +// +// answer := submit_job.Submit_job(&job_desc) +// if answer.Error_code != 0 { +// msg := slurm.GetErrorString(answer.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// } +// fmt.Printf("Submitted Job %d\n", answer.Job_id) +// +// job_list := job_info.Get_job(answer.Job_id) +// if job_list.Error_code != 0 { +// msg := slurm.GetErrorString(job_list.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// +// } +// job := job_list.Job_list[0] +// +// fmt.Printf("job %d is %s\n", answer.Job_id, job.Job_stateS) +// state := job.Job_stateS +// for state == "Pending" || state == "Running" { +// time.Sleep(2 * time.Second) +// job_list = job_info.Get_job(answer.Job_id) +// if job_list.Error_code != 0 { +// msg := slurm.GetErrorString(job_list.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// +// } +// job = job_list.Job_list[0] +// +// state = job.Job_stateS +// +// fmt.Printf("job %d is %s\n", answer.Job_id, job.Job_stateS) +// +// } +// +// fmt.Printf("Total runtime Job %d: %s\n", job.Job_id, job_info.Get_job_runtime(job).String()) +// +//} diff --git a/adaptor/pcm_slurm/cgo/example/submit_example/submit_openmp_container.go b/adaptor/pcm_slurm/cgo/example/submit_example/submit_openmp_container.go index 8226b8c8..74626475 100644 --- a/adaptor/pcm_slurm/cgo/example/submit_example/submit_openmp_container.go +++ b/adaptor/pcm_slurm/cgo/example/submit_example/submit_openmp_container.go @@ -1,158 +1,159 @@ package main -import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" - job_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/jobinfo" - submit_job "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/submitjob" - "fmt" - "os" - "os/exec" - "os/user" - "path/filepath" - "strconv" - "time" -) - -func fileExists(filename string) bool { - info, err := os.Stat(filename) - if os.IsNotExist(err) { - return false - } - return !info.IsDir() -} -func build_container(file_name, container_name string) { - - cmd := exec.Command("sudo", "/usr/local/bin/singularity", "build", container_name, file_name) - fmt.Print("Now build new container") - fmt.Printf("%s\n", cmd.String()) - stdoutStderr, err := cmd.CombinedOutput() - if err != nil { - fmt.Printf("error in creating container %s \n", err) - - fmt.Printf("%s\n", stdoutStderr) - // return - } - fmt.Printf("%s\n", stdoutStderr) -} - -func main() { - job_desc := submit_job.Job_descriptor{} - - dir, _ := os.Getwd() - container := filepath.Join(dir, "openmp_container.img") - definition := filepath.Join(dir, "openmp_container.def") - if !fileExists(container) { - build_container(definition, container) - } - - if !fileExists(container) { - return - } - /* use Cmd to create our script */ - - job_desc.Script = "#!/bin/bash\n export PATH=$PATH:/usr/local/bin\n hostname \n" - job_desc.Script += "export OMP_NUM_THREADS=$SLURM_JOB_CPUS_PER_NODE\n" - cmd := exec.Command("/usr/local/bin/singularity", "exec", container, "/opt/openmp_example") - - job_desc.Script += cmd.String() - fmt.Printf("cmd %s\n", job_desc.Script) - user, _ := user.Current() - userid, _ := strconv.Atoi(user.Uid) - job_desc.User_id = uint32(userid) - groupid, _ := strconv.Atoi(user.Gid) - - job_desc.Group_id = uint32(groupid) - job_desc.Name = "test_job" - job_desc.Partition = "long" - job_desc.Time_limit = uint32(60) - job_desc.Min_nodes = uint32(1) - job_desc.Num_tasks = uint32(1) - - job_desc.Cpus_per_task = uint16(2) - job_desc.Std_out = ("./%j-out.txt") - job_desc.Std_err = ("./%j-err.txt") - job_desc.Work_dir = dir - - answer := submit_job.Submit_job(&job_desc) - if answer.Error_code != 0 { - msg := slurm.GetErrorString(answer.Error_code) - fmt.Printf("Error: %s\n", msg) - return - } - fmt.Printf("Submitted Job %d\n", answer.Job_id) - - /*Now, we submit the same jon again, ut with some oversubsciption */ - job_desc.Script = "#!/bin/bash\n export PATH=$PATH:/usr/local/bin\n hostname \n" - job_desc.Script += "export OMP_NUM_THREADS=4\n" - - job_desc.Script += cmd.String() - fmt.Printf("cmd %s\n", job_desc.Script) - answer2 := submit_job.Submit_job(&job_desc) - if answer2.Error_code != 0 { - msg := slurm.GetErrorString(answer.Error_code) - fmt.Printf("Error: %s\n", msg) - return - } - fmt.Printf("Submitted Job %d\n", answer2.Job_id) - - job_list := job_info.Get_job(answer.Job_id) - if job_list.Error_code != 0 { - msg := slurm.GetErrorString(job_list.Error_code) - fmt.Printf("Error: %s\n", msg) - return - - } - job := job_list.Job_list[0] - - fmt.Printf("job is %s\n", job.Job_stateS) - state := job.Job_stateS - for state == "Pending" || state == "Running" { - time.Sleep(2 * time.Second) - job_list = job_info.Get_job(answer.Job_id) - if job_list.Error_code != 0 { - msg := slurm.GetErrorString(job_list.Error_code) - fmt.Printf("Error: %s\n", msg) - return - - } - job = job_list.Job_list[0] - - state = job.Job_stateS - - fmt.Printf("job is %s\n", job.Job_stateS) - - } - - fmt.Printf("Total runtime first job %s\n", job_info.Get_job_runtime(job).String()) - /*wait for second job */ - job_list = job_info.Get_job(answer2.Job_id) - if job_list.Error_code != 0 { - msg := slurm.GetErrorString(job_list.Error_code) - fmt.Printf("Error: %s\n", msg) - return - - } - job = job_list.Job_list[0] - - fmt.Printf("job is %s\n", job.Job_stateS) - state = job.Job_stateS - for state == "Pending" || state == "Running" { - time.Sleep(2 * time.Second) - job_list = job_info.Get_job(answer2.Job_id) - if job_list.Error_code != 0 { - msg := slurm.GetErrorString(job_list.Error_code) - fmt.Printf("Error: %s\n", msg) - return - - } - job = job_list.Job_list[0] - - state = job.Job_stateS - - fmt.Printf("job is %s\n", job.Job_stateS) - - } - - fmt.Printf("Total runtime second job %s\n", job_info.Get_job_runtime(job).String()) - -} +// +//import ( +// "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm" +// job_info "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/jobinfo" +// submit_job "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_slurm/cgo/src/slurm/submitjob" +// "fmt" +// "os" +// "os/exec" +// "os/user" +// "path/filepath" +// "strconv" +// "time" +//) +// +//func fileExists(filename string) bool { +// info, err := os.Stat(filename) +// if os.IsNotExist(err) { +// return false +// } +// return !info.IsDir() +//} +//func build_container(file_name, container_name string) { +// +// cmd := exec.Command("sudo", "/usr/local/bin/singularity", "build", container_name, file_name) +// fmt.Print("Now build new container") +// fmt.Printf("%s\n", cmd.String()) +// stdoutStderr, err := cmd.CombinedOutput() +// if err != nil { +// fmt.Printf("error in creating container %s \n", err) +// +// fmt.Printf("%s\n", stdoutStderr) +// // return +// } +// fmt.Printf("%s\n", stdoutStderr) +//} +// +//func main() { +// job_desc := submit_job.Job_descriptor{} +// +// dir, _ := os.Getwd() +// container := filepath.Join(dir, "openmp_container.img") +// definition := filepath.Join(dir, "openmp_container.def") +// if !fileExists(container) { +// build_container(definition, container) +// } +// +// if !fileExists(container) { +// return +// } +// /* use Cmd to create our script */ +// +// job_desc.Script = "#!/bin/bash\n export PATH=$PATH:/usr/local/bin\n hostname \n" +// job_desc.Script += "export OMP_NUM_THREADS=$SLURM_JOB_CPUS_PER_NODE\n" +// cmd := exec.Command("/usr/local/bin/singularity", "exec", container, "/opt/openmp_example") +// +// job_desc.Script += cmd.String() +// fmt.Printf("cmd %s\n", job_desc.Script) +// user, _ := user.Current() +// userid, _ := strconv.Atoi(user.Uid) +// job_desc.User_id = uint32(userid) +// groupid, _ := strconv.Atoi(user.Gid) +// +// job_desc.Group_id = uint32(groupid) +// job_desc.Name = "test_job" +// job_desc.Partition = "long" +// job_desc.Time_limit = uint32(60) +// job_desc.Min_nodes = uint32(1) +// job_desc.Num_tasks = uint32(1) +// +// job_desc.Cpus_per_task = uint16(2) +// job_desc.Std_out = ("./%j-out.txt") +// job_desc.Std_err = ("./%j-err.txt") +// job_desc.Work_dir = dir +// +// answer := submit_job.Submit_job(&job_desc) +// if answer.Error_code != 0 { +// msg := slurm.GetErrorString(answer.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// } +// fmt.Printf("Submitted Job %d\n", answer.Job_id) +// +// /*Now, we submit the same jon again, ut with some oversubsciption */ +// job_desc.Script = "#!/bin/bash\n export PATH=$PATH:/usr/local/bin\n hostname \n" +// job_desc.Script += "export OMP_NUM_THREADS=4\n" +// +// job_desc.Script += cmd.String() +// fmt.Printf("cmd %s\n", job_desc.Script) +// answer2 := submit_job.Submit_job(&job_desc) +// if answer2.Error_code != 0 { +// msg := slurm.GetErrorString(answer.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// } +// fmt.Printf("Submitted Job %d\n", answer2.Job_id) +// +// job_list := job_info.Get_job(answer.Job_id) +// if job_list.Error_code != 0 { +// msg := slurm.GetErrorString(job_list.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// +// } +// job := job_list.Job_list[0] +// +// fmt.Printf("job is %s\n", job.Job_stateS) +// state := job.Job_stateS +// for state == "Pending" || state == "Running" { +// time.Sleep(2 * time.Second) +// job_list = job_info.Get_job(answer.Job_id) +// if job_list.Error_code != 0 { +// msg := slurm.GetErrorString(job_list.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// +// } +// job = job_list.Job_list[0] +// +// state = job.Job_stateS +// +// fmt.Printf("job is %s\n", job.Job_stateS) +// +// } +// +// fmt.Printf("Total runtime first job %s\n", job_info.Get_job_runtime(job).String()) +// /*wait for second job */ +// job_list = job_info.Get_job(answer2.Job_id) +// if job_list.Error_code != 0 { +// msg := slurm.GetErrorString(job_list.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// +// } +// job = job_list.Job_list[0] +// +// fmt.Printf("job is %s\n", job.Job_stateS) +// state = job.Job_stateS +// for state == "Pending" || state == "Running" { +// time.Sleep(2 * time.Second) +// job_list = job_info.Get_job(answer2.Job_id) +// if job_list.Error_code != 0 { +// msg := slurm.GetErrorString(job_list.Error_code) +// fmt.Printf("Error: %s\n", msg) +// return +// +// } +// job = job_list.Job_list[0] +// +// state = job.Job_stateS +// +// fmt.Printf("job is %s\n", job.Job_stateS) +// +// } +// +// fmt.Printf("Total runtime second job %s\n", job_info.Get_job_runtime(job).String()) +// +//} diff --git a/adaptor/pcm_vm/server/ecs/list.go b/adaptor/pcm_vm/server/ecs/list.go index e4f458ac..590f63c9 100644 --- a/adaptor/pcm_vm/server/ecs/list.go +++ b/adaptor/pcm_vm/server/ecs/list.go @@ -4,7 +4,7 @@ import ( "context" "sync" - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/vm/service/ecser" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_vm/service/ecser" "code.gitlink.org.cn/JCCE/PCM.git/common/tenanter" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbecs" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbtenant" @@ -12,7 +12,7 @@ import ( "github.com/pkg/errors" ) -//CreateMultipleEcs 创建多云ECS +// CreateMultipleEcs 创建多云ECS func CreateMultipleEcs(ctx context.Context, reqs *pbecs.CreateEcsMultipleReq) (*pbecs.CreateEcsMultipleResp, error) { var ( wg sync.WaitGroup @@ -110,7 +110,7 @@ func UpdateEcs(ctx context.Context, req *pbecs.UpdateEcsReq) (*pbecs.UpdateEcsRe return ecs.UpdateEcs(ctx, req) } -//ListDetail returns the detail of ecs instances +// ListDetail returns the detail of ecs instances func ListDetail(ctx context.Context, req *pbecs.ListDetailReq) (*pbecs.ListDetailResp, error) { var ( ecs ecser.Ecser @@ -138,7 +138,7 @@ func ListDetail(ctx context.Context, req *pbecs.ListDetailReq) (*pbecs.ListDetai return ecs.ListDetail(ctx, req) } -//List returns the list of ecs instances +// List returns the list of ecs instances func List(ctx context.Context, req *pbecs.ListReq) (*pbecs.ListResp, error) { var ( wg sync.WaitGroup diff --git a/common/server/server_ecs.go b/common/server/server_ecs.go index f0b10130..97ceebba 100644 --- a/common/server/server_ecs.go +++ b/common/server/server_ecs.go @@ -3,7 +3,7 @@ package server import ( "context" - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/vm/server/ecs" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_vm/server/ecs" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbecs" "github.com/golang/glog" @@ -61,7 +61,7 @@ func (s *Server) ListEcsDetail(ctx context.Context, req *pbecs.ListDetailReq) (* return resp, nil } -//ListEcs return ecs list +// ListEcs return ecs list func (s *Server) ListEcs(ctx context.Context, req *pbecs.ListReq) (*pbecs.ListResp, error) { resp, err := ecs.List(ctx, req) if err != nil { diff --git a/common/server/server_pod.go b/common/server/server_pod.go index 8bdc54bc..9333ea93 100644 --- a/common/server/server_pod.go +++ b/common/server/server_pod.go @@ -1,7 +1,7 @@ package server import ( - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server" "context" "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/idl/pbpod" diff --git a/examples/pod/pcm_ali.go b/examples/pod/pcm_ali.go index c38770fe..64328438 100644 --- a/examples/pod/pcm_ali.go +++ b/examples/pod/pcm_ali.go @@ -1,15 +1,19 @@ package main import ( - pcm_pod_ali "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/ali" + pcm_pod_ali "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/ali" ) -/***** +/* +**** regionId ali:cn-hangzhou tc:ap-guangzhou hw: cn-east-3 image: tencent nginx:latest - ali registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx - huawei library/nginx:stable-alpine-perl -*****/ + + ali registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx + huawei library/nginx:stable-alpine-perl + +**** +*/ func aliCreatePCM() (_err error) { request := pcm_pod_ali.CreateCreateContainerGroupRequest() diff --git a/examples/pod/pcm_huawei.go b/examples/pod/pcm_huawei.go index cd390776..3e438fc9 100644 --- a/examples/pod/pcm_huawei.go +++ b/examples/pod/pcm_huawei.go @@ -1,8 +1,8 @@ package main import ( - corev1 "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/api/core/v1" - "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/kubernetes/client-go/kubernetes" + corev1 "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/api/core/v1" + "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/kubernetes/client-go/kubernetes" "context" "fmt" "github.com/pkg/errors" diff --git a/examples/pod/pcm_tencent.go b/examples/pod/pcm_tencent.go index ea086c46..b2a3722b 100644 --- a/examples/pod/pcm_tencent.go +++ b/examples/pod/pcm_tencent.go @@ -1,17 +1,21 @@ package main import ( - pcm_pod_tencent "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pod/server/tencent" + pcm_pod_tencent "code.gitlink.org.cn/JCCE/PCM.git/adaptor/pcm_pod/server/tencent" "fmt" "strconv" ) -/***** +/* +**** regionId tencent:cn-hangzhou tc:ap-guangzhou hw: cn-east-3 image: tencent nginx:latest - tencent registry-vpc.cn-hangzhou.tencentyuncs.com/eci_open/nginx - huawei library/nginx:stable-alpine-perl -*****/ + + tencent registry-vpc.cn-hangzhou.tencentyuncs.com/eci_open/nginx + huawei library/nginx:stable-alpine-perl + +**** +*/ func tencentCreatePCM() (_err error) { request := pcm_pod_tencent.NewCreateEKSContainerInstancesRequest() diff --git a/go.mod b/go.mod index 7566726f..72007245 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module code.gitlink.org.cn/JCCE/PCM.git -go 1.17 +go 1.19 require ( github.com/alibabacloud-go/darabonba-openapi v0.1.4 diff --git a/idl/pbslurm/slurm.proto b/idl/pbslurm/slurm.proto new file mode 100644 index 00000000..b01041a4 --- /dev/null +++ b/idl/pbslurm/slurm.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; +package demo; + +option go_package = "code.gitlink.org.cn/JCCE/PCM.git/lan_trans/gen/idl/slurm"; + +import "google/api/annotations.proto"; +import "protoc-gen-openapiv2/options/annotations.proto"; + +message GetNodesReq{} + + +message GetNodesResp { + int32 boards = 1 ; + int32 cpus = 2 ; + string name = 3 ; + int32 realMemory = 4 ; + int32 sockets = 5 ; + int32 threads = 6 ; +} + +// Slurm Services +service SlurmService { + + // Echo 样例接口 + rpc GetNodes(GetNodesReq) returns (GetNodesResp) { + option (google.api.http) = { + post : "/apis/ecs/createMultiple" + body : "*" + }; + } +}