@@ -227,77 +227,6 @@ func (c *Client) CreateComputeEnvWithContext(ctx context.Context, request *Creat
227
227
return
228
228
}
229
229
230
- func NewCreateCpmComputeEnvRequest () (request * CreateCpmComputeEnvRequest ) {
231
- request = & CreateCpmComputeEnvRequest {
232
- BaseRequest : & tchttp.BaseRequest {},
233
- }
234
-
235
- request .Init ().WithApiInfo ("batch" , APIVersion , "CreateCpmComputeEnv" )
236
-
237
-
238
- return
239
- }
240
-
241
- func NewCreateCpmComputeEnvResponse () (response * CreateCpmComputeEnvResponse ) {
242
- response = & CreateCpmComputeEnvResponse {
243
- BaseResponse : & tchttp.BaseResponse {},
244
- }
245
- return
246
-
247
- }
248
-
249
- // CreateCpmComputeEnv
250
- // 创建黑石计算环境
251
- //
252
- // 可能返回的错误码:
253
- // INTERNALERROR = "InternalError"
254
- // INTERNALERROR_CALLCPMAPI = "InternalError.CallCpmAPI"
255
- // INTERNALERROR_CPMRESPONSEDATAEMPTY = "InternalError.CpmResponseDataEmpty"
256
- // INVALIDPARAMETER_ENVDESCRIPTIONTOOLONG = "InvalidParameter.EnvDescriptionTooLong"
257
- // INVALIDPARAMETER_ENVNAMETOOLONG = "InvalidParameter.EnvNameTooLong"
258
- // INVALIDPARAMETER_NOTIFICATIONEVENTNAMEDUPLICATE = "InvalidParameter.NotificationEventNameDuplicate"
259
- // INVALIDPARAMETER_NOTIFICATIONTOPICNAME = "InvalidParameter.NotificationTopicName"
260
- // INVALIDPARAMETER_NOTIFICATIONTOPICNAMETOOLONG = "InvalidParameter.NotificationTopicNameTooLong"
261
- // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
262
- // INVALIDPARAMETERVALUE_OSTYPEID = "InvalidParameterValue.OsTypeId"
263
- // INVALIDPARAMETERVALUE_REGIONNOTSUPPORTCPM = "InvalidParameterValue.RegionNotSupportCpm"
264
- // UNAUTHORIZEDOPERATION_USERNOTALLOWEDTOUSEBATCH = "UnauthorizedOperation.UserNotAllowedToUseBatch"
265
- func (c * Client ) CreateCpmComputeEnv (request * CreateCpmComputeEnvRequest ) (response * CreateCpmComputeEnvResponse , err error ) {
266
- return c .CreateCpmComputeEnvWithContext (context .Background (), request )
267
- }
268
-
269
- // CreateCpmComputeEnv
270
- // 创建黑石计算环境
271
- //
272
- // 可能返回的错误码:
273
- // INTERNALERROR = "InternalError"
274
- // INTERNALERROR_CALLCPMAPI = "InternalError.CallCpmAPI"
275
- // INTERNALERROR_CPMRESPONSEDATAEMPTY = "InternalError.CpmResponseDataEmpty"
276
- // INVALIDPARAMETER_ENVDESCRIPTIONTOOLONG = "InvalidParameter.EnvDescriptionTooLong"
277
- // INVALIDPARAMETER_ENVNAMETOOLONG = "InvalidParameter.EnvNameTooLong"
278
- // INVALIDPARAMETER_NOTIFICATIONEVENTNAMEDUPLICATE = "InvalidParameter.NotificationEventNameDuplicate"
279
- // INVALIDPARAMETER_NOTIFICATIONTOPICNAME = "InvalidParameter.NotificationTopicName"
280
- // INVALIDPARAMETER_NOTIFICATIONTOPICNAMETOOLONG = "InvalidParameter.NotificationTopicNameTooLong"
281
- // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
282
- // INVALIDPARAMETERVALUE_OSTYPEID = "InvalidParameterValue.OsTypeId"
283
- // INVALIDPARAMETERVALUE_REGIONNOTSUPPORTCPM = "InvalidParameterValue.RegionNotSupportCpm"
284
- // UNAUTHORIZEDOPERATION_USERNOTALLOWEDTOUSEBATCH = "UnauthorizedOperation.UserNotAllowedToUseBatch"
285
- func (c * Client ) CreateCpmComputeEnvWithContext (ctx context.Context , request * CreateCpmComputeEnvRequest ) (response * CreateCpmComputeEnvResponse , err error ) {
286
- if request == nil {
287
- request = NewCreateCpmComputeEnvRequest ()
288
- }
289
-
290
- if c .GetCredential () == nil {
291
- return nil , errors .New ("CreateCpmComputeEnv require credential" )
292
- }
293
-
294
- request .SetContext (ctx )
295
-
296
- response = NewCreateCpmComputeEnvResponse ()
297
- err = c .Send (request , response )
298
- return
299
- }
300
-
301
230
func NewCreateTaskTemplateRequest () (request * CreateTaskTemplateRequest ) {
302
231
request = & CreateTaskTemplateRequest {
303
232
BaseRequest : & tchttp.BaseRequest {},
@@ -916,59 +845,6 @@ func (c *Client) DescribeComputeEnvsWithContext(ctx context.Context, request *De
916
845
return
917
846
}
918
847
919
- func NewDescribeCpmOsInfoRequest () (request * DescribeCpmOsInfoRequest ) {
920
- request = & DescribeCpmOsInfoRequest {
921
- BaseRequest : & tchttp.BaseRequest {},
922
- }
923
-
924
- request .Init ().WithApiInfo ("batch" , APIVersion , "DescribeCpmOsInfo" )
925
-
926
-
927
- return
928
- }
929
-
930
- func NewDescribeCpmOsInfoResponse () (response * DescribeCpmOsInfoResponse ) {
931
- response = & DescribeCpmOsInfoResponse {
932
- BaseResponse : & tchttp.BaseResponse {},
933
- }
934
- return
935
-
936
- }
937
-
938
- // DescribeCpmOsInfo
939
- // 创建黑石计算环境时,查询批量计算环境支持的黑石操作系统信息
940
- //
941
- // 可能返回的错误码:
942
- // INTERNALERROR = "InternalError"
943
- // INTERNALERROR_CALLCPMAPI = "InternalError.CallCpmAPI"
944
- // INVALIDPARAMETERVALUE_REGIONNOTSUPPORTCPM = "InvalidParameterValue.RegionNotSupportCpm"
945
- func (c * Client ) DescribeCpmOsInfo (request * DescribeCpmOsInfoRequest ) (response * DescribeCpmOsInfoResponse , err error ) {
946
- return c .DescribeCpmOsInfoWithContext (context .Background (), request )
947
- }
948
-
949
- // DescribeCpmOsInfo
950
- // 创建黑石计算环境时,查询批量计算环境支持的黑石操作系统信息
951
- //
952
- // 可能返回的错误码:
953
- // INTERNALERROR = "InternalError"
954
- // INTERNALERROR_CALLCPMAPI = "InternalError.CallCpmAPI"
955
- // INVALIDPARAMETERVALUE_REGIONNOTSUPPORTCPM = "InvalidParameterValue.RegionNotSupportCpm"
956
- func (c * Client ) DescribeCpmOsInfoWithContext (ctx context.Context , request * DescribeCpmOsInfoRequest ) (response * DescribeCpmOsInfoResponse , err error ) {
957
- if request == nil {
958
- request = NewDescribeCpmOsInfoRequest ()
959
- }
960
-
961
- if c .GetCredential () == nil {
962
- return nil , errors .New ("DescribeCpmOsInfo require credential" )
963
- }
964
-
965
- request .SetContext (ctx )
966
-
967
- response = NewDescribeCpmOsInfoResponse ()
968
- err = c .Send (request , response )
969
- return
970
- }
971
-
972
848
func NewDescribeCvmZoneInstanceConfigInfosRequest () (request * DescribeCvmZoneInstanceConfigInfosRequest ) {
973
849
request = & DescribeCvmZoneInstanceConfigInfosRequest {
974
850
BaseRequest : & tchttp.BaseRequest {},
0 commit comments