| @@ -0,0 +1,104 @@ | |||
| //Licensed under the Apache License, Version 2.0 (the "License"); | |||
| //you may not use this file except in compliance with the License. | |||
| //You may obtain a copy of the License at | |||
| // | |||
| //http://www.apache.org/licenses/LICENSE-2.0 | |||
| // | |||
| //Unless required by applicable law or agreed to in writing, software | |||
| //distributed under the License is distributed on an "AS IS" BASIS, | |||
| //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
| //See the License for the specific language governing permissions and | |||
| //limitations under the License. | |||
| // | |||
| // Code generated by Alibaba Cloud SDK Code Generator. | |||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | |||
| package ali | |||
| import ( | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" | |||
| ) | |||
| // Client is the sdk client struct, each func corresponds to an OpenAPI | |||
| type Client struct { | |||
| sdk.Client | |||
| } | |||
| // NewClient creates a sdk client with environment variables | |||
| func NewClient() (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.Init() | |||
| return | |||
| } | |||
| // NewClientWithProvider creates a sdk client with providers | |||
| // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md | |||
| func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { | |||
| client = &Client{} | |||
| var pc provider.Provider | |||
| if len(providers) == 0 { | |||
| pc = provider.DefaultChain | |||
| } else { | |||
| pc = provider.NewProviderChain(providers) | |||
| } | |||
| err = client.InitWithProviderChain(regionId, pc) | |||
| return | |||
| } | |||
| // NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential | |||
| // this is the common api to create a sdk client | |||
| func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.InitWithOptions(regionId, config, credential) | |||
| return | |||
| } | |||
| // NewClientWithAccessKey is a shortcut to create sdk client with accesskey | |||
| // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md | |||
| func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) | |||
| return | |||
| } | |||
| // NewClientWithStsToken is a shortcut to create sdk client with sts token | |||
| // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md | |||
| func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) | |||
| return | |||
| } | |||
| // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn | |||
| // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md | |||
| func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) | |||
| return | |||
| } | |||
| // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy | |||
| // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md | |||
| func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) | |||
| return | |||
| } | |||
| // NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role | |||
| // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md | |||
| func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.InitWithEcsRamRole(regionId, roleName) | |||
| return | |||
| } | |||
| // NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair | |||
| // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md | |||
| func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { | |||
| client = &Client{} | |||
| err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) | |||
| return | |||
| } | |||
| @@ -0,0 +1,333 @@ | |||
| package ali | |||
| import ( | |||
| "github.com/JCCE-nudt/PCM/adaptor/pod_adaptor/server/pod" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" | |||
| ) | |||
| // CreateContainerGroup invokes the eci.CreateContainerGroup API synchronously | |||
| // api document: https://help.aliyun.com/api/eci/createcontainergroup.html | |||
| func CreateContainerGroup(request *CreateContainerGroupRequest) (response *CreateContainerGroupResponse, err error) { | |||
| provider := pbtenant.CloudProvider(request.ProviderId) | |||
| tenanters, err := tenanter.GetTenanters(provider) | |||
| regionId, err := tenanter.GetAliRegionId(request.RegionId) | |||
| container := *request.Container | |||
| containerImage := container[0].Image | |||
| containerName := container[0].Name | |||
| containerPod := container[0].Cpu | |||
| memoryPod := container[0].Memory | |||
| requestPCM := &pbpod.CreatePodReq{ | |||
| Provider: provider, | |||
| AccountName: tenanters[0].AccountName(), | |||
| PodName: request.ContainerGroupName, | |||
| RegionId: regionId, | |||
| ContainerImage: containerImage, | |||
| ContainerName: containerName, | |||
| CpuPod: string(containerPod), | |||
| MemoryPod: string(memoryPod), | |||
| SecurityGroupId: "sg-6qlun7hd", | |||
| SubnetId: "subnet-mnwfg2fk", | |||
| VpcId: "vpc-rkwt40g5", | |||
| Namespace: "pcm", | |||
| } | |||
| resp, err := pod.CreatePod(nil, requestPCM) | |||
| response = &CreateContainerGroupResponse{ | |||
| BaseResponse: nil, | |||
| RequestId: resp.RequestId, | |||
| ContainerGroupId: resp.PodId, | |||
| } | |||
| return response, nil | |||
| } | |||
| // CreateContainerGroupRequest is the request struct for api CreateContainerGroup | |||
| type CreateContainerGroupRequest struct { | |||
| *requests.RpcRequest | |||
| /*********PCM param************/ | |||
| ProviderId int32 `position:"Query" name:"ProviderId"` | |||
| AccountName string `position:"Query" name:"AccountName"` | |||
| Namespace string `position:"Query" name:"Namespace"` | |||
| /*********PCM param************/ | |||
| OwnerId requests.Integer `position:"Query" name:"OwnerId"` | |||
| ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` | |||
| ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` | |||
| OwnerAccount string `position:"Query" name:"OwnerAccount"` | |||
| RegionId string `position:"Query" name:"RegionId"` | |||
| ZoneId string `position:"Query" name:"ZoneId"` | |||
| SecurityGroupId string `position:"Query" name:"SecurityGroupId"` | |||
| VSwitchId string `position:"Query" name:"VSwitchId"` | |||
| ContainerGroupName string `position:"Query" name:"ContainerGroupName"` | |||
| RestartPolicy string `position:"Query" name:"RestartPolicy"` | |||
| Tag *[]CreateContainerGroupTag `position:"Query" name:"Tag" type:"Repeated"` | |||
| ImageRegistryCredential *[]CreateContainerGroupImageRegistryCredential `position:"Query" name:"ImageRegistryCredential" type:"Repeated"` | |||
| Container *[]CreateContainerGroupContainer `position:"Query" name:"Container" type:"Repeated"` | |||
| Volume *[]CreateContainerGroupVolume `position:"Query" name:"Volume" type:"Repeated"` | |||
| EipInstanceId string `position:"Query" name:"EipInstanceId"` | |||
| InitContainer *[]CreateContainerGroupInitContainer `position:"Query" name:"InitContainer" type:"Repeated"` | |||
| Cpu requests.Float `position:"Query" name:"Cpu"` | |||
| Memory requests.Float `position:"Query" name:"Memory"` | |||
| ResourceGroupId string `position:"Query" name:"ResourceGroupId"` | |||
| DnsPolicy string `position:"Query" name:"DnsPolicy"` | |||
| ClientToken string `position:"Query" name:"ClientToken"` | |||
| HostAliase *[]CreateContainerGroupHostAliase `position:"Query" name:"HostAliase" type:"Repeated"` | |||
| Arn *[]CreateContainerGroupArn `position:"Query" name:"Arn" type:"Repeated"` | |||
| InstanceType string `position:"Query" name:"InstanceType"` | |||
| SlsEnable requests.Boolean `position:"Query" name:"SlsEnable"` | |||
| ImageSnapshotId string `position:"Query" name:"ImageSnapshotId"` | |||
| RamRoleName string `position:"Query" name:"RamRoleName"` | |||
| NtpServer []string `position:"Query" name:"NtpServer" type:"Repeated"` | |||
| TerminationGracePeriodSeconds requests.Integer `position:"Query" name:"TerminationGracePeriodSeconds"` | |||
| AutoMatchImageCache requests.Boolean `position:"Query" name:"AutoMatchImageCache"` | |||
| VkClientVersion string `position:"Query" name:"VkClientVersion"` | |||
| Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` | |||
| ActiveDeadlineSeconds requests.Integer `position:"Query" name:"ActiveDeadlineSeconds"` | |||
| SpotStrategy string `position:"Query" name:"SpotStrategy"` | |||
| SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` | |||
| VSwitchStrategy string `position:"Query" name:"VSwitchStrategy"` | |||
| DnsConfig CreateContainerGroupDnsConfig `position:"Query" name:"DnsConfig" type:"Struct"` | |||
| SecurityContext CreateContainerGroupSecurityContext `position:"Query" name:"SecurityContext" type:"Struct"` | |||
| } | |||
| type CreateContainerGroupTag struct { | |||
| Key string `name:"Key"` | |||
| Value string `name:"Value"` | |||
| } | |||
| type CreateContainerGroupImageRegistryCredential struct { | |||
| Server string `name:"Server"` | |||
| UserName string `name:"UserName"` | |||
| Password string `name:"Password"` | |||
| } | |||
| type CreateContainerGroupContainer struct { | |||
| Image string `name:"Image"` | |||
| Name string `name:"Name"` | |||
| Cpu requests.Float `name:"Cpu"` | |||
| Memory requests.Float `name:"Memory"` | |||
| WorkingDir string `name:"WorkingDir"` | |||
| ImagePullPolicy string `name:"ImagePullPolicy"` | |||
| Command []string `name:"Command" type:"Repeated"` | |||
| Arg []string `name:"Arg" type:"Repeated"` | |||
| VolumeMount *[]CreateContainerGroupVolumeMount `name:"VolumeMount" type:"Repeated"` | |||
| Port *[]CreateContainerGroupPort `name:"Port" type:"Repeated"` | |||
| EnvironmentVar *[]CreateContainerGroupEnvironmentVar `name:"EnvironmentVar" type:"Repeated"` | |||
| Stdin requests.Boolean `name:"Stdin"` | |||
| StdinOnce requests.Boolean `name:"StdinOnce"` | |||
| Tty requests.Boolean `name:"Tty"` | |||
| Gpu requests.Integer `name:"Gpu"` | |||
| LifecyclePostStartHandlerHttpGetHost string `name:"LifecyclePostStartHandlerHttpGetHost"` | |||
| LifecyclePostStartHandlerHttpGetPort requests.Integer `name:"LifecyclePostStartHandlerHttpGetPort"` | |||
| LifecyclePostStartHandlerHttpGetPath string `name:"LifecyclePostStartHandlerHttpGetPath"` | |||
| LifecyclePostStartHandlerHttpGetScheme string `name:"LifecyclePostStartHandlerHttpGetScheme"` | |||
| LifecyclePostStartHandlerHttpGetHttpHeader *[]CreateContainerGroupLifecyclePostStartHandlerHttpGetHttpHeader `name:"LifecyclePostStartHandlerHttpGetHttpHeader" type:"Repeated"` | |||
| LifecyclePostStartHandlerExec []string `name:"LifecyclePostStartHandlerExec" type:"Repeated"` | |||
| LifecyclePostStartHandlerTcpSocketHost string `name:"LifecyclePostStartHandlerTcpSocketHost"` | |||
| LifecyclePostStartHandlerTcpSocketPort requests.Integer `name:"LifecyclePostStartHandlerTcpSocketPort"` | |||
| LifecyclePreStopHandlerHttpGetHost string `name:"LifecyclePreStopHandlerHttpGetHost"` | |||
| LifecyclePreStopHandlerHttpGetPort requests.Integer `name:"LifecyclePreStopHandlerHttpGetPort"` | |||
| LifecyclePreStopHandlerHttpGetPath string `name:"LifecyclePreStopHandlerHttpGetPath"` | |||
| LifecyclePreStopHandlerHttpGetScheme string `name:"LifecyclePreStopHandlerHttpGetScheme"` | |||
| LifecyclePreStopHandlerHttpGetHttpHeader *[]CreateContainerGroupLifecyclePreStopHandlerHttpGetHttpHeader `name:"LifecyclePreStopHandlerHttpGetHttpHeader" type:"Repeated"` | |||
| LifecyclePreStopHandlerExec []string `name:"LifecyclePreStopHandlerExec" type:"Repeated"` | |||
| LifecyclePreStopHandlerTcpSocketHost string `name:"LifecyclePreStopHandlerTcpSocketHost"` | |||
| LifecyclePreStopHandlerTcpSocketPort requests.Integer `name:"LifecyclePreStopHandlerTcpSocketPort"` | |||
| ReadinessProbe CreateContainerGroupReadinessProbe `name:"ReadinessProbe" type:"Struct"` | |||
| LivenessProbe CreateContainerGroupLivenessProbe `name:"LivenessProbe" type:"Struct"` | |||
| SecurityContext CreateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"` | |||
| } | |||
| type CreateContainerGroupVolume struct { | |||
| Name string `name:"Name"` | |||
| Type string `name:"Type"` | |||
| NFSVolume CreateContainerGroupNFSVolume `name:"NFSVolume" type:"Struct"` | |||
| ConfigFileVolume CreateContainerGroupConfigFileVolume `name:"ConfigFileVolume" type:"Struct"` | |||
| EmptyDirVolume CreateContainerGroupEmptyDirVolume `name:"EmptyDirVolume" type:"Struct"` | |||
| DiskVolume CreateContainerGroupDiskVolume `name:"DiskVolume" type:"Struct"` | |||
| FlexVolume CreateContainerGroupFlexVolume `name:"FlexVolume" type:"Struct"` | |||
| HostPathVolume CreateContainerGroupHostPathVolume `name:"HostPathVolume" type:"Struct"` | |||
| } | |||
| type CreateContainerGroupInitContainer struct { | |||
| Name string `name:"Name"` | |||
| Image string `name:"Image"` | |||
| Cpu requests.Float `name:"Cpu"` | |||
| Memory requests.Float `name:"Memory"` | |||
| WorkingDir string `name:"WorkingDir"` | |||
| ImagePullPolicy string `name:"ImagePullPolicy"` | |||
| Command []string `name:"Command" type:"Repeated"` | |||
| Arg []string `name:"Arg" type:"Repeated"` | |||
| VolumeMount *[]CreateContainerGroupVolumeMount `name:"VolumeMount" type:"Repeated"` | |||
| Port *[]CreateContainerGroupPort `name:"Port" type:"Repeated"` | |||
| EnvironmentVar *[]CreateContainerGroupEnvironmentVar `name:"EnvironmentVar" type:"Repeated"` | |||
| Gpu requests.Integer `name:"Gpu"` | |||
| SecurityContext CreateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"` | |||
| } | |||
| type CreateContainerGroupHostAliase struct { | |||
| Ip string `name:"Ip"` | |||
| Hostname []string `name:"Hostname" type:"Repeated"` | |||
| } | |||
| type CreateContainerGroupArn struct { | |||
| RoleArn string `name:"RoleArn"` | |||
| RoleType string `name:"RoleType"` | |||
| AssumeRoleFor string `name:"AssumeRoleFor"` | |||
| } | |||
| type CreateContainerGroupDnsConfig struct { | |||
| NameServer []string `name:"NameServer"` | |||
| Search []string `name:"Search"` | |||
| Option *[]CreateContainerGroupOption `name:"Option"` | |||
| } | |||
| type CreateContainerGroupSecurityContext struct { | |||
| Sysctl *[]CreateContainerGroupSysctl `name:"Sysctl"` | |||
| } | |||
| type CreateContainerGroupVolumeMount struct { | |||
| MountPath string `name:"MountPath"` | |||
| ReadOnly requests.Boolean `name:"ReadOnly"` | |||
| Name string `name:"Name"` | |||
| SubPath string `name:"SubPath"` | |||
| } | |||
| type CreateContainerGroupPort struct { | |||
| Protocol string `name:"Protocol"` | |||
| Port requests.Integer `name:"Port"` | |||
| } | |||
| type CreateContainerGroupEnvironmentVar struct { | |||
| Key string `name:"Key"` | |||
| Value string `name:"Value"` | |||
| FieldRef CreateContainerGroupFieldRef `name:"FieldRef" type:"Struct"` | |||
| } | |||
| type CreateContainerGroupFieldRef struct { | |||
| FieldPath string `name:"FieldPath"` | |||
| } | |||
| type CreateContainerGroupLifecyclePostStartHandlerHttpGetHttpHeader struct { | |||
| Name string `name:"Name"` | |||
| Value string `name:"Value"` | |||
| } | |||
| type CreateContainerGroupLifecyclePreStopHandlerHttpGetHttpHeader struct { | |||
| Name string `name:"Name"` | |||
| Value string `name:"Value"` | |||
| } | |||
| type CreateContainerGroupReadinessProbe struct { | |||
| InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"` | |||
| PeriodSeconds requests.Integer `name:"PeriodSeconds"` | |||
| SuccessThreshold requests.Integer `name:"SuccessThreshold"` | |||
| FailureThreshold requests.Integer `name:"FailureThreshold"` | |||
| TimeoutSeconds requests.Integer `name:"TimeoutSeconds"` | |||
| HttpGet CreateContainerGroupHttpGet `name:"HttpGet"` | |||
| Exec CreateContainerGroupExec `name:"Exec"` | |||
| TcpSocket CreateContainerGroupTcpSocket `name:"TcpSocket"` | |||
| } | |||
| type CreateContainerGroupHttpGet struct { | |||
| Path string `name:"Path"` | |||
| Port requests.Integer `name:"Port"` | |||
| Scheme string `name:"Scheme"` | |||
| } | |||
| type CreateContainerGroupExec struct { | |||
| Command []string `name:"Command"` | |||
| } | |||
| type CreateContainerGroupTcpSocket struct { | |||
| Port requests.Integer `name:"Port"` | |||
| } | |||
| type CreateContainerGroupLivenessProbe struct { | |||
| InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"` | |||
| PeriodSeconds requests.Integer `name:"PeriodSeconds"` | |||
| SuccessThreshold requests.Integer `name:"SuccessThreshold"` | |||
| FailureThreshold requests.Integer `name:"FailureThreshold"` | |||
| TimeoutSeconds requests.Integer `name:"TimeoutSeconds"` | |||
| HttpGet CreateContainerGroupHttpGet `name:"HttpGet"` | |||
| Exec CreateContainerGroupExec `name:"Exec"` | |||
| TcpSocket CreateContainerGroupTcpSocket `name:"TcpSocket"` | |||
| } | |||
| type CreateContainerGroupNFSVolume struct { | |||
| Server string `name:"Server"` | |||
| Path string `name:"Path"` | |||
| ReadOnly requests.Boolean `name:"ReadOnly"` | |||
| } | |||
| type CreateContainerGroupConfigFileVolume struct { | |||
| ConfigFileToPath *[]CreateContainerGroupConfigFileToPath `name:"ConfigFileToPath"` | |||
| DefaultModel requests.Integer `name:"DefaultModel"` | |||
| } | |||
| type CreateContainerGroupConfigFileToPath struct { | |||
| Content string `name:"Content"` | |||
| Path string `name:"Path"` | |||
| Mode requests.Integer `name:"Mode"` | |||
| } | |||
| type CreateContainerGroupEmptyDirVolume struct { | |||
| Medium string `name:"Medium"` | |||
| } | |||
| type CreateContainerGroupDiskVolume struct { | |||
| DiskId string `name:"DiskId"` | |||
| FsType string `name:"FsType"` | |||
| DiskSize requests.Integer `name:"DiskSize"` | |||
| } | |||
| type CreateContainerGroupFlexVolume struct { | |||
| Driver string `name:"Driver"` | |||
| FsType string `name:"FsType"` | |||
| Options string `name:"Options"` | |||
| } | |||
| type CreateContainerGroupHostPathVolume struct { | |||
| Type string `name:"Type"` | |||
| Path string `name:"Path"` | |||
| } | |||
| type CreateContainerGroupOption struct { | |||
| Name string `name:"Name"` | |||
| Value string `name:"Value"` | |||
| } | |||
| type CreateContainerGroupSysctl struct { | |||
| Name string `name:"Name"` | |||
| Value string `name:"Value"` | |||
| } | |||
| // CreateContainerGroupResponse is the response struct for api CreateContainerGroup | |||
| type CreateContainerGroupResponse struct { | |||
| *responses.BaseResponse | |||
| RequestId string `json:"RequestId" xml:"RequestId"` | |||
| ContainerGroupId string `json:"ContainerGroupId" xml:"ContainerGroupId"` | |||
| } | |||
| // CreateCreateContainerGroupRequest creates a request to invoke CreateContainerGroup API | |||
| func CreateCreateContainerGroupRequest() (request *CreateContainerGroupRequest) { | |||
| request = &CreateContainerGroupRequest{ | |||
| RpcRequest: &requests.RpcRequest{}, | |||
| } | |||
| request.InitWithApiInfo("Eci", "2018-08-08", "CreateContainerGroup", "eci", "openAPI") | |||
| return | |||
| } | |||
| // CreateCreateContainerGroupResponse creates a response to parse from CreateContainerGroup response | |||
| func CreateCreateContainerGroupResponse() (response *CreateContainerGroupResponse) { | |||
| response = &CreateContainerGroupResponse{ | |||
| BaseResponse: &responses.BaseResponse{}, | |||
| } | |||
| return | |||
| } | |||
| @@ -0,0 +1,141 @@ | |||
| //Licensed under the Apache License, Version 2.0 (the "License"); | |||
| //you may not use this file except in compliance with the License. | |||
| //You may obtain a copy of the License at | |||
| // | |||
| //http://www.apache.org/licenses/LICENSE-2.0 | |||
| // | |||
| //Unless required by applicable law or agreed to in writing, software | |||
| //distributed under the License is distributed on an "AS IS" BASIS, | |||
| //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
| //See the License for the specific language governing permissions and | |||
| //limitations under the License. | |||
| // | |||
| // Code generated by Alibaba Cloud SDK Code Generator. | |||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | |||
| package ali | |||
| import ( | |||
| "github.com/JCCE-nudt/PCM/adaptor/pod_adaptor/server/pod" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" | |||
| ) | |||
| // DeleteContainerGroup invokes the eci.DeleteContainerGroup API synchronously | |||
| // api document: https://help.aliyun.com/api/eci/deletecontainergroup.html | |||
| func (client *Client) DeleteContainerGroup(request *DeleteContainerGroupRequest) (response *DeleteContainerGroupResponse, err error) { | |||
| provider := pbtenant.CloudProvider(request.ProviderId) | |||
| regionId, err := tenanter.GetAliRegionId(request.RegionId) | |||
| podId := request.ContainerGroupId | |||
| podName := request.ContainerGroupName | |||
| requestPCM := &pbpod.DeletePodReq{ | |||
| Provider: provider, | |||
| AccountName: request.AccountName, | |||
| PodId: podId, | |||
| PodName: podName, | |||
| Namespace: request.Namespace, | |||
| RegionId: regionId, | |||
| } | |||
| resp, err := pod.DeletePod(nil, requestPCM) | |||
| response = &DeleteContainerGroupResponse{ | |||
| BaseResponse: nil, | |||
| RequestId: resp.RequestId, | |||
| } | |||
| return response, err | |||
| } | |||
| // DeleteContainerGroupWithChan invokes the eci.DeleteContainerGroup API asynchronously | |||
| // api document: https://help.aliyun.com/api/eci/deletecontainergroup.html | |||
| // asynchronous document: https://help.aliyun.com/document_detail/66220.html | |||
| func (client *Client) DeleteContainerGroupWithChan(request *DeleteContainerGroupRequest) (<-chan *DeleteContainerGroupResponse, <-chan error) { | |||
| responseChan := make(chan *DeleteContainerGroupResponse, 1) | |||
| errChan := make(chan error, 1) | |||
| err := client.AddAsyncTask(func() { | |||
| defer close(responseChan) | |||
| defer close(errChan) | |||
| response, err := client.DeleteContainerGroup(request) | |||
| if err != nil { | |||
| errChan <- err | |||
| } else { | |||
| responseChan <- response | |||
| } | |||
| }) | |||
| if err != nil { | |||
| errChan <- err | |||
| close(responseChan) | |||
| close(errChan) | |||
| } | |||
| return responseChan, errChan | |||
| } | |||
| // DeleteContainerGroupWithCallback invokes the eci.DeleteContainerGroup API asynchronously | |||
| // api document: https://help.aliyun.com/api/eci/deletecontainergroup.html | |||
| // asynchronous document: https://help.aliyun.com/document_detail/66220.html | |||
| func (client *Client) DeleteContainerGroupWithCallback(request *DeleteContainerGroupRequest, callback func(response *DeleteContainerGroupResponse, err error)) <-chan int { | |||
| result := make(chan int, 1) | |||
| err := client.AddAsyncTask(func() { | |||
| var response *DeleteContainerGroupResponse | |||
| var err error | |||
| defer close(result) | |||
| response, err = client.DeleteContainerGroup(request) | |||
| callback(response, err) | |||
| result <- 1 | |||
| }) | |||
| if err != nil { | |||
| defer close(result) | |||
| callback(nil, err) | |||
| result <- 0 | |||
| } | |||
| return result | |||
| } | |||
| // DeleteContainerGroupRequest is the request struct for api DeleteContainerGroup | |||
| type DeleteContainerGroupRequest struct { | |||
| *requests.RpcRequest | |||
| /*********PCM param************/ | |||
| ProviderId int32 `position:"Query" name:"ProviderId"` | |||
| AccountName string `position:"Query" name:"AccountName"` | |||
| Namespace string `position:"Query" name:"Namespace"` | |||
| ContainerGroupName string `position:"Query" name:"ContainerGroupName"` | |||
| /*********PCM param************/ | |||
| OwnerId requests.Integer `position:"Query" name:"OwnerId"` | |||
| ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` | |||
| ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` | |||
| OwnerAccount string `position:"Query" name:"OwnerAccount"` | |||
| RegionId string `position:"Query" name:"RegionId"` | |||
| ContainerGroupId string `position:"Query" name:"ContainerGroupId"` | |||
| ClientToken string `position:"Query" name:"ClientToken"` | |||
| VkClientVersion string `position:"Query" name:"VkClientVersion"` | |||
| } | |||
| // DeleteContainerGroupResponse is the response struct for api DeleteContainerGroup | |||
| type DeleteContainerGroupResponse struct { | |||
| *responses.BaseResponse | |||
| RequestId string `json:"RequestId" xml:"RequestId"` | |||
| } | |||
| // CreateDeleteContainerGroupRequest creates a request to invoke DeleteContainerGroup API | |||
| func CreateDeleteContainerGroupRequest() (request *DeleteContainerGroupRequest) { | |||
| request = &DeleteContainerGroupRequest{ | |||
| RpcRequest: &requests.RpcRequest{}, | |||
| } | |||
| request.InitWithApiInfo("Eci", "2018-08-08", "DeleteContainerGroup", "eci", "openAPI") | |||
| return | |||
| } | |||
| // CreateDeleteContainerGroupResponse creates a response to parse from DeleteContainerGroup response | |||
| func CreateDeleteContainerGroupResponse() (response *DeleteContainerGroupResponse) { | |||
| response = &DeleteContainerGroupResponse{ | |||
| BaseResponse: &responses.BaseResponse{}, | |||
| } | |||
| return | |||
| } | |||
| @@ -0,0 +1,371 @@ | |||
| //Licensed under the Apache License, Version 2.0 (the "License"); | |||
| //you may not use this file except in compliance with the License. | |||
| //You may obtain a copy of the License at | |||
| // | |||
| //http://www.apache.org/licenses/LICENSE-2.0 | |||
| // | |||
| //Unless required by applicable law or agreed to in writing, software | |||
| //distributed under the License is distributed on an "AS IS" BASIS, | |||
| //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
| //See the License for the specific language governing permissions and | |||
| //limitations under the License. | |||
| // | |||
| // Code generated by Alibaba Cloud SDK Code Generator. | |||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | |||
| package ali | |||
| import ( | |||
| "github.com/JCCE-nudt/PCM/adaptor/pod_adaptor/server/pod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" | |||
| ) | |||
| // DescribeContainerGroups invokes the eci.DescribeContainerGroups API synchronously | |||
| // api document: https://help.aliyun.com/api/eci/describecontainergroups.html | |||
| func (client *Client) DescribeContainerGroups(request *DescribeContainerGroupsRequest) (response *DescribeContainerGroupsResponse, err error) { | |||
| provider := pbtenant.CloudProvider(request.ProviderId) | |||
| containerGroups := make([]DescribeContainerGroupsContainerGroup0, 0) | |||
| requestPCM := &pbpod.ListPodReq{ | |||
| Provider: provider, | |||
| Namespace: "pcm", | |||
| } | |||
| resp, err := pod.ListPod(nil, requestPCM) | |||
| //trans PCM response pod set to Ali ContainerGroup set | |||
| for k := range resp.Pods { | |||
| podId := resp.Pods[k].PodId | |||
| podName := resp.Pods[k].PodName | |||
| containerGroup := new(DescribeContainerGroupsContainerGroup0) | |||
| containerGroup.ContainerGroupName = podName | |||
| containerGroup.ContainerGroupId = podId | |||
| containerGroups = append(containerGroups, *containerGroup) | |||
| } | |||
| response = &DescribeContainerGroupsResponse{ | |||
| BaseResponse: nil, | |||
| RequestId: "", | |||
| NextToken: "", | |||
| TotalCount: 0, | |||
| ContainerGroups: containerGroups, | |||
| } | |||
| return response, nil | |||
| } | |||
| // DescribeContainerGroupsWithChan invokes the eci.DescribeContainerGroups API asynchronously | |||
| // api document: https://help.aliyun.com/api/eci/describecontainergroups.html | |||
| // asynchronous document: https://help.aliyun.com/document_detail/66220.html | |||
| func (client *Client) DescribeContainerGroupsWithChan(request *DescribeContainerGroupsRequest) (<-chan *DescribeContainerGroupsResponse, <-chan error) { | |||
| responseChan := make(chan *DescribeContainerGroupsResponse, 1) | |||
| errChan := make(chan error, 1) | |||
| err := client.AddAsyncTask(func() { | |||
| defer close(responseChan) | |||
| defer close(errChan) | |||
| response, err := client.DescribeContainerGroups(request) | |||
| if err != nil { | |||
| errChan <- err | |||
| } else { | |||
| responseChan <- response | |||
| } | |||
| }) | |||
| if err != nil { | |||
| errChan <- err | |||
| close(responseChan) | |||
| close(errChan) | |||
| } | |||
| return responseChan, errChan | |||
| } | |||
| // DescribeContainerGroupsWithCallback invokes the eci.DescribeContainerGroups API asynchronously | |||
| // api document: https://help.aliyun.com/api/eci/describecontainergroups.html | |||
| // asynchronous document: https://help.aliyun.com/document_detail/66220.html | |||
| func (client *Client) DescribeContainerGroupsWithCallback(request *DescribeContainerGroupsRequest, callback func(response *DescribeContainerGroupsResponse, err error)) <-chan int { | |||
| result := make(chan int, 1) | |||
| err := client.AddAsyncTask(func() { | |||
| var response *DescribeContainerGroupsResponse | |||
| var err error | |||
| defer close(result) | |||
| response, err = client.DescribeContainerGroups(request) | |||
| callback(response, err) | |||
| result <- 1 | |||
| }) | |||
| if err != nil { | |||
| defer close(result) | |||
| callback(nil, err) | |||
| result <- 0 | |||
| } | |||
| return result | |||
| } | |||
| // DescribeContainerGroupsRequest is the request struct for api DescribeContainerGroups | |||
| type DescribeContainerGroupsRequest struct { | |||
| *requests.RpcRequest | |||
| /*********PCM param************/ | |||
| ProviderId int32 `position:"Query" name:"ProviderId"` | |||
| AccountName string `position:"Query" name:"AccountName"` | |||
| Namespace string `position:"Query" name:"Namespace"` | |||
| /*********PCM param************/ | |||
| OwnerId requests.Integer `position:"Query" name:"OwnerId"` | |||
| ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` | |||
| ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` | |||
| OwnerAccount string `position:"Query" name:"OwnerAccount"` | |||
| RegionId string `position:"Query" name:"RegionId"` | |||
| ZoneId string `position:"Query" name:"ZoneId"` | |||
| VSwitchId string `position:"Query" name:"VSwitchId"` | |||
| NextToken string `position:"Query" name:"NextToken"` | |||
| Limit requests.Integer `position:"Query" name:"Limit"` | |||
| Tag *[]DescribeContainerGroupsTag `position:"Query" name:"Tag" type:"Repeated"` | |||
| ContainerGroupIds string `position:"Query" name:"ContainerGroupIds"` | |||
| ContainerGroupName string `position:"Query" name:"ContainerGroupName"` | |||
| Status string `position:"Query" name:"Status"` | |||
| VkClientVersion string `position:"Query" name:"VkClientVersion"` | |||
| ResourceGroupId string `position:"Query" name:"ResourceGroupId"` | |||
| WithEvent requests.Boolean `position:"Query" name:"WithEvent"` | |||
| } | |||
| type DescribeContainerGroupsTag struct { | |||
| Key string `name:"Key"` | |||
| Value string `name:"Value"` | |||
| } | |||
| // DescribeContainerGroupsResponse is the response struct for api DescribeContainerGroups | |||
| type DescribeContainerGroupsResponse struct { | |||
| *responses.BaseResponse | |||
| RequestId string `json:"RequestId" xml:"RequestId"` | |||
| NextToken string `json:"NextToken" xml:"NextToken"` | |||
| TotalCount int `json:"TotalCount" xml:"TotalCount"` | |||
| ContainerGroups []DescribeContainerGroupsContainerGroup0 `json:"ContainerGroups" xml:"ContainerGroups"` | |||
| } | |||
| type DescribeContainerGroupsContainerGroup0 struct { | |||
| ContainerGroupId string `json:"ContainerGroupId" xml:"ContainerGroupId"` | |||
| ContainerGroupName string `json:"ContainerGroupName" xml:"ContainerGroupName"` | |||
| RegionId string `json:"RegionId" xml:"RegionId"` | |||
| ZoneId string `json:"ZoneId" xml:"ZoneId"` | |||
| Memory float32 `json:"Memory" xml:"Memory"` | |||
| Cpu float32 `json:"Cpu" xml:"Cpu"` | |||
| VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` | |||
| SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` | |||
| RestartPolicy string `json:"RestartPolicy" xml:"RestartPolicy"` | |||
| IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` | |||
| Status string `json:"Status" xml:"Status"` | |||
| InternetIp string `json:"InternetIp" xml:"InternetIp"` | |||
| CreationTime string `json:"CreationTime" xml:"CreationTime"` | |||
| SucceededTime string `json:"SucceededTime" xml:"SucceededTime"` | |||
| EniInstanceId string `json:"EniInstanceId" xml:"EniInstanceId"` | |||
| InstanceType string `json:"InstanceType" xml:"InstanceType"` | |||
| ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` | |||
| FailedTime string `json:"FailedTime" xml:"FailedTime"` | |||
| RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` | |||
| Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"` | |||
| VpcId string `json:"VpcId" xml:"VpcId"` | |||
| Discount int `json:"Discount" xml:"Discount"` | |||
| ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` | |||
| Tags []DescribeContainerGroupsLabel1 `json:"Tags" xml:"Tags"` | |||
| Events []DescribeContainerGroupsEvent1 `json:"Events" xml:"Events"` | |||
| Containers []DescribeContainerGroupsContainer1 `json:"Containers" xml:"Containers"` | |||
| Volumes []DescribeContainerGroupsVolume1 `json:"Volumes" xml:"Volumes"` | |||
| InitContainers []DescribeContainerGroupsContainer1 `json:"InitContainers" xml:"InitContainers"` | |||
| HostAliases []DescribeContainerGroupsHostAliase1 `json:"HostAliases" xml:"HostAliases"` | |||
| DnsConfig DescribeContainerGroupsDnsConfig1 `json:"DnsConfig" xml:"DnsConfig"` | |||
| EciSecurityContext DescribeContainerGroupsEciSecurityContext1 `json:"EciSecurityContext" xml:"EciSecurityContext"` | |||
| } | |||
| type DescribeContainerGroupsLabel1 struct { | |||
| Key string `json:"Key" xml:"Key"` | |||
| Value string `json:"Value" xml:"Value"` | |||
| } | |||
| type DescribeContainerGroupsEvent1 struct { | |||
| Count int `json:"Count" xml:"Count"` | |||
| Type string `json:"Type" xml:"Type"` | |||
| Name string `json:"Name" xml:"Name"` | |||
| Message string `json:"Message" xml:"Message"` | |||
| FirstTimestamp string `json:"FirstTimestamp" xml:"FirstTimestamp"` | |||
| LastTimestamp string `json:"LastTimestamp" xml:"LastTimestamp"` | |||
| Reason string `json:"Reason" xml:"Reason"` | |||
| } | |||
| type DescribeContainerGroupsContainer1 struct { | |||
| Name string `json:"Name" xml:"Name"` | |||
| Image string `json:"Image" xml:"Image"` | |||
| Memory float32 `json:"Memory" xml:"Memory"` | |||
| Cpu float32 `json:"Cpu" xml:"Cpu"` | |||
| RestartCount int `json:"RestartCount" xml:"RestartCount"` | |||
| WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` | |||
| ImagePullPolicy string `json:"ImagePullPolicy" xml:"ImagePullPolicy"` | |||
| Ready bool `json:"Ready" xml:"Ready"` | |||
| Gpu int `json:"Gpu" xml:"Gpu"` | |||
| Stdin bool `json:"Stdin" xml:"Stdin"` | |||
| StdinOnce bool `json:"StdinOnce" xml:"StdinOnce"` | |||
| Tty bool `json:"Tty" xml:"Tty"` | |||
| VolumeMounts []DescribeContainerGroupsVolumeMount2 `json:"VolumeMounts" xml:"VolumeMounts"` | |||
| Ports []DescribeContainerGroupsPort2 `json:"Ports" xml:"Ports"` | |||
| EnvironmentVars []DescribeContainerGroupsEnvironmentVar2 `json:"EnvironmentVars" xml:"EnvironmentVars"` | |||
| Commands []string `json:"Commands" xml:"Commands"` | |||
| Args []string `json:"Args" xml:"Args"` | |||
| PreviousState DescribeContainerGroupsPreviousState2 `json:"PreviousState" xml:"PreviousState"` | |||
| CurrentState DescribeContainerGroupsCurrentState2 `json:"CurrentState" xml:"CurrentState"` | |||
| ReadinessProbe DescribeContainerGroupsReadinessProbe2 `json:"ReadinessProbe" xml:"ReadinessProbe"` | |||
| LivenessProbe DescribeContainerGroupsLivenessProbe2 `json:"LivenessProbe" xml:"LivenessProbe"` | |||
| SecurityContext DescribeContainerGroupsSecurityContext2 `json:"SecurityContext" xml:"SecurityContext"` | |||
| } | |||
| type DescribeContainerGroupsVolumeMount2 struct { | |||
| Name string `json:"Name" xml:"Name"` | |||
| MountPath string `json:"MountPath" xml:"MountPath"` | |||
| ReadOnly bool `json:"ReadOnly" xml:"ReadOnly"` | |||
| } | |||
| type DescribeContainerGroupsPort2 struct { | |||
| Port int `json:"Port" xml:"Port"` | |||
| Protocol string `json:"Protocol" xml:"Protocol"` | |||
| } | |||
| type DescribeContainerGroupsEnvironmentVar2 struct { | |||
| Key string `json:"Key" xml:"Key"` | |||
| Value string `json:"Value" xml:"Value"` | |||
| ValueFrom DescribeContainerGroupsValueFrom3 `json:"ValueFrom" xml:"ValueFrom"` | |||
| } | |||
| type DescribeContainerGroupsValueFrom3 struct { | |||
| FieldRef DescribeContainerGroupsFieldRef4 `json:"FieldRef" xml:"FieldRef"` | |||
| } | |||
| type DescribeContainerGroupsFieldRef4 struct { | |||
| FieldPath string `json:"FieldPath" xml:"FieldPath"` | |||
| } | |||
| type DescribeContainerGroupsPreviousState2 struct { | |||
| State string `json:"State" xml:"State"` | |||
| DetailStatus string `json:"DetailStatus" xml:"DetailStatus"` | |||
| ExitCode int `json:"ExitCode" xml:"ExitCode"` | |||
| StartTime string `json:"StartTime" xml:"StartTime"` | |||
| FinishTime string `json:"FinishTime" xml:"FinishTime"` | |||
| Reason string `json:"Reason" xml:"Reason"` | |||
| Message string `json:"Message" xml:"Message"` | |||
| Signal int `json:"Signal" xml:"Signal"` | |||
| } | |||
| type DescribeContainerGroupsCurrentState2 struct { | |||
| State string `json:"State" xml:"State"` | |||
| DetailStatus string `json:"DetailStatus" xml:"DetailStatus"` | |||
| ExitCode int `json:"ExitCode" xml:"ExitCode"` | |||
| StartTime string `json:"StartTime" xml:"StartTime"` | |||
| FinishTime string `json:"FinishTime" xml:"FinishTime"` | |||
| Reason string `json:"Reason" xml:"Reason"` | |||
| Message string `json:"Message" xml:"Message"` | |||
| Signal int `json:"Signal" xml:"Signal"` | |||
| } | |||
| type DescribeContainerGroupsReadinessProbe2 struct { | |||
| InitialDelaySeconds int `json:"InitialDelaySeconds" xml:"InitialDelaySeconds"` | |||
| PeriodSeconds int `json:"PeriodSeconds" xml:"PeriodSeconds"` | |||
| TimeoutSeconds int `json:"TimeoutSeconds" xml:"TimeoutSeconds"` | |||
| SuccessThreshold int `json:"SuccessThreshold" xml:"SuccessThreshold"` | |||
| FailureThreshold int `json:"FailureThreshold" xml:"FailureThreshold"` | |||
| Execs []string `json:"Execs" xml:"Execs"` | |||
| HttpGet DescribeContainerGroupsHttpGet3 `json:"HttpGet" xml:"HttpGet"` | |||
| TcpSocket DescribeContainerGroupsTcpSocket3 `json:"TcpSocket" xml:"TcpSocket"` | |||
| } | |||
| type DescribeContainerGroupsHttpGet3 struct { | |||
| Path string `json:"Path" xml:"Path"` | |||
| Port int `json:"Port" xml:"Port"` | |||
| Scheme string `json:"Scheme" xml:"Scheme"` | |||
| } | |||
| type DescribeContainerGroupsTcpSocket3 struct { | |||
| Host string `json:"Host" xml:"Host"` | |||
| Port int `json:"Port" xml:"Port"` | |||
| } | |||
| type DescribeContainerGroupsLivenessProbe2 struct { | |||
| InitialDelaySeconds int `json:"InitialDelaySeconds" xml:"InitialDelaySeconds"` | |||
| PeriodSeconds int `json:"PeriodSeconds" xml:"PeriodSeconds"` | |||
| TimeoutSeconds int `json:"TimeoutSeconds" xml:"TimeoutSeconds"` | |||
| SuccessThreshold int `json:"SuccessThreshold" xml:"SuccessThreshold"` | |||
| FailureThreshold int `json:"FailureThreshold" xml:"FailureThreshold"` | |||
| Execs []string `json:"Execs" xml:"Execs"` | |||
| HttpGet DescribeContainerGroupsHttpGet3 `json:"HttpGet" xml:"HttpGet"` | |||
| TcpSocket DescribeContainerGroupsTcpSocket3 `json:"TcpSocket" xml:"TcpSocket"` | |||
| } | |||
| type DescribeContainerGroupsSecurityContext2 struct { | |||
| ReadOnlyRootFilesystem bool `json:"ReadOnlyRootFilesystem" xml:"ReadOnlyRootFilesystem"` | |||
| RunAsUser int64 `json:"RunAsUser" xml:"RunAsUser"` | |||
| Capability DescribeContainerGroupsCapability3 `json:"Capability" xml:"Capability"` | |||
| } | |||
| type DescribeContainerGroupsCapability3 struct { | |||
| Adds []string `json:"Adds" xml:"Adds"` | |||
| } | |||
| type DescribeContainerGroupsVolume1 struct { | |||
| Type string `json:"Type" xml:"Type"` | |||
| Name string `json:"Name" xml:"Name"` | |||
| NFSVolumePath string `json:"NFSVolumePath" xml:"NFSVolumePath"` | |||
| NFSVolumeServer string `json:"NFSVolumeServer" xml:"NFSVolumeServer"` | |||
| NFSVolumeReadOnly bool `json:"NFSVolumeReadOnly" xml:"NFSVolumeReadOnly"` | |||
| DiskVolumeDiskId string `json:"DiskVolumeDiskId" xml:"DiskVolumeDiskId"` | |||
| DiskVolumeFsType string `json:"DiskVolumeFsType" xml:"DiskVolumeFsType"` | |||
| FlexVolumeDriver string `json:"FlexVolumeDriver" xml:"FlexVolumeDriver"` | |||
| FlexVolumeFsType string `json:"FlexVolumeFsType" xml:"FlexVolumeFsType"` | |||
| FlexVolumeOptions string `json:"FlexVolumeOptions" xml:"FlexVolumeOptions"` | |||
| ConfigFileVolumeConfigFileToPaths []DescribeContainerGroupsConfigFileVolumeConfigFileToPath2 `json:"ConfigFileVolumeConfigFileToPaths" xml:"ConfigFileVolumeConfigFileToPaths"` | |||
| } | |||
| type DescribeContainerGroupsConfigFileVolumeConfigFileToPath2 struct { | |||
| Content string `json:"Content" xml:"Content"` | |||
| Path string `json:"Path" xml:"Path"` | |||
| } | |||
| type DescribeContainerGroupsHostAliase1 struct { | |||
| Ip string `json:"Ip" xml:"Ip"` | |||
| Hostnames []string `json:"Hostnames" xml:"Hostnames"` | |||
| } | |||
| type DescribeContainerGroupsDnsConfig1 struct { | |||
| Options []DescribeContainerGroupsOption2 `json:"Options" xml:"Options"` | |||
| NameServers []string `json:"NameServers" xml:"NameServers"` | |||
| Searches []string `json:"Searches" xml:"Searches"` | |||
| } | |||
| type DescribeContainerGroupsOption2 struct { | |||
| Name string `json:"Name" xml:"Name"` | |||
| Value string `json:"Value" xml:"Value"` | |||
| } | |||
| type DescribeContainerGroupsEciSecurityContext1 struct { | |||
| Sysctls []DescribeContainerGroupsSysctl2 `json:"Sysctls" xml:"Sysctls"` | |||
| } | |||
| type DescribeContainerGroupsSysctl2 struct { | |||
| Name string `json:"Name" xml:"Name"` | |||
| Value string `json:"Value" xml:"Value"` | |||
| } | |||
| // CreateDescribeContainerGroupsRequest creates a request to invoke DescribeContainerGroups API | |||
| func CreateDescribeContainerGroupsRequest() (request *DescribeContainerGroupsRequest) { | |||
| request = &DescribeContainerGroupsRequest{ | |||
| RpcRequest: &requests.RpcRequest{}, | |||
| } | |||
| request.InitWithApiInfo("Eci", "2018-08-08", "DescribeContainerGroups", "eci", "openAPI") | |||
| return | |||
| } | |||
| // CreateDescribeContainerGroupsResponse creates a response to parse from DescribeContainerGroups response | |||
| func CreateDescribeContainerGroupsResponse() (response *DescribeContainerGroupsResponse) { | |||
| response = &DescribeContainerGroupsResponse{ | |||
| BaseResponse: &responses.BaseResponse{}, | |||
| } | |||
| return | |||
| } | |||
| @@ -0,0 +1,305 @@ | |||
| //Licensed under the Apache License, Version 2.0 (the "License"); | |||
| //you may not use this file except in compliance with the License. | |||
| //You may obtain a copy of the License at | |||
| // | |||
| //http://www.apache.org/licenses/LICENSE-2.0 | |||
| // | |||
| //Unless required by applicable law or agreed to in writing, software | |||
| //distributed under the License is distributed on an "AS IS" BASIS, | |||
| //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
| //See the License for the specific language governing permissions and | |||
| //limitations under the License. | |||
| // | |||
| // Code generated by Alibaba Cloud SDK Code Generator. | |||
| // Changes may cause incorrect behavior and will be lost if the code is regenerated. | |||
| package ali | |||
| import ( | |||
| "github.com/JCCE-nudt/PCM/adaptor/pod_adaptor/server/pod" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" | |||
| "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" | |||
| ) | |||
| // UpdateContainerGroup invokes the eci.UpdateContainerGroup API synchronously | |||
| // api document: https://help.aliyun.com/api/eci/updatecontainergroup.html | |||
| func (client *Client) UpdateContainerGroup(request *UpdateContainerGroupRequest) (response *UpdateContainerGroupResponse, err error) { | |||
| provider := pbtenant.CloudProvider(request.ProviderId) | |||
| regionId, err := tenanter.GetAliRegionId(request.RegionId) | |||
| containers := *request.Container | |||
| requestPCM := &pbpod.UpdatePodReq{ | |||
| Provider: provider, | |||
| AccountName: request.AccountName, | |||
| PodId: request.ContainerGroupId, | |||
| PodName: request.ContainerGroupName, | |||
| Namespace: request.Namespace, | |||
| RegionId: regionId, | |||
| ContainerImage: containers[0].Image, | |||
| ContainerName: containers[0].Name, | |||
| CpuPod: string(containers[0].Cpu), | |||
| MemoryPod: string(containers[0].Memory), | |||
| RestartPolicy: request.RestartPolicy, | |||
| Labels: "", | |||
| } | |||
| resp, err := pod.UpdatePod(nil, requestPCM) | |||
| response = &UpdateContainerGroupResponse{ | |||
| BaseResponse: nil, | |||
| RequestId: resp.RequestId, | |||
| } | |||
| return response, err | |||
| } | |||
| // UpdateContainerGroupWithChan invokes the eci.UpdateContainerGroup API asynchronously | |||
| // api document: https://help.aliyun.com/api/eci/updatecontainergroup.html | |||
| // asynchronous document: https://help.aliyun.com/document_detail/66220.html | |||
| func (client *Client) UpdateContainerGroupWithChan(request *UpdateContainerGroupRequest) (<-chan *UpdateContainerGroupResponse, <-chan error) { | |||
| responseChan := make(chan *UpdateContainerGroupResponse, 1) | |||
| errChan := make(chan error, 1) | |||
| err := client.AddAsyncTask(func() { | |||
| defer close(responseChan) | |||
| defer close(errChan) | |||
| response, err := client.UpdateContainerGroup(request) | |||
| if err != nil { | |||
| errChan <- err | |||
| } else { | |||
| responseChan <- response | |||
| } | |||
| }) | |||
| if err != nil { | |||
| errChan <- err | |||
| close(responseChan) | |||
| close(errChan) | |||
| } | |||
| return responseChan, errChan | |||
| } | |||
| // UpdateContainerGroupWithCallback invokes the eci.UpdateContainerGroup API asynchronously | |||
| // api document: https://help.aliyun.com/api/eci/updatecontainergroup.html | |||
| // asynchronous document: https://help.aliyun.com/document_detail/66220.html | |||
| func (client *Client) UpdateContainerGroupWithCallback(request *UpdateContainerGroupRequest, callback func(response *UpdateContainerGroupResponse, err error)) <-chan int { | |||
| result := make(chan int, 1) | |||
| err := client.AddAsyncTask(func() { | |||
| var response *UpdateContainerGroupResponse | |||
| var err error | |||
| defer close(result) | |||
| response, err = client.UpdateContainerGroup(request) | |||
| callback(response, err) | |||
| result <- 1 | |||
| }) | |||
| if err != nil { | |||
| defer close(result) | |||
| callback(nil, err) | |||
| result <- 0 | |||
| } | |||
| return result | |||
| } | |||
| // UpdateContainerGroupRequest is the request struct for api UpdateContainerGroup | |||
| type UpdateContainerGroupRequest struct { | |||
| *requests.RpcRequest | |||
| /*********PCM param************/ | |||
| ProviderId int32 `position:"Query" name:"ProviderId"` | |||
| AccountName string `position:"Query" name:"AccountName"` | |||
| Namespace string `position:"Query" name:"Namespace"` | |||
| ContainerGroupName string `position:"Query" name:"ContainerGroupName"` | |||
| /*********PCM param************/ | |||
| OwnerId requests.Integer `position:"Query" name:"OwnerId"` | |||
| ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` | |||
| ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` | |||
| OwnerAccount string `position:"Query" name:"OwnerAccount"` | |||
| RegionId string `position:"Query" name:"RegionId"` | |||
| ContainerGroupId string `position:"Query" name:"ContainerGroupId"` | |||
| RestartPolicy string `position:"Query" name:"RestartPolicy"` | |||
| Tag *[]UpdateContainerGroupTag `position:"Query" name:"Tag" type:"Repeated"` | |||
| Volume *[]UpdateContainerGroupVolume `position:"Query" name:"Volume" type:"Repeated"` | |||
| Container *[]UpdateContainerGroupContainer `position:"Query" name:"Container" type:"Repeated"` | |||
| InitContainer *[]UpdateContainerGroupInitContainer `position:"Query" name:"InitContainer" type:"Repeated"` | |||
| ImageRegistryCredential *[]UpdateContainerGroupImageRegistryCredential `position:"Query" name:"ImageRegistryCredential" type:"Repeated"` | |||
| ClientToken string `position:"Query" name:"ClientToken"` | |||
| Cpu requests.Float `position:"Query" name:"Cpu"` | |||
| Memory requests.Float `position:"Query" name:"Memory"` | |||
| DnsConfig UpdateContainerGroupDnsConfig `position:"Query" name:"DnsConfig" type:"Struct"` | |||
| } | |||
| type UpdateContainerGroupTag struct { | |||
| Key string `name:"Key"` | |||
| Value string `name:"Value"` | |||
| } | |||
| type UpdateContainerGroupVolume struct { | |||
| Name string `name:"Name"` | |||
| Type string `name:"Type"` | |||
| NFSVolume UpdateContainerGroupNFSVolume `name:"NFSVolume" type:"Struct"` | |||
| ConfigFileVolume UpdateContainerGroupConfigFileVolume `name:"ConfigFileVolume" type:"Struct"` | |||
| EmptyDirVolume UpdateContainerGroupEmptyDirVolume `name:"EmptyDirVolume" type:"Struct"` | |||
| } | |||
| type UpdateContainerGroupContainer struct { | |||
| Name string `name:"Name"` | |||
| Image string `name:"Image"` | |||
| Cpu requests.Float `name:"Cpu"` | |||
| Memory requests.Float `name:"Memory"` | |||
| WorkingDir string `name:"WorkingDir"` | |||
| ImagePullPolicy string `name:"ImagePullPolicy"` | |||
| Stdin requests.Boolean `name:"Stdin"` | |||
| StdinOnce requests.Boolean `name:"StdinOnce"` | |||
| Tty requests.Boolean `name:"Tty"` | |||
| Command []string `name:"Command" type:"Repeated"` | |||
| Arg []string `name:"Arg" type:"Repeated"` | |||
| EnvironmentVar []string `name:"EnvironmentVar" type:"Repeated"` | |||
| Port []string `name:"Port" type:"Repeated"` | |||
| VolumeMount []string `name:"VolumeMount" type:"Repeated"` | |||
| Gpu requests.Integer `name:"Gpu"` | |||
| ReadinessProbe UpdateContainerGroupReadinessProbe `name:"ReadinessProbe" type:"Struct"` | |||
| LivenessProbe UpdateContainerGroupLivenessProbe `name:"LivenessProbe" type:"Struct"` | |||
| SecurityContext UpdateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"` | |||
| } | |||
| type UpdateContainerGroupInitContainer struct { | |||
| Name string `name:"Name"` | |||
| Image string `name:"Image"` | |||
| Cpu requests.Float `name:"Cpu"` | |||
| Memory requests.Float `name:"Memory"` | |||
| WorkingDir string `name:"WorkingDir"` | |||
| ImagePullPolicy string `name:"ImagePullPolicy"` | |||
| Stdin requests.Boolean `name:"Stdin"` | |||
| StdinOnce requests.Boolean `name:"StdinOnce"` | |||
| Tty requests.Boolean `name:"Tty"` | |||
| Command []string `name:"Command" type:"Repeated"` | |||
| Arg []string `name:"Arg" type:"Repeated"` | |||
| EnvironmentVar *[]UpdateContainerGroupEnvironmentVar `name:"EnvironmentVar" type:"Repeated"` | |||
| Port *[]UpdateContainerGroupPort `name:"Port" type:"Repeated"` | |||
| VolumeMount *[]UpdateContainerGroupVolumeMount `name:"VolumeMount" type:"Repeated"` | |||
| Gpu requests.Integer `name:"Gpu"` | |||
| SecurityContext UpdateContainerGroupSecurityContext `name:"SecurityContext" type:"Struct"` | |||
| } | |||
| type UpdateContainerGroupImageRegistryCredential struct { | |||
| Server string `name:"Server"` | |||
| UserName string `name:"UserName"` | |||
| Password string `name:"Password"` | |||
| } | |||
| type UpdateContainerGroupDnsConfig struct { | |||
| NameServer []string `name:"NameServer"` | |||
| Search []string `name:"Search"` | |||
| Option *[]UpdateContainerGroupOption `name:"Option"` | |||
| } | |||
| type UpdateContainerGroupNFSVolume struct { | |||
| Server string `name:"Server"` | |||
| Path string `name:"Path"` | |||
| ReadOnly requests.Boolean `name:"ReadOnly"` | |||
| } | |||
| type UpdateContainerGroupConfigFileVolume struct { | |||
| ConfigFileToPath *[]UpdateContainerGroupConfigFileToPath `name:"ConfigFileToPath"` | |||
| } | |||
| type UpdateContainerGroupConfigFileToPath struct { | |||
| Content string `name:"Content"` | |||
| Path string `name:"Path"` | |||
| } | |||
| type UpdateContainerGroupEmptyDirVolume struct { | |||
| Medium string `name:"Medium"` | |||
| } | |||
| type UpdateContainerGroupReadinessProbe struct { | |||
| InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"` | |||
| PeriodSeconds requests.Integer `name:"PeriodSeconds"` | |||
| SuccessThreshold requests.Integer `name:"SuccessThreshold"` | |||
| FailureThreshold requests.Integer `name:"FailureThreshold"` | |||
| TimeoutSeconds requests.Integer `name:"TimeoutSeconds"` | |||
| TcpSocket UpdateContainerGroupTcpSocket `name:"TcpSocket"` | |||
| Exec UpdateContainerGroupExec `name:"Exec"` | |||
| HttpGet UpdateContainerGroupHttpGet `name:"HttpGet"` | |||
| } | |||
| type UpdateContainerGroupTcpSocket struct { | |||
| Port requests.Integer `name:"Port"` | |||
| } | |||
| type UpdateContainerGroupExec struct { | |||
| Command []string `name:"Command"` | |||
| } | |||
| type UpdateContainerGroupHttpGet struct { | |||
| Path string `name:"Path"` | |||
| Port requests.Integer `name:"Port"` | |||
| Scheme string `name:"Scheme"` | |||
| } | |||
| type UpdateContainerGroupLivenessProbe struct { | |||
| InitialDelaySeconds requests.Integer `name:"InitialDelaySeconds"` | |||
| PeriodSeconds requests.Integer `name:"PeriodSeconds"` | |||
| SuccessThreshold requests.Integer `name:"SuccessThreshold"` | |||
| FailureThreshold requests.Integer `name:"FailureThreshold"` | |||
| TimeoutSeconds requests.Integer `name:"TimeoutSeconds"` | |||
| TcpSocket UpdateContainerGroupTcpSocket `name:"TcpSocket"` | |||
| Exec UpdateContainerGroupExec `name:"Exec"` | |||
| HttpGet UpdateContainerGroupHttpGet `name:"HttpGet"` | |||
| } | |||
| type UpdateContainerGroupSecurityContext struct { | |||
| ReadOnlyRootFilesystem requests.Boolean `name:"ReadOnlyRootFilesystem"` | |||
| RunAsUser requests.Integer `name:"RunAsUser"` | |||
| Capability UpdateContainerGroupCapability `name:"Capability"` | |||
| } | |||
| type UpdateContainerGroupCapability struct { | |||
| Add []string `name:"Add"` | |||
| } | |||
| type UpdateContainerGroupEnvironmentVar struct { | |||
| Key string `name:"Key"` | |||
| Value string `name:"Value"` | |||
| } | |||
| type UpdateContainerGroupPort struct { | |||
| Port requests.Integer `name:"Port"` | |||
| Protocol string `name:"Protocol"` | |||
| } | |||
| type UpdateContainerGroupVolumeMount struct { | |||
| Name string `name:"Name"` | |||
| MountPath string `name:"MountPath"` | |||
| SubPath string `name:"SubPath"` | |||
| ReadOnly requests.Boolean `name:"ReadOnly"` | |||
| } | |||
| type UpdateContainerGroupOption struct { | |||
| Name string `name:"Name"` | |||
| Value string `name:"Value"` | |||
| } | |||
| // UpdateContainerGroupResponse is the response struct for api UpdateContainerGroup | |||
| type UpdateContainerGroupResponse struct { | |||
| *responses.BaseResponse | |||
| RequestId string `json:"RequestId" xml:"RequestId"` | |||
| } | |||
| // CreateUpdateContainerGroupRequest creates a request to invoke UpdateContainerGroup API | |||
| func CreateUpdateContainerGroupRequest() (request *UpdateContainerGroupRequest) { | |||
| request = &UpdateContainerGroupRequest{ | |||
| RpcRequest: &requests.RpcRequest{}, | |||
| } | |||
| request.InitWithApiInfo("Eci", "2018-08-08", "UpdateContainerGroup", "eci", "openAPI") | |||
| return | |||
| } | |||
| // CreateUpdateContainerGroupResponse creates a response to parse from UpdateContainerGroup response | |||
| func CreateUpdateContainerGroupResponse() (response *UpdateContainerGroupResponse) { | |||
| response = &UpdateContainerGroupResponse{ | |||
| BaseResponse: &responses.BaseResponse{}, | |||
| } | |||
| return | |||
| } | |||
| @@ -4,8 +4,8 @@ import ( | |||
| "os" | |||
| "testing" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| var ( | |||
| @@ -5,10 +5,10 @@ import ( | |||
| "fmt" | |||
| "sync" | |||
| "gitlink.org.cn/JCCE/PCM/adaptor/pod_adaptor/service/poder" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/adaptor/pod_adaptor/service/poder" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/golang/glog" | |||
| "github.com/pkg/errors" | |||
| @@ -4,8 +4,8 @@ import ( | |||
| "context" | |||
| "testing" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| func TestListDetail(t *testing.T) { | |||
| @@ -9,10 +9,10 @@ import ( | |||
| "strconv" | |||
| "sync" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/pkg/errors" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| var aliClientMutex sync.Mutex | |||
| @@ -120,7 +120,7 @@ func (eci *AliEci) DeletePod(ctx context.Context, req *pbpod.DeletePodReq) (*pbp | |||
| deleteContainerGroupRequest := alieci.CreateDeleteContainerGroupRequest() | |||
| deleteContainerGroupRequest.RegionId = eci.region.GetName() | |||
| deleteContainerGroupRequest.ContainerGroupId = req.PodId | |||
| deleteContainerGroupRequest.ContainerGroupId = req.PcmId | |||
| resp, err := eci.cli.DeleteContainerGroup(deleteContainerGroupRequest) | |||
| isFinished := true | |||
| @@ -143,7 +143,7 @@ func (eci *AliEci) UpdatePod(ctx context.Context, req *pbpod.UpdatePodReq) (*pbp | |||
| updateContainerGroupRequest := alieci.CreateUpdateContainerGroupRequest() | |||
| updateContainerGroupRequest.RegionId = eci.region.GetName() | |||
| updateContainerGroupRequest.ContainerGroupId = req.PodId | |||
| updateContainerGroupRequest.ContainerGroupId = req.PcmId | |||
| updateContainerRequestContainer := make([]alieci.UpdateContainerGroupContainer, 1) | |||
| updateContainerRequestContainer[0].Image = req.ContainerImage | |||
| @@ -184,6 +184,7 @@ func (eci *AliEci) ListPodDetail(ctx context.Context, req *pbpod.ListPodDetailRe | |||
| ecies[k] = &pbpod.PodInstance{ | |||
| Provider: pbtenant.CloudProvider_ali, | |||
| AccountName: eci.tenanter.AccountName(), | |||
| PcmId: v.ContainerGroupId, | |||
| PodId: v.ContainerGroupId, | |||
| PodName: v.ContainerGroupName, | |||
| RegionId: eci.region.GetId(), | |||
| @@ -12,16 +12,16 @@ import ( | |||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| corev1 "k8s.io/api/core/v1" | |||
| huaweicci "k8s.io/client-go/kubernetes" | |||
| "k8s.io/client-go/tools/clientcmd" | |||
| "k8s.io/client-go/tools/clientcmd/api" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/pkg/errors" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| ) | |||
| var huaweiClientMutex sync.Mutex | |||
| @@ -148,7 +148,7 @@ func (cci *HuaweiCci) CreatePod(ctx context.Context, req *pbpod.CreatePodReq) (* | |||
| func (cci *HuaweiCci) DeletePod(ctx context.Context, req *pbpod.DeletePodReq) (*pbpod.DeletePodResp, error) { | |||
| err := cci.cli.CoreV1().Pods(req.GetNamespace()).Delete(context.TODO(), req.PodName, metav1.DeleteOptions{}) | |||
| err := cci.cli.CoreV1().Pods(req.GetNamespace()).Delete(context.TODO(), req.PcmId, metav1.DeleteOptions{}) | |||
| isFinished := true | |||
| if err != nil { | |||
| @@ -169,7 +169,7 @@ func (cci *HuaweiCci) DeletePod(ctx context.Context, req *pbpod.DeletePodReq) (* | |||
| func (cci *HuaweiCci) UpdatePod(ctx context.Context, req *pbpod.UpdatePodReq) (*pbpod.UpdatePodResp, error) { | |||
| qresp, err := cci.cli.CoreV1().Pods(req.GetNamespace()).Get(context.TODO(), req.PodName, metav1.GetOptions{}) | |||
| qresp, err := cci.cli.CoreV1().Pods(req.GetNamespace()).Get(context.TODO(), req.PcmId, metav1.GetOptions{}) | |||
| if err != nil { | |||
| return nil, errors.Wrap(err, "Huaweiyun UpdatePod error") | |||
| } | |||
| @@ -218,6 +218,7 @@ func (cci *HuaweiCci) ListPodDetail(ctx context.Context, req *pbpod.ListPodDetai | |||
| pods[k] = &pbpod.PodInstance{ | |||
| Provider: pbtenant.CloudProvider_huawei, | |||
| AccountName: cci.tenanter.AccountName(), | |||
| PcmId: v.Name, | |||
| PodId: string(v.GetUID()), | |||
| PodName: v.Name, | |||
| RegionId: cci.region.GetId(), | |||
| @@ -3,11 +3,11 @@ package poder | |||
| import ( | |||
| "context" | |||
| "fmt" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/golang/glog" | |||
| "github.com/pkg/errors" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| corev1 "k8s.io/api/core/v1" | |||
| "k8s.io/apimachinery/pkg/api/resource" | |||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||
| @@ -135,7 +135,7 @@ func (k *K8SPoder) CreatePod(ctx context.Context, req *pbpod.CreatePodReq) (*pbp | |||
| func (k K8SPoder) DeletePod(ctx context.Context, req *pbpod.DeletePodReq) (*pbpod.DeletePodResp, error) { | |||
| podName := req.PodName | |||
| podName := req.PcmId | |||
| fmt.Println("K8S ContainerGroup:", podName, " Deleted") | |||
| err := k.cli.CoreV1().Pods(req.Namespace).Delete(context.TODO(), podName, metav1.DeleteOptions{}) | |||
| @@ -157,14 +157,14 @@ func (k K8SPoder) DeletePod(ctx context.Context, req *pbpod.DeletePodReq) (*pbpo | |||
| func (k K8SPoder) UpdatePod(ctx context.Context, req *pbpod.UpdatePodReq) (*pbpod.UpdatePodResp, error) { | |||
| qresp, err := k.cli.CoreV1().Pods(req.GetNamespace()).Get(context.TODO(), req.PodName, metav1.GetOptions{}) | |||
| qresp, err := k.cli.CoreV1().Pods(req.GetNamespace()).Get(context.TODO(), req.PcmId, metav1.GetOptions{}) | |||
| if err != nil { | |||
| return nil, errors.Wrap(err, "K8S UpdatePod error") | |||
| } | |||
| pod := corev1.Pod{ | |||
| TypeMeta: qresp.TypeMeta, | |||
| ObjectMeta: metav1.ObjectMeta{ | |||
| Name: req.PodName, | |||
| Name: req.PcmId, | |||
| Namespace: req.Namespace, | |||
| Labels: map[string]string{"name": req.Labels}, | |||
| }, | |||
| @@ -204,6 +204,7 @@ func (k K8SPoder) ListPodDetail(ctx context.Context, req *pbpod.ListPodDetailReq | |||
| pods[k] = &pbpod.PodInstance{ | |||
| Provider: pbtenant.CloudProvider_k8s, | |||
| AccountName: req.AccountName, | |||
| PcmId: v.Name, | |||
| PodId: string(v.GetUID()), | |||
| PodName: v.Name, | |||
| ContainerImage: v.Spec.Containers[0].Image, | |||
| @@ -4,8 +4,8 @@ import ( | |||
| "os" | |||
| "testing" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| var ( | |||
| @@ -3,9 +3,9 @@ package poder | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/golang/glog" | |||
| "github.com/pkg/errors" | |||
| @@ -2,11 +2,11 @@ package poder | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "testing" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| func TestEcser_ListDetail(t *testing.T) { | |||
| @@ -7,14 +7,14 @@ import ( | |||
| "github.com/golang/glog" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/pkg/errors" | |||
| "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" | |||
| "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" | |||
| tencenteks "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| ) | |||
| var tencentClientMutex sync.Mutex | |||
| @@ -36,8 +36,9 @@ func (eks TencentEks) GetPodRegion(ctx context.Context, req *pbpod.GetPodRegionR | |||
| } | |||
| for _, eksRegion := range resp.Response.Regions { | |||
| regionId, _ := tenanter.GetTencentRegionId(*eksRegion.RegionName) | |||
| regionPod := &pbtenant.Region{ | |||
| Id: int32(*eksRegion.RegionId), | |||
| Id: regionId, | |||
| Name: *eksRegion.RegionName, | |||
| } | |||
| regions = append(regions, regionPod) | |||
| @@ -131,7 +132,7 @@ func (eks TencentEks) CreatePod(ctx context.Context, req *pbpod.CreatePodReq) (* | |||
| func (eks *TencentEks) DeletePod(ctx context.Context, req *pbpod.DeletePodReq) (*pbpod.DeletePodResp, error) { | |||
| request := tencenteks.NewDeleteEKSContainerInstancesRequest() | |||
| request.EksCiIds = make([]*string, 1) | |||
| request.EksCiIds[0] = &req.PodId | |||
| request.EksCiIds[0] = &req.PcmId | |||
| resp, err := eks.cli.DeleteEKSContainerInstances(request) | |||
| isFinished := true | |||
| @@ -153,7 +154,7 @@ func (eks *TencentEks) DeletePod(ctx context.Context, req *pbpod.DeletePodReq) ( | |||
| func (eks *TencentEks) UpdatePod(ctx context.Context, req *pbpod.UpdatePodReq) (*pbpod.UpdatePodResp, error) { | |||
| //创建更新pod请求 | |||
| request := tencenteks.NewUpdateEKSContainerInstanceRequest() | |||
| request.EksCiId = &req.PodId | |||
| request.EksCiId = &req.PcmId | |||
| request.RestartPolicy = &req.RestartPolicy | |||
| request.Name = &req.PodName | |||
| cpu, err := strconv.ParseFloat(req.CpuPod, 64) | |||
| @@ -192,6 +193,7 @@ func (eks TencentEks) ListPodDetail(ctx context.Context, req *pbpod.ListPodDetai | |||
| ekspods[k] = &pbpod.PodInstance{ | |||
| Provider: pbtenant.CloudProvider_tencent, | |||
| AccountName: eks.tenanter.AccountName(), | |||
| PcmId: *v.EksCiId, | |||
| PodId: *v.EksCiId, | |||
| PodName: *v.EksCiName, | |||
| RegionId: eks.region.GetId(), | |||
| @@ -212,7 +214,7 @@ func (eks TencentEks) ListPodDetail(ctx context.Context, req *pbpod.ListPodDetai | |||
| isFinished = true | |||
| } | |||
| glog.Infof("--------------------K8S Pod Instance deleted--------------------") | |||
| glog.Infof("--------------------K8S Pod Instance listed--------------------") | |||
| return &pbpod.ListPodDetailResp{ | |||
| Pods: ekspods, | |||
| @@ -4,12 +4,12 @@ import ( | |||
| "context" | |||
| "sync" | |||
| "github.com/JCCE-nudt/PCM/adaptor/vm_adaptor/service/ecser" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/golang/glog" | |||
| "github.com/pkg/errors" | |||
| "gitlink.org.cn/JCCE/PCM/adaptor/vm_adaptor/service/ecser" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| //CreateMultipleEcs 创建多云ECS | |||
| @@ -2,8 +2,8 @@ package ecs | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "testing" | |||
| ) | |||
| @@ -1,8 +1,8 @@ | |||
| package ecs | |||
| import ( | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "os" | |||
| "testing" | |||
| ) | |||
| @@ -4,6 +4,9 @@ import ( | |||
| "context" | |||
| "sync" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| openapi "github.com/alibabacloud-go/darabonba-openapi/client" | |||
| string_ "github.com/alibabacloud-go/darabonba-string/client" | |||
| aliecs "github.com/alibabacloud-go/ecs-20140526/v2/client" | |||
| @@ -11,9 +14,6 @@ import ( | |||
| "github.com/alibabacloud-go/tea/tea" | |||
| "github.com/golang/glog" | |||
| "github.com/pkg/errors" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| var aliClientMutex sync.Mutex | |||
| @@ -10,10 +10,10 @@ package ecser | |||
| // awsec2 "github.com/aws/aws-sdk-go-v2/service/ec2" | |||
| // "github.com/pkg/errors" | |||
| // | |||
| // "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| // "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| // | |||
| // "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| // "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| // "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| // "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| //) | |||
| // | |||
| //type AwsEcs struct { | |||
| @@ -3,9 +3,9 @@ package ecser | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/golang/glog" | |||
| "github.com/pkg/errors" | |||
| @@ -2,9 +2,9 @@ package ecser | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "testing" | |||
| ) | |||
| @@ -3,14 +3,14 @@ package ecser | |||
| import ( | |||
| "context" | |||
| "fmt" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/harvester/harvester/pkg/apis/harvesterhci.io/v1beta1" | |||
| harvClient "github.com/harvester/harvester/pkg/generated/clientset/versioned" | |||
| "github.com/longhorn/longhorn-manager/util" | |||
| "github.com/pkg/errors" | |||
| "github.com/sirupsen/logrus" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| v1 "k8s.io/api/core/v1" | |||
| "k8s.io/apimachinery/pkg/api/resource" | |||
| k8smetav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |||
| @@ -4,6 +4,9 @@ import ( | |||
| "context" | |||
| "strconv" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| string_ "github.com/alibabacloud-go/darabonba-string/client" | |||
| util "github.com/alibabacloud-go/tea-utils/service" | |||
| "github.com/alibabacloud-go/tea/tea" | |||
| @@ -16,9 +19,6 @@ import ( | |||
| iammodel "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model" | |||
| iamregion "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/region" | |||
| "github.com/pkg/errors" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| type HuaweiEcs struct { | |||
| @@ -1,8 +1,8 @@ | |||
| package ecser | |||
| import ( | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "os" | |||
| "testing" | |||
| ) | |||
| @@ -4,6 +4,9 @@ import ( | |||
| "context" | |||
| "strconv" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| string_ "github.com/alibabacloud-go/darabonba-string/client" | |||
| util "github.com/alibabacloud-go/tea-utils/service" | |||
| "github.com/alibabacloud-go/tea/tea" | |||
| @@ -12,9 +15,6 @@ import ( | |||
| "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" | |||
| "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" | |||
| cvm "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm/v20170312" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| type TencentCvm struct { | |||
| @@ -2,9 +2,9 @@ package server | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/demo" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/demo" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| ) | |||
| type Server struct { | |||
| @@ -3,8 +3,8 @@ package server | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/adaptor/vm_adaptor/server/ecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/adaptor/vm_adaptor/server/ecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/golang/glog" | |||
| "google.golang.org/grpc/codes" | |||
| @@ -3,8 +3,8 @@ package server | |||
| import ( | |||
| "context" | |||
| "gitlink.org.cn/JCCE/PCM/adaptor/pod_adaptor/server/pod" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/adaptor/pod_adaptor/server/pod" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "github.com/golang/glog" | |||
| "google.golang.org/grpc/codes" | |||
| @@ -1,7 +1,7 @@ | |||
| package tenanter | |||
| import ( | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "os" | |||
| "testing" | |||
| ) | |||
| @@ -3,7 +3,7 @@ package tenanter | |||
| import ( | |||
| "strings" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/pkg/errors" | |||
| ) | |||
| @@ -117,6 +117,16 @@ func GetTencentRegionName(regionId int32) (string, error) { | |||
| return region[3:], nil | |||
| } | |||
| // GetTencentRegionId prefix tc_ | |||
| func GetTencentRegionId(regionName string) (int32, error) { | |||
| regionName = "tc_" + strings.ReplaceAll(regionName, "-", "_") | |||
| id, ok := pbtenant.TencentRegionId_value[regionName] | |||
| if !ok || regionName == "" { | |||
| return 0, errors.WithMessagef(ErrNoExistAliRegionId, "input region id is %s", regionName) | |||
| } | |||
| return id, nil | |||
| } | |||
| // GetHuaweiRegionName prefix huawei | |||
| func GetHuaweiRegionName(regionId int32) (string, error) { | |||
| name, ok := pbtenant.HuaweiRegionId_name[regionId] | |||
| @@ -3,7 +3,7 @@ package tenanter | |||
| import ( | |||
| "testing" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| ) | |||
| func TestGetAllRegionIds(t *testing.T) { | |||
| @@ -2,7 +2,7 @@ package tenanter | |||
| import ( | |||
| "encoding/json" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| "io/ioutil" | |||
| "os" | |||
| "sync" | |||
| @@ -1,4 +1,4 @@ | |||
| module gitlink.org.cn/JCCE/PCM | |||
| module github.com/JCCE-nudt/PCM | |||
| go 1.17 | |||
| @@ -1,7 +1,7 @@ | |||
| syntax = "proto3"; | |||
| package demo; | |||
| option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/gen/idl/demo"; | |||
| option go_package = "github.com/JCCE-nudt/PCM/lan_trans/gen/idl/demo"; | |||
| import "google/api/annotations.proto"; | |||
| import "protoc-gen-openapiv2/options/annotations.proto"; | |||
| @@ -1,7 +1,7 @@ | |||
| syntax = "proto3"; | |||
| package pbecs; | |||
| option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"; | |||
| option go_package = "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs"; | |||
| import "idl/pbtenant/tenant.proto"; | |||
| import "google/api/annotations.proto"; | |||
| @@ -1,7 +1,7 @@ | |||
| syntax = "proto3"; | |||
| package pbpod; | |||
| option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"; | |||
| option go_package = "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod"; | |||
| import "idl/pbtenant/tenant.proto"; | |||
| import "google/api/annotations.proto"; | |||
| @@ -11,32 +11,34 @@ message PodInstance { | |||
| pbtenant.CloudProvider provider = 1; | |||
| // 账号名称 | |||
| string account_name = 2; | |||
| //pcm id | |||
| string pcm_id = 3; | |||
| // 实例id | |||
| string pod_id = 3; | |||
| string pod_id = 4; | |||
| // 实例名称 | |||
| string pod_name = 4; | |||
| string pod_name = 5; | |||
| // 地域ID | |||
| int32 region_id = 5; | |||
| int32 region_id = 6; | |||
| // 地域Name | |||
| string region_name = 6; | |||
| string region_name = 7; | |||
| // 镜像 | |||
| string container_image = 7; | |||
| string container_image = 8; | |||
| // 容器名称 | |||
| string container_name = 8; | |||
| string container_name = 9; | |||
| // vcpu数 | |||
| string cpu_pod = 9; | |||
| string cpu_pod = 10; | |||
| // 内存MB | |||
| string memory_pod = 10; | |||
| string memory_pod = 11; | |||
| //安全组ID 对应腾讯 SecurityGroupIds(腾讯必需) | |||
| string security_group_id = 11; | |||
| string security_group_id = 12; | |||
| //子网ID 对应腾讯 SubnetId(腾讯必需) | |||
| string subnet_id = 12; | |||
| string subnet_id = 13; | |||
| //VPC ID 对应腾讯 VpcId(腾讯必需) | |||
| string vpc_id = 13; | |||
| string vpc_id = 14; | |||
| //名空间 | |||
| string namespace = 14; | |||
| string namespace = 15; | |||
| // 实例状态 | |||
| string status = 15; | |||
| string status = 16; | |||
| } | |||
| @@ -97,18 +99,20 @@ message DeletePodReq { | |||
| pbtenant.CloudProvider provider = 1; | |||
| // 账号名称 | |||
| string account_name = 2; | |||
| // 实例ID | |||
| string pod_id = 3; | |||
| // 实例名称 | |||
| string pod_name = 4; | |||
| // pcm id | |||
| string pcm_id = 3; | |||
| // podId | |||
| string pod_id = 4; | |||
| // podName | |||
| string pod_name = 5; | |||
| //namespace | |||
| string namespace = 5; | |||
| string namespace = 6; | |||
| // 地域,数据中心 | |||
| int32 region_id = 6; | |||
| int32 region_id = 7; | |||
| } | |||
| message DeletePodResp { | |||
| // 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询 | |||
| // 删除是否完成 | |||
| bool finished = 1; | |||
| // 请求id,出现问题后提供给云厂商,排查问题 | |||
| string request_id = 2; | |||
| @@ -123,30 +127,32 @@ message UpdatePodReq { | |||
| pbtenant.CloudProvider provider = 1; | |||
| // 账号名称 | |||
| string account_name = 2; | |||
| // 实例ID | |||
| string pod_id = 3; | |||
| // 实例名称 | |||
| string pod_name = 4; | |||
| // pcm ID | |||
| string pcm_id = 3; | |||
| // podId | |||
| string pod_id = 4; | |||
| // podName | |||
| string pod_name = 5; | |||
| //namespace | |||
| string namespace = 5; | |||
| string namespace = 6; | |||
| // 地域,数据中心 | |||
| int32 region_id = 6; | |||
| int32 region_id = 7; | |||
| // 镜像 | |||
| string container_image = 7; | |||
| string container_image = 8; | |||
| // 容器名称 | |||
| string container_name = 8; | |||
| string container_name = 9; | |||
| // v cpu数 | |||
| string cpu_pod = 9; | |||
| string cpu_pod = 10; | |||
| // 内存MB | |||
| string memory_pod = 10; | |||
| string memory_pod = 11; | |||
| // 重启策略 | |||
| string restart_policy = 11; | |||
| string restart_policy = 12; | |||
| // labels | |||
| string labels = 12; | |||
| string labels = 13; | |||
| } | |||
| message UpdatePodResp { | |||
| // 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询 | |||
| // 更新是否完成 | |||
| bool finished = 1; | |||
| // 请求id,出现问题后提供给云厂商,排查问题 | |||
| string request_id = 2; | |||
| @@ -165,6 +171,7 @@ message ListPodDetailReq { | |||
| int32 region_id = 3; | |||
| // 区域名称,各云厂商自定义的region name | |||
| int32 region_name = 4; | |||
| // podID | |||
| int32 pod_id = 5; | |||
| // 分页相关参数,页码 | |||
| @@ -1,7 +1,7 @@ | |||
| syntax = "proto3"; | |||
| package pbtenant; | |||
| option go_package = "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant"; | |||
| option go_package = "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant"; | |||
| import "google/api/annotations.proto"; | |||
| import "protoc-gen-openapiv2/options/annotations.proto"; | |||
| @@ -173,7 +173,7 @@ service TenantService { | |||
| option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = { | |||
| description : "所有云租户的认证服务" | |||
| external_docs : { | |||
| url : "https://gitlink.org.cn/JCCE/PCM" | |||
| url : "https://github.com/JCCE-nudt/PCM" | |||
| description: "Find out more about PCM" | |||
| } | |||
| }; | |||
| @@ -137,11 +137,11 @@ var file_idl_demo_demo_proto_rawDesc = []byte{ | |||
| 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x65, 0x63, 0x6f, | |||
| 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x67, 0x61, 0x74, 0x65, | |||
| 0x77, 0x61, 0x79, 0x58, 0x01, 0x62, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x0a, 0x2f, | |||
| 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x6d, 0x6f, 0x3a, 0x01, 0x2a, 0x42, 0x30, 0x5a, 0x2e, | |||
| 0x67, 0x69, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x63, 0x6e, 0x2f, 0x4a, | |||
| 0x43, 0x43, 0x45, 0x2f, 0x50, 0x43, 0x4d, 0x2f, 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, | |||
| 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x69, 0x64, 0x6c, 0x2f, 0x64, 0x65, 0x6d, 0x6f, 0x62, 0x06, | |||
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x6d, 0x6f, 0x3a, 0x01, 0x2a, 0x42, 0x31, 0x5a, 0x2f, | |||
| 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2d, | |||
| 0x6e, 0x75, 0x64, 0x74, 0x2f, 0x50, 0x43, 0x4d, 0x2f, 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x72, 0x61, | |||
| 0x6e, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x69, 0x64, 0x6c, 0x2f, 0x64, 0x65, 0x6d, 0x6f, 0x62, | |||
| 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| } | |||
| var ( | |||
| @@ -77,12 +77,13 @@ func RegisterDemoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/demo.DemoService/Echo") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/demo.DemoService/Echo", runtime.WithHTTPPathPattern("/apis/demo")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_DemoService_Echo_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_DemoService_Echo_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -139,12 +140,13 @@ func RegisterDemoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/demo.DemoService/Echo") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/demo.DemoService/Echo", runtime.WithHTTPPathPattern("/apis/demo")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_DemoService_Echo_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_DemoService_Echo_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -7,7 +7,7 @@ | |||
| package pbecs | |||
| import ( | |||
| pbtenant "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| pbtenant "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| _ "google.golang.org/genproto/googleapis/api/annotations" | |||
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" | |||
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" | |||
| @@ -2370,10 +2370,10 @@ var file_idl_pbecs_ecs_proto_rawDesc = []byte{ | |||
| 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x62, 0x65, 0x63, 0x73, 0x2e, | |||
| 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, | |||
| 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x65, 0x63, 0x73, 0x2f, 0x61, 0x63, | |||
| 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x6c, 0x69, | |||
| 0x6e, 0x6b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x63, 0x6e, 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2f, 0x50, | |||
| 0x43, 0x4d, 0x2f, 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x2f, 0x69, 0x64, 0x6c, | |||
| 0x2f, 0x70, 0x62, 0x65, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, | |||
| 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2d, 0x6e, 0x75, 0x64, 0x74, 0x2f, | |||
| 0x50, 0x43, 0x4d, 0x2f, 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x2f, 0x69, 0x64, | |||
| 0x6c, 0x2f, 0x70, 0x62, 0x65, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| } | |||
| var ( | |||
| @@ -303,12 +303,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/CreateMultipleEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/CreateMultipleEcs", runtime.WithHTTPPathPattern("/apis/ecs/createMultiple")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_CreateMultipleEcs_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_CreateMultipleEcs_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -326,12 +327,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/CreateEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/CreateEcs", runtime.WithHTTPPathPattern("/apis/ecs/create")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_CreateEcs_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_CreateEcs_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -349,12 +351,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/DeleteEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/DeleteEcs", runtime.WithHTTPPathPattern("/apis/ecs/delete")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_DeleteEcs_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_DeleteEcs_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -372,12 +375,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/UpdateEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/UpdateEcs", runtime.WithHTTPPathPattern("/apis/ecs/update")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_UpdateEcs_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_UpdateEcs_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -395,12 +399,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ListEcsDetail") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ListEcsDetail", runtime.WithHTTPPathPattern("/apis/ecs/detail")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_ListEcsDetail_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_ListEcsDetail_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -418,12 +423,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ListEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ListEcs", runtime.WithHTTPPathPattern("/apis/ecs")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_ListEcs_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_ListEcs_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -441,12 +447,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ListEcsAll") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ListEcsAll", runtime.WithHTTPPathPattern("/apis/ecs/all")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_ListEcsAll_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_ListEcsAll_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -464,12 +471,13 @@ func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ActionEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbecs.EcsService/ActionEcs", runtime.WithHTTPPathPattern("/apis/ecs/action")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_EcsService_ActionEcs_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_EcsService_ActionEcs_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -526,12 +534,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/CreateMultipleEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/CreateMultipleEcs", runtime.WithHTTPPathPattern("/apis/ecs/createMultiple")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_CreateMultipleEcs_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_CreateMultipleEcs_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -546,12 +555,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/CreateEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/CreateEcs", runtime.WithHTTPPathPattern("/apis/ecs/create")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_CreateEcs_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_CreateEcs_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -566,12 +576,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/DeleteEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/DeleteEcs", runtime.WithHTTPPathPattern("/apis/ecs/delete")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_DeleteEcs_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_DeleteEcs_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -586,12 +597,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/UpdateEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/UpdateEcs", runtime.WithHTTPPathPattern("/apis/ecs/update")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_UpdateEcs_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_UpdateEcs_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -606,12 +618,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ListEcsDetail") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ListEcsDetail", runtime.WithHTTPPathPattern("/apis/ecs/detail")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_ListEcsDetail_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_ListEcsDetail_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -626,12 +639,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ListEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ListEcs", runtime.WithHTTPPathPattern("/apis/ecs")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_ListEcs_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_ListEcs_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -646,12 +660,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ListEcsAll") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ListEcsAll", runtime.WithHTTPPathPattern("/apis/ecs/all")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_ListEcsAll_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_ListEcsAll_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -666,12 +681,13 @@ func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ActionEcs") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbecs.EcsService/ActionEcs", runtime.WithHTTPPathPattern("/apis/ecs/action")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_EcsService_ActionEcs_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_EcsService_ActionEcs_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -7,7 +7,7 @@ | |||
| package pbpod | |||
| import ( | |||
| pbtenant "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbtenant" | |||
| pbtenant "github.com/JCCE-nudt/PCM/lan_trans/idl/pbtenant" | |||
| _ "google.golang.org/genproto/googleapis/api/annotations" | |||
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" | |||
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" | |||
| @@ -31,32 +31,34 @@ type PodInstance struct { | |||
| Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"` | |||
| // 账号名称 | |||
| AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` | |||
| //pcm id | |||
| PcmId string `protobuf:"bytes,3,opt,name=pcm_id,json=pcmId,proto3" json:"pcm_id,omitempty"` | |||
| // 实例id | |||
| PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` | |||
| PodId string `protobuf:"bytes,4,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` | |||
| // 实例名称 | |||
| PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` | |||
| PodName string `protobuf:"bytes,5,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` | |||
| // 地域ID | |||
| RegionId int32 `protobuf:"varint,5,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` | |||
| RegionId int32 `protobuf:"varint,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` | |||
| // 地域Name | |||
| RegionName string `protobuf:"bytes,6,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"` | |||
| RegionName string `protobuf:"bytes,7,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"` | |||
| // 镜像 | |||
| ContainerImage string `protobuf:"bytes,7,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"` | |||
| ContainerImage string `protobuf:"bytes,8,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"` | |||
| // 容器名称 | |||
| ContainerName string `protobuf:"bytes,8,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` | |||
| ContainerName string `protobuf:"bytes,9,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` | |||
| // vcpu数 | |||
| CpuPod string `protobuf:"bytes,9,opt,name=cpu_pod,json=cpuPod,proto3" json:"cpu_pod,omitempty"` | |||
| CpuPod string `protobuf:"bytes,10,opt,name=cpu_pod,json=cpuPod,proto3" json:"cpu_pod,omitempty"` | |||
| // 内存MB | |||
| MemoryPod string `protobuf:"bytes,10,opt,name=memory_pod,json=memoryPod,proto3" json:"memory_pod,omitempty"` | |||
| MemoryPod string `protobuf:"bytes,11,opt,name=memory_pod,json=memoryPod,proto3" json:"memory_pod,omitempty"` | |||
| //安全组ID 对应腾讯 SecurityGroupIds(腾讯必需) | |||
| SecurityGroupId string `protobuf:"bytes,11,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` | |||
| SecurityGroupId string `protobuf:"bytes,12,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"` | |||
| //子网ID 对应腾讯 SubnetId(腾讯必需) | |||
| SubnetId string `protobuf:"bytes,12,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` | |||
| SubnetId string `protobuf:"bytes,13,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` | |||
| //VPC ID 对应腾讯 VpcId(腾讯必需) | |||
| VpcId string `protobuf:"bytes,13,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"` | |||
| VpcId string `protobuf:"bytes,14,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"` | |||
| //名空间 | |||
| Namespace string `protobuf:"bytes,14,opt,name=namespace,proto3" json:"namespace,omitempty"` | |||
| Namespace string `protobuf:"bytes,15,opt,name=namespace,proto3" json:"namespace,omitempty"` | |||
| // 实例状态 | |||
| Status string `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"` | |||
| Status string `protobuf:"bytes,16,opt,name=status,proto3" json:"status,omitempty"` | |||
| } | |||
| func (x *PodInstance) Reset() { | |||
| @@ -105,6 +107,13 @@ func (x *PodInstance) GetAccountName() string { | |||
| return "" | |||
| } | |||
| func (x *PodInstance) GetPcmId() string { | |||
| if x != nil { | |||
| return x.PcmId | |||
| } | |||
| return "" | |||
| } | |||
| func (x *PodInstance) GetPodId() string { | |||
| if x != nil { | |||
| return x.PodId | |||
| @@ -541,14 +550,16 @@ type DeletePodReq struct { | |||
| Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"` | |||
| // 账号名称 | |||
| AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` | |||
| // 实例ID | |||
| PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` | |||
| // 实例名称 | |||
| PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` | |||
| // pcm id | |||
| PcmId string `protobuf:"bytes,3,opt,name=pcm_id,json=pcmId,proto3" json:"pcm_id,omitempty"` | |||
| // podId | |||
| PodId string `protobuf:"bytes,4,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` | |||
| // podName | |||
| PodName string `protobuf:"bytes,5,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` | |||
| //namespace | |||
| Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` | |||
| Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"` | |||
| // 地域,数据中心 | |||
| RegionId int32 `protobuf:"varint,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` | |||
| RegionId int32 `protobuf:"varint,7,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` | |||
| } | |||
| func (x *DeletePodReq) Reset() { | |||
| @@ -597,6 +608,13 @@ func (x *DeletePodReq) GetAccountName() string { | |||
| return "" | |||
| } | |||
| func (x *DeletePodReq) GetPcmId() string { | |||
| if x != nil { | |||
| return x.PcmId | |||
| } | |||
| return "" | |||
| } | |||
| func (x *DeletePodReq) GetPodId() string { | |||
| if x != nil { | |||
| return x.PodId | |||
| @@ -630,7 +648,7 @@ type DeletePodResp struct { | |||
| sizeCache protoimpl.SizeCache | |||
| unknownFields protoimpl.UnknownFields | |||
| // 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询 | |||
| // 删除是否完成 | |||
| Finished bool `protobuf:"varint,1,opt,name=finished,proto3" json:"finished,omitempty"` | |||
| // 请求id,出现问题后提供给云厂商,排查问题 | |||
| RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` | |||
| @@ -709,26 +727,28 @@ type UpdatePodReq struct { | |||
| Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"` | |||
| // 账号名称 | |||
| AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` | |||
| // 实例ID | |||
| PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` | |||
| // 实例名称 | |||
| PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` | |||
| // pcm ID | |||
| PcmId string `protobuf:"bytes,3,opt,name=pcm_id,json=pcmId,proto3" json:"pcm_id,omitempty"` | |||
| // podId | |||
| PodId string `protobuf:"bytes,4,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` | |||
| // podName | |||
| PodName string `protobuf:"bytes,5,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` | |||
| //namespace | |||
| Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` | |||
| Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"` | |||
| // 地域,数据中心 | |||
| RegionId int32 `protobuf:"varint,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` | |||
| RegionId int32 `protobuf:"varint,7,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` | |||
| // 镜像 | |||
| ContainerImage string `protobuf:"bytes,7,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"` | |||
| ContainerImage string `protobuf:"bytes,8,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"` | |||
| // 容器名称 | |||
| ContainerName string `protobuf:"bytes,8,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` | |||
| ContainerName string `protobuf:"bytes,9,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` | |||
| // v cpu数 | |||
| CpuPod string `protobuf:"bytes,9,opt,name=cpu_pod,json=cpuPod,proto3" json:"cpu_pod,omitempty"` | |||
| CpuPod string `protobuf:"bytes,10,opt,name=cpu_pod,json=cpuPod,proto3" json:"cpu_pod,omitempty"` | |||
| // 内存MB | |||
| MemoryPod string `protobuf:"bytes,10,opt,name=memory_pod,json=memoryPod,proto3" json:"memory_pod,omitempty"` | |||
| MemoryPod string `protobuf:"bytes,11,opt,name=memory_pod,json=memoryPod,proto3" json:"memory_pod,omitempty"` | |||
| // 重启策略 | |||
| RestartPolicy string `protobuf:"bytes,11,opt,name=restart_policy,json=restartPolicy,proto3" json:"restart_policy,omitempty"` | |||
| RestartPolicy string `protobuf:"bytes,12,opt,name=restart_policy,json=restartPolicy,proto3" json:"restart_policy,omitempty"` | |||
| // labels | |||
| Labels string `protobuf:"bytes,12,opt,name=labels,proto3" json:"labels,omitempty"` | |||
| Labels string `protobuf:"bytes,13,opt,name=labels,proto3" json:"labels,omitempty"` | |||
| } | |||
| func (x *UpdatePodReq) Reset() { | |||
| @@ -777,6 +797,13 @@ func (x *UpdatePodReq) GetAccountName() string { | |||
| return "" | |||
| } | |||
| func (x *UpdatePodReq) GetPcmId() string { | |||
| if x != nil { | |||
| return x.PcmId | |||
| } | |||
| return "" | |||
| } | |||
| func (x *UpdatePodReq) GetPodId() string { | |||
| if x != nil { | |||
| return x.PodId | |||
| @@ -852,7 +879,7 @@ type UpdatePodResp struct { | |||
| sizeCache protoimpl.SizeCache | |||
| unknownFields protoimpl.UnknownFields | |||
| // 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询 | |||
| // 更新是否完成 | |||
| Finished bool `protobuf:"varint,1,opt,name=finished,proto3" json:"finished,omitempty"` | |||
| // 请求id,出现问题后提供给云厂商,排查问题 | |||
| RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` | |||
| @@ -1382,97 +1409,135 @@ var file_idl_pbpod_pod_proto_rawDesc = []byte{ | |||
| 0x6c, 0x2f, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x6e, 0x61, 0x6e, | |||
| 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, | |||
| 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, | |||
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf3, 0x03, 0x0a, 0x0b, 0x50, 0x6f, 0x64, 0x49, 0x6e, 0x73, | |||
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x04, 0x0a, 0x0b, 0x50, 0x6f, 0x64, 0x49, 0x6e, 0x73, | |||
| 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, | |||
| 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, | |||
| 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, | |||
| 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, | |||
| 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, | |||
| 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, | |||
| 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, | |||
| 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, | |||
| 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, | |||
| 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, | |||
| 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, | |||
| 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, | |||
| 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, | |||
| 0x06, 0x70, 0x63, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, | |||
| 0x63, 0x6d, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, | |||
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, | |||
| 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, | |||
| 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, | |||
| 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, | |||
| 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, | |||
| 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, | |||
| 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, | |||
| 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, | |||
| 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, | |||
| 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, | |||
| 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, | |||
| 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x70, 0x75, 0x5f, 0x70, 0x6f, 0x64, 0x18, | |||
| 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x70, 0x75, 0x50, 0x6f, 0x64, 0x12, 0x1d, 0x0a, | |||
| 0x0a, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, | |||
| 0x09, 0x52, 0x09, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x50, 0x6f, 0x64, 0x12, 0x2a, 0x0a, 0x11, | |||
| 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, | |||
| 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, | |||
| 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6e, | |||
| 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, | |||
| 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x70, 0x63, 0x5f, 0x69, 0x64, 0x18, | |||
| 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x70, 0x63, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, | |||
| 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, | |||
| 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, | |||
| 0x61, 0x74, 0x75, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, | |||
| 0x75, 0x73, 0x22, 0x48, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x73, | |||
| 0x52, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, | |||
| 0x52, 0x65, 0x71, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x70, 0x6f, | |||
| 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x52, 0x0c, | |||
| 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x22, 0x4b, 0x0a, 0x0e, | |||
| 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, | |||
| 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, | |||
| 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, | |||
| 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, | |||
| 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xbb, 0x03, 0x0a, 0x0c, 0x43, 0x72, | |||
| 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, | |||
| 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, | |||
| 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, | |||
| 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, | |||
| 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, | |||
| 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, | |||
| 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, | |||
| 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, | |||
| 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, | |||
| 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, | |||
| 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, | |||
| 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, | |||
| 0x6d, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, | |||
| 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, | |||
| 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, | |||
| 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, | |||
| 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x70, 0x75, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x08, 0x20, 0x01, | |||
| 0x28, 0x09, 0x52, 0x06, 0x63, 0x70, 0x75, 0x50, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, | |||
| 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, | |||
| 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x50, 0x6f, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x63, | |||
| 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x0a, | |||
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, | |||
| 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, | |||
| 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, | |||
| 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x70, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, | |||
| 0x28, 0x09, 0x52, 0x05, 0x76, 0x70, 0x63, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, | |||
| 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, | |||
| 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x7c, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, | |||
| 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, | |||
| 0x73, 0x68, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, | |||
| 0x73, 0x68, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, | |||
| 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, | |||
| 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, | |||
| 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, | |||
| 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, | |||
| 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xea, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, | |||
| 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, | |||
| 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, | |||
| 0x61, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, | |||
| 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, | |||
| 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, | |||
| 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, | |||
| 0x0a, 0x06, 0x70, 0x63, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, | |||
| 0x70, 0x63, 0x6d, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, | |||
| 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, | |||
| 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, | |||
| 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, | |||
| 0x70, 0x61, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, | |||
| 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, | |||
| 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, | |||
| 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, | |||
| 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, | |||
| 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, | |||
| 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, | |||
| 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x15, | |||
| 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, | |||
| 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, | |||
| 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, | |||
| 0x22, 0xb1, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, | |||
| 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, | |||
| 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x43, | |||
| 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, | |||
| 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, | |||
| 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, | |||
| 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x63, 0x6d, | |||
| 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x63, 0x6d, 0x49, 0x64, | |||
| 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, | |||
| 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, | |||
| 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, | |||
| 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, | |||
| 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, | |||
| 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, | |||
| 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, | |||
| 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, | |||
| 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, | |||
| 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, | |||
| 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, | |||
| 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, | |||
| 0x6e, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, | |||
| 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, | |||
| 0x07, 0x63, 0x70, 0x75, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, | |||
| 0x07, 0x63, 0x70, 0x75, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, | |||
| 0x63, 0x70, 0x75, 0x50, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, | |||
| 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x6d, 0x6f, | |||
| 0x72, 0x79, 0x50, 0x6f, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, | |||
| 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, | |||
| 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, | |||
| 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0c, | |||
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12, 0x15, | |||
| 0x0a, 0x06, 0x76, 0x70, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, | |||
| 0x76, 0x70, 0x63, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, | |||
| 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, | |||
| 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, | |||
| 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x48, 0x0a, 0x0d, 0x43, | |||
| 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x0c, | |||
| 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x18, 0x01, 0x20, 0x03, | |||
| 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, | |||
| 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, | |||
| 0x6f, 0x64, 0x52, 0x65, 0x71, 0x22, 0x4b, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, | |||
| 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, | |||
| 0x68, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, | |||
| 0x68, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, | |||
| 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, | |||
| 0x49, 0x64, 0x22, 0xbb, 0x03, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, | |||
| 0x52, 0x65, 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, | |||
| 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, | |||
| 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, | |||
| 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, | |||
| 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, | |||
| 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, | |||
| 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, | |||
| 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, | |||
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, | |||
| 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, | |||
| 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, | |||
| 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, | |||
| 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, | |||
| 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, | |||
| 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, | |||
| 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x70, | |||
| 0x75, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x70, 0x75, | |||
| 0x50, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x70, 0x6f, | |||
| 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x50, | |||
| 0x6f, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, | |||
| 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, | |||
| 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1b, | |||
| 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, | |||
| 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x76, | |||
| 0x70, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x70, 0x63, | |||
| 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, | |||
| 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, | |||
| 0x22, 0x7c, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, | |||
| 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x01, 0x20, | |||
| 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x1d, 0x0a, | |||
| 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, | |||
| 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, | |||
| 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, | |||
| 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, | |||
| 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xd3, | |||
| 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x12, | |||
| 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, | |||
| 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, | |||
| 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, | |||
| 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, | |||
| 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, | |||
| 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, | |||
| 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, | |||
| 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, | |||
| 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, | |||
| 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, | |||
| 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, | |||
| 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, | |||
| 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, | |||
| 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x6d, 0x6f, | |||
| 0x72, 0x79, 0x50, 0x6f, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, | |||
| 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, | |||
| 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, | |||
| 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, | |||
| 0x62, 0x65, 0x6c, 0x73, 0x22, 0x7c, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, | |||
| 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, | |||
| 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, | |||
| 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, | |||
| @@ -1480,134 +1545,100 @@ var file_idl_pbpod_pod_proto_rawDesc = []byte{ | |||
| 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, | |||
| 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, | |||
| 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, | |||
| 0x6d, 0x65, 0x22, 0x9a, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, | |||
| 0x6d, 0x65, 0x22, 0xba, 0x02, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, | |||
| 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, | |||
| 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, | |||
| 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, | |||
| 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, | |||
| 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, | |||
| 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, | |||
| 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, | |||
| 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, | |||
| 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, | |||
| 0x05, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, | |||
| 0x06, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, | |||
| 0x6f, 0x64, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, | |||
| 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, | |||
| 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, | |||
| 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, | |||
| 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, | |||
| 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, | |||
| 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x09, | |||
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, | |||
| 0xd3, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, | |||
| 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, | |||
| 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x50, 0x6f, 0x64, 0x49, | |||
| 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x12, 0x1a, 0x0a, | |||
| 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, | |||
| 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, | |||
| 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, | |||
| 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, | |||
| 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, | |||
| 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, | |||
| 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, | |||
| 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, | |||
| 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, | |||
| 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, | |||
| 0x52, 0x65, 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, | |||
| 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, | |||
| 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, | |||
| 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, | |||
| 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, | |||
| 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, | |||
| 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, | |||
| 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, | |||
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, | |||
| 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, | |||
| 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, | |||
| 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, | |||
| 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, | |||
| 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, | |||
| 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, | |||
| 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x6e, | |||
| 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, | |||
| 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x70, 0x75, 0x5f, | |||
| 0x70, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x70, 0x75, 0x50, 0x6f, | |||
| 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x64, 0x18, | |||
| 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x50, 0x6f, 0x64, | |||
| 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, | |||
| 0x63, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, | |||
| 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, | |||
| 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, | |||
| 0x7c, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, | |||
| 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, | |||
| 0x28, 0x08, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, | |||
| 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, | |||
| 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x70, | |||
| 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x6f, 0x64, | |||
| 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, | |||
| 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xba, 0x02, | |||
| 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, | |||
| 0x65, 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, | |||
| 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, | |||
| 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, | |||
| 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, | |||
| 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, | |||
| 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, | |||
| 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, | |||
| 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, | |||
| 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x65, | |||
| 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x6f, 0x64, 0x5f, | |||
| 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x6f, 0x64, 0x49, 0x64, 0x12, | |||
| 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, | |||
| 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, | |||
| 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, | |||
| 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, | |||
| 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, | |||
| 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, | |||
| 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, | |||
| 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xd3, 0x01, 0x0a, 0x11, 0x4c, | |||
| 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, | |||
| 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, | |||
| 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x50, 0x6f, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, | |||
| 0x63, 0x65, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x69, | |||
| 0x73, 0x68, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x69, | |||
| 0x73, 0x68, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, | |||
| 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x4e, | |||
| 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, | |||
| 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, | |||
| 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, | |||
| 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, | |||
| 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, | |||
| 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, | |||
| 0x22, 0x5f, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x12, 0x33, | |||
| 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, | |||
| 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x75, | |||
| 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, | |||
| 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, | |||
| 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, | |||
| 0x65, 0x22, 0x35, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, | |||
| 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, | |||
| 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x50, 0x6f, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, | |||
| 0x63, 0x65, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x22, 0x46, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, | |||
| 0x6f, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x33, 0x0a, 0x08, 0x70, | |||
| 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, | |||
| 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x72, | |||
| 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, | |||
| 0x22, 0x3e, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, | |||
| 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, | |||
| 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, | |||
| 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, | |||
| 0x22, 0x0f, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, | |||
| 0x71, 0x32, 0xda, 0x04, 0x0a, 0x0a, 0x50, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, | |||
| 0x12, 0x5b, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x73, 0x12, 0x14, | |||
| 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, | |||
| 0x73, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, | |||
| 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x20, 0x82, 0xd3, 0xe4, | |||
| 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, 0x63, | |||
| 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x3a, 0x01, 0x2a, 0x12, 0x53, 0x0a, | |||
| 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x70, | |||
| 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x1a, | |||
| 0x14, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, | |||
| 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, | |||
| 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, | |||
| 0x01, 0x2a, 0x12, 0x53, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x12, | |||
| 0x13, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, | |||
| 0x64, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x44, 0x65, 0x6c, | |||
| 0x65, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, | |||
| 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, 0x64, 0x65, | |||
| 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x53, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, | |||
| 0x65, 0x50, 0x6f, 0x64, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x55, 0x70, 0x64, | |||
| 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x70, 0x6f, | |||
| 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, | |||
| 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x1a, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, | |||
| 0x6f, 0x64, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x5c, 0x0a, 0x0d, | |||
| 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x17, 0x2e, | |||
| 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, | |||
| 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, | |||
| 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, | |||
| 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, | |||
| 0x70, 0x6f, 0x64, 0x2f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x43, 0x0a, 0x07, 0x4c, 0x69, | |||
| 0x73, 0x74, 0x50, 0x6f, 0x64, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, | |||
| 0x73, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, | |||
| 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x11, 0x82, 0xd3, | |||
| 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x12, | |||
| 0x4d, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x41, 0x6c, 0x6c, 0x12, 0x14, 0x2e, | |||
| 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x41, 0x6c, 0x6c, | |||
| 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, | |||
| 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, | |||
| 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, 0x61, 0x6c, 0x6c, 0x42, 0x2d, | |||
| 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x63, 0x6e, | |||
| 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2f, 0x50, 0x43, 0x4d, 0x2f, 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x72, | |||
| 0x61, 0x6e, 0x73, 0x2f, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x62, 0x06, 0x70, | |||
| 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, | |||
| 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, | |||
| 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x35, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, | |||
| 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, | |||
| 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x50, 0x6f, 0x64, 0x49, | |||
| 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x22, 0x46, 0x0a, | |||
| 0x0f, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, | |||
| 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, | |||
| 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x43, 0x6c, | |||
| 0x6f, 0x75, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, | |||
| 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x3e, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x64, 0x52, | |||
| 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x67, | |||
| 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x74, | |||
| 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, | |||
| 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x0f, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, | |||
| 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x32, 0xda, 0x04, 0x0a, 0x0a, 0x50, 0x6f, 0x64, 0x53, 0x65, | |||
| 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, | |||
| 0x6f, 0x64, 0x73, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, | |||
| 0x74, 0x65, 0x50, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x70, 0x6f, | |||
| 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, | |||
| 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, | |||
| 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x3a, | |||
| 0x01, 0x2a, 0x12, 0x53, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x12, | |||
| 0x13, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, | |||
| 0x64, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x72, 0x65, | |||
| 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, | |||
| 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x72, | |||
| 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x53, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, | |||
| 0x65, 0x50, 0x6f, 0x64, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x44, 0x65, 0x6c, | |||
| 0x65, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x70, 0x6f, | |||
| 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, | |||
| 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, | |||
| 0x6f, 0x64, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x53, 0x0a, 0x09, | |||
| 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x70, 0x6f, | |||
| 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x14, | |||
| 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x64, | |||
| 0x52, 0x65, 0x73, 0x70, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x1a, 0x10, 0x2f, 0x61, | |||
| 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, | |||
| 0x2a, 0x12, 0x5c, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, | |||
| 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, | |||
| 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 0x62, | |||
| 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, | |||
| 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, | |||
| 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, | |||
| 0x43, 0x0a, 0x07, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x70, | |||
| 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, | |||
| 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, | |||
| 0x70, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x61, 0x70, 0x69, 0x73, | |||
| 0x2f, 0x70, 0x6f, 0x64, 0x12, 0x4d, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x41, | |||
| 0x6c, 0x6c, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, | |||
| 0x6f, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x62, 0x70, 0x6f, 0x64, | |||
| 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x15, 0x82, 0xd3, | |||
| 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x6f, 0x64, 0x2f, | |||
| 0x61, 0x6c, 0x6c, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, | |||
| 0x6d, 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2d, 0x6e, 0x75, 0x64, 0x74, 0x2f, 0x50, 0x43, 0x4d, 0x2f, | |||
| 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x2f, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x62, | |||
| 0x70, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| } | |||
| var ( | |||
| @@ -269,12 +269,13 @@ func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/CreatePods") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/CreatePods", runtime.WithHTTPPathPattern("/apis/pod/createMulti")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_PodService_CreatePods_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_PodService_CreatePods_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -292,12 +293,13 @@ func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/CreatePod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/CreatePod", runtime.WithHTTPPathPattern("/apis/pod/create")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_PodService_CreatePod_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_PodService_CreatePod_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -315,12 +317,13 @@ func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/DeletePod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/DeletePod", runtime.WithHTTPPathPattern("/apis/pod/delete")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_PodService_DeletePod_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_PodService_DeletePod_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -338,12 +341,13 @@ func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/UpdatePod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/UpdatePod", runtime.WithHTTPPathPattern("/apis/pod/update")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_PodService_UpdatePod_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_PodService_UpdatePod_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -361,12 +365,13 @@ func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/ListPodDetail") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/ListPodDetail", runtime.WithHTTPPathPattern("/apis/pod/detail")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_PodService_ListPodDetail_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_PodService_ListPodDetail_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -384,12 +389,13 @@ func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/ListPod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/ListPod", runtime.WithHTTPPathPattern("/apis/pod")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_PodService_ListPod_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_PodService_ListPod_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -407,12 +413,13 @@ func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, | |||
| var stream runtime.ServerTransportStream | |||
| ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/ListPodAll") | |||
| var err error | |||
| ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/pbpod.PodService/ListPodAll", runtime.WithHTTPPathPattern("/apis/pod/all")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := local_request_PodService_ListPodAll_0(rctx, inboundMarshaler, server, req, pathParams) | |||
| resp, md, err := local_request_PodService_ListPodAll_0(ctx, inboundMarshaler, server, req, pathParams) | |||
| md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| @@ -469,12 +476,13 @@ func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/CreatePods") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/CreatePods", runtime.WithHTTPPathPattern("/apis/pod/createMulti")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_PodService_CreatePods_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_PodService_CreatePods_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -489,12 +497,13 @@ func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/CreatePod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/CreatePod", runtime.WithHTTPPathPattern("/apis/pod/create")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_PodService_CreatePod_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_PodService_CreatePod_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -509,12 +518,13 @@ func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/DeletePod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/DeletePod", runtime.WithHTTPPathPattern("/apis/pod/delete")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_PodService_DeletePod_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_PodService_DeletePod_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -529,12 +539,13 @@ func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/UpdatePod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/UpdatePod", runtime.WithHTTPPathPattern("/apis/pod/update")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_PodService_UpdatePod_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_PodService_UpdatePod_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -549,12 +560,13 @@ func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/ListPodDetail") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/ListPodDetail", runtime.WithHTTPPathPattern("/apis/pod/detail")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_PodService_ListPodDetail_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_PodService_ListPodDetail_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -569,12 +581,13 @@ func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/ListPod") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/ListPod", runtime.WithHTTPPathPattern("/apis/pod")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_PodService_ListPod_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_PodService_ListPod_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -589,12 +602,13 @@ func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, | |||
| ctx, cancel := context.WithCancel(req.Context()) | |||
| defer cancel() | |||
| inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) | |||
| rctx, err := runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/ListPodAll") | |||
| var err error | |||
| ctx, err = runtime.AnnotateContext(ctx, mux, req, "/pbpod.PodService/ListPodAll", runtime.WithHTTPPathPattern("/apis/pod/all")) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| return | |||
| } | |||
| resp, md, err := request_PodService_ListPodAll_0(rctx, inboundMarshaler, client, req, pathParams) | |||
| resp, md, err := request_PodService_ListPodAll_0(ctx, inboundMarshaler, client, req, pathParams) | |||
| ctx = runtime.NewServerMetadataContext(ctx, md) | |||
| if err != nil { | |||
| runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) | |||
| @@ -939,18 +939,18 @@ var file_idl_pbtenant_tenant_proto_rawDesc = []byte{ | |||
| 0x10, 0x12, 0x12, 0x12, 0x0a, 0x0e, 0x61, 0x77, 0x73, 0x5f, 0x65, 0x75, 0x5f, 0x6e, 0x6f, 0x72, | |||
| 0x74, 0x68, 0x5f, 0x31, 0x10, 0x13, 0x12, 0x12, 0x0a, 0x0e, 0x61, 0x77, 0x73, 0x5f, 0x6d, 0x65, | |||
| 0x5f, 0x73, 0x6f, 0x75, 0x74, 0x68, 0x5f, 0x31, 0x10, 0x14, 0x12, 0x11, 0x0a, 0x0d, 0x61, 0x77, | |||
| 0x73, 0x5f, 0x73, 0x61, 0x5f, 0x65, 0x61, 0x73, 0x74, 0x5f, 0x31, 0x10, 0x15, 0x32, 0x70, 0x0a, | |||
| 0x0d, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x5f, | |||
| 0x92, 0x41, 0x5c, 0x12, 0x1e, 0xe6, 0x89, 0x80, 0xe6, 0x9c, 0x89, 0xe4, 0xba, 0x91, 0xe7, 0xa7, | |||
| 0x73, 0x5f, 0x73, 0x61, 0x5f, 0x65, 0x61, 0x73, 0x74, 0x5f, 0x31, 0x10, 0x15, 0x32, 0x71, 0x0a, | |||
| 0x0d, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x60, | |||
| 0x92, 0x41, 0x5d, 0x12, 0x1e, 0xe6, 0x89, 0x80, 0xe6, 0x9c, 0x89, 0xe4, 0xba, 0x91, 0xe7, 0xa7, | |||
| 0x9f, 0xe6, 0x88, 0xb7, 0xe7, 0x9a, 0x84, 0xe8, 0xae, 0xa4, 0xe8, 0xaf, 0x81, 0xe6, 0x9c, 0x8d, | |||
| 0xe5, 0x8a, 0xa1, 0x1a, 0x3a, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x20, 0x6f, 0x75, 0x74, 0x20, | |||
| 0x6d, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x50, 0x43, 0x4d, 0x12, 0x1f, | |||
| 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, | |||
| 0x6f, 0x72, 0x67, 0x2e, 0x63, 0x6e, 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2f, 0x50, 0x43, 0x4d, 0x42, | |||
| 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x63, | |||
| 0x6e, 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2f, 0x50, 0x43, 0x4d, 0x2f, 0x6c, 0x61, 0x6e, 0x5f, 0x74, | |||
| 0x72, 0x61, 0x6e, 0x73, 0x2f, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x62, 0x74, 0x65, 0x6e, 0x61, 0x6e, | |||
| 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| 0xe5, 0x8a, 0xa1, 0x1a, 0x3b, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x20, 0x6f, 0x75, 0x74, 0x20, | |||
| 0x6d, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x50, 0x43, 0x4d, 0x12, 0x20, | |||
| 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, | |||
| 0x6f, 0x6d, 0x2f, 0x4a, 0x43, 0x43, 0x45, 0x2d, 0x6e, 0x75, 0x64, 0x74, 0x2f, 0x50, 0x43, 0x4d, | |||
| 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4a, | |||
| 0x43, 0x43, 0x45, 0x2d, 0x6e, 0x75, 0x64, 0x74, 0x2f, 0x50, 0x43, 0x4d, 0x2f, 0x6c, 0x61, 0x6e, | |||
| 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x2f, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x62, 0x74, 0x65, 0x6e, | |||
| 0x61, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
| } | |||
| var ( | |||
| @@ -68,14 +68,11 @@ | |||
| "protobufAny": { | |||
| "type": "object", | |||
| "properties": { | |||
| "typeUrl": { | |||
| "@type": { | |||
| "type": "string" | |||
| }, | |||
| "value": { | |||
| "type": "string", | |||
| "format": "byte" | |||
| } | |||
| } | |||
| }, | |||
| "additionalProperties": {} | |||
| }, | |||
| "rpcStatus": { | |||
| "type": "object", | |||
| @@ -37,7 +37,7 @@ | |||
| "parameters": [ | |||
| { | |||
| "name": "provider", | |||
| "description": "云名称.\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "description": "云名称\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string", | |||
| @@ -232,7 +232,7 @@ | |||
| "parameters": [ | |||
| { | |||
| "name": "provider", | |||
| "description": "云名称.\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "description": "云名称\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string", | |||
| @@ -247,14 +247,14 @@ | |||
| }, | |||
| { | |||
| "name": "accountName", | |||
| "description": "账户名称,根据config.yaml中的配置,默认为第一个配置的账户.", | |||
| "description": "账户名称,根据config.yaml中的配置,默认为第一个配置的账户", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string" | |||
| }, | |||
| { | |||
| "name": "regionId", | |||
| "description": "区域Id,参考 tenant.proto 中的各个云的区域.", | |||
| "description": "区域Id,参考 tenant.proto 中的各个云的区域", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -262,7 +262,7 @@ | |||
| }, | |||
| { | |||
| "name": "pageNumber", | |||
| "description": "分页相关参数,页码.", | |||
| "description": "分页相关参数,页码", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -270,7 +270,7 @@ | |||
| }, | |||
| { | |||
| "name": "pageSize", | |||
| "description": "分页相关参数,每页数量.", | |||
| "description": "分页相关参数,每页数量", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -278,14 +278,14 @@ | |||
| }, | |||
| { | |||
| "name": "nextToken", | |||
| "description": "分页相关参数,下一页的token.", | |||
| "description": "分页相关参数,下一页的token", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string" | |||
| }, | |||
| { | |||
| "name": "namespace", | |||
| "description": "--------harvester---------\nnamespace.", | |||
| "description": "--------harvester---------\nnamespace", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string" | |||
| @@ -985,14 +985,11 @@ | |||
| "protobufAny": { | |||
| "type": "object", | |||
| "properties": { | |||
| "typeUrl": { | |||
| "@type": { | |||
| "type": "string" | |||
| }, | |||
| "value": { | |||
| "type": "string", | |||
| "format": "byte" | |||
| } | |||
| } | |||
| }, | |||
| "additionalProperties": {} | |||
| }, | |||
| "rpcStatus": { | |||
| "type": "object", | |||
| @@ -37,7 +37,7 @@ | |||
| "parameters": [ | |||
| { | |||
| "name": "provider", | |||
| "description": "cloud name.\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "description": "cloud name\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string", | |||
| @@ -205,7 +205,7 @@ | |||
| "parameters": [ | |||
| { | |||
| "name": "provider", | |||
| "description": "云名称.\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "description": "云名称\n\n - ali: 0 - 阿里云\n - tencent: 1 - 腾讯云\n - huawei: 2 - 华为云\n - k8s: 3 - K8S\n - harvester: 3 - Harvester", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string", | |||
| @@ -220,14 +220,14 @@ | |||
| }, | |||
| { | |||
| "name": "accountName", | |||
| "description": "账户名称,根据config.yaml中的配置,默认为第一个配置的账户.", | |||
| "description": "账户名称,根据config.yaml中的配置,默认为第一个配置的账户", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string" | |||
| }, | |||
| { | |||
| "name": "regionId", | |||
| "description": "区域Id,参考 tenant.proto 中的各个云的区域.", | |||
| "description": "区域Id,参考 tenant.proto 中的各个云的区域", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -235,7 +235,7 @@ | |||
| }, | |||
| { | |||
| "name": "regionName", | |||
| "description": "区域名称,各云厂商自定义的region name.", | |||
| "description": "区域名称,各云厂商自定义的region name", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -243,7 +243,7 @@ | |||
| }, | |||
| { | |||
| "name": "podId", | |||
| "description": "podID.", | |||
| "description": "podID", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -251,7 +251,7 @@ | |||
| }, | |||
| { | |||
| "name": "pageNumber", | |||
| "description": "分页相关参数,页码.", | |||
| "description": "分页相关参数,页码", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -259,7 +259,7 @@ | |||
| }, | |||
| { | |||
| "name": "pageSize", | |||
| "description": "分页相关参数,每页数量.", | |||
| "description": "分页相关参数,每页数量", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "integer", | |||
| @@ -267,14 +267,14 @@ | |||
| }, | |||
| { | |||
| "name": "nextToken", | |||
| "description": "分页相关参数,下一页的token.", | |||
| "description": "分页相关参数,下一页的token", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string" | |||
| }, | |||
| { | |||
| "name": "namespace", | |||
| "description": "namespace.", | |||
| "description": "namespace", | |||
| "in": "query", | |||
| "required": false, | |||
| "type": "string" | |||
| @@ -438,13 +438,17 @@ | |||
| "type": "string", | |||
| "title": "账号名称" | |||
| }, | |||
| "pcmId": { | |||
| "type": "string", | |||
| "title": "pcm id" | |||
| }, | |||
| "podId": { | |||
| "type": "string", | |||
| "title": "实例ID" | |||
| "title": "podId" | |||
| }, | |||
| "podName": { | |||
| "type": "string", | |||
| "title": "实例名称" | |||
| "title": "podName" | |||
| }, | |||
| "namespace": { | |||
| "type": "string", | |||
| @@ -462,7 +466,7 @@ | |||
| "properties": { | |||
| "finished": { | |||
| "type": "boolean", | |||
| "title": "查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询" | |||
| "title": "删除是否完成" | |||
| }, | |||
| "requestId": { | |||
| "type": "string", | |||
| @@ -535,6 +539,10 @@ | |||
| "type": "string", | |||
| "title": "账号名称" | |||
| }, | |||
| "pcmId": { | |||
| "type": "string", | |||
| "title": "pcm id" | |||
| }, | |||
| "podId": { | |||
| "type": "string", | |||
| "title": "实例id" | |||
| @@ -601,13 +609,17 @@ | |||
| "type": "string", | |||
| "title": "账号名称" | |||
| }, | |||
| "pcmId": { | |||
| "type": "string", | |||
| "title": "pcm ID" | |||
| }, | |||
| "podId": { | |||
| "type": "string", | |||
| "title": "实例ID" | |||
| "title": "podId" | |||
| }, | |||
| "podName": { | |||
| "type": "string", | |||
| "title": "实例名称" | |||
| "title": "podName" | |||
| }, | |||
| "namespace": { | |||
| "type": "string", | |||
| @@ -649,7 +661,7 @@ | |||
| "properties": { | |||
| "finished": { | |||
| "type": "boolean", | |||
| "title": "查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询" | |||
| "title": "更新是否完成" | |||
| }, | |||
| "requestId": { | |||
| "type": "string", | |||
| @@ -681,14 +693,11 @@ | |||
| "protobufAny": { | |||
| "type": "object", | |||
| "properties": { | |||
| "typeUrl": { | |||
| "@type": { | |||
| "type": "string" | |||
| }, | |||
| "value": { | |||
| "type": "string", | |||
| "format": "byte" | |||
| } | |||
| } | |||
| }, | |||
| "additionalProperties": {} | |||
| }, | |||
| "rpcStatus": { | |||
| "type": "object", | |||
| @@ -15,14 +15,11 @@ | |||
| "protobufAny": { | |||
| "type": "object", | |||
| "properties": { | |||
| "typeUrl": { | |||
| "@type": { | |||
| "type": "string" | |||
| }, | |||
| "value": { | |||
| "type": "string", | |||
| "format": "byte" | |||
| } | |||
| } | |||
| }, | |||
| "additionalProperties": {} | |||
| }, | |||
| "rpcStatus": { | |||
| "type": "object", | |||
| @@ -3,11 +3,11 @@ package main | |||
| import ( | |||
| "context" | |||
| "flag" | |||
| "gitlink.org.cn/JCCE/PCM/common/server" | |||
| "gitlink.org.cn/JCCE/PCM/common/tenanter" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/demo" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs" | |||
| "gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod" | |||
| "github.com/JCCE-nudt/PCM/common/server" | |||
| "github.com/JCCE-nudt/PCM/common/tenanter" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/demo" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbecs" | |||
| "github.com/JCCE-nudt/PCM/lan_trans/idl/pbpod" | |||
| "net" | |||
| "net/http" | |||