From bc226d2cf5aab765662674ce63c54bcfa165d4c6 Mon Sep 17 00:00:00 2001 From: YR Chen Date: Fri, 6 Oct 2023 16:34:10 +0800 Subject: [PATCH] Updates service error metadata --- .../errors/CdbError.FailedOperation.swift | 8 +++++++ .../Teco/Cdb/V20170320/errors/CdbError.swift | 6 +++++ .../errors/CvmError.FailedOperation.swift | 8 +++++++ .../CvmError.ResourceInsufficient.swift | 8 +++++++ .../Teco/Cvm/V20170312/errors/CvmError.swift | 12 ++++++++++ .../EmrError.UnsupportedOperation.swift | 8 +++++++ .../Teco/Emr/V20190103/errors/EmrError.swift | 6 +++++ .../FacefusionError.FailedOperation.swift | 8 +++++++ .../V20220927/errors/FacefusionError.swift | 6 +++++ .../errors/TemError.MissingParameter.swift | 8 +++++++ .../Teco/Tem/V20210701/errors/TemError.swift | 6 +++++ .../errors/TeoError.InvalidParameter.swift | 24 +++++++++++++++++++ .../Teco/Teo/V20220901/errors/TeoError.swift | 18 ++++++++++++++ .../TioneError.InvalidParameterValue.swift | 7 ++++++ .../Tione/V20211111/errors/TioneError.swift | 5 ++++ .../errors/WafError.InvalidParameter.swift | 8 +++++++ .../Teco/Waf/V20180125/errors/WafError.swift | 6 +++++ 17 files changed, 152 insertions(+) diff --git a/Sources/Teco/Cdb/V20170320/errors/CdbError.FailedOperation.swift b/Sources/Teco/Cdb/V20170320/errors/CdbError.FailedOperation.swift index 54ad10d00a..bfa0b3a98a 100644 --- a/Sources/Teco/Cdb/V20170320/errors/CdbError.FailedOperation.swift +++ b/Sources/Teco/Cdb/V20170320/errors/CdbError.FailedOperation.swift @@ -52,6 +52,7 @@ extension TCCdbError { case timeoutError = "FailedOperation.TimeoutError" case typeInConflict = "FailedOperation.TypeInConflict" case vpcIpInUseError = "FailedOperation.VpcIpInUseError" + case vpcIpInvalidError = "FailedOperation.VpcIpInvalidError" case vpcIpNotInSubnetError = "FailedOperation.VpcIpNotInSubnetError" case other = "FailedOperation" } @@ -246,6 +247,11 @@ extension TCCdbError { FailedOperation(.vpcIpInUseError) } + /// 无效IP + public static var vpcIpInvalidError: FailedOperation { + FailedOperation(.vpcIpInvalidError) + } + /// 子网中不存在该IP public static var vpcIpNotInSubnetError: FailedOperation { FailedOperation(.vpcIpNotInSubnetError) @@ -325,6 +331,8 @@ extension TCCdbError { code = .failedOperation_TypeInConflict case .vpcIpInUseError: code = .failedOperation_VpcIpInUseError + case .vpcIpInvalidError: + code = .failedOperation_VpcIpInvalidError case .vpcIpNotInSubnetError: code = .failedOperation_VpcIpNotInSubnetError case .other: diff --git a/Sources/Teco/Cdb/V20170320/errors/CdbError.swift b/Sources/Teco/Cdb/V20170320/errors/CdbError.swift index 30bc573d33..278e2f7d55 100644 --- a/Sources/Teco/Cdb/V20170320/errors/CdbError.swift +++ b/Sources/Teco/Cdb/V20170320/errors/CdbError.swift @@ -68,6 +68,7 @@ public struct TCCdbError: TCCdbErrorType { case failedOperation_TimeoutError = "FailedOperation.TimeoutError" case failedOperation_TypeInConflict = "FailedOperation.TypeInConflict" case failedOperation_VpcIpInUseError = "FailedOperation.VpcIpInUseError" + case failedOperation_VpcIpInvalidError = "FailedOperation.VpcIpInvalidError" case failedOperation_VpcIpNotInSubnetError = "FailedOperation.VpcIpNotInSubnetError" case internalError = "InternalError" case internalError_AsyncRequestError = "InternalError.AsyncRequestError" @@ -469,6 +470,11 @@ public struct TCCdbError: TCCdbErrorType { TCCdbError(.failedOperation_VpcIpInUseError) } + /// 无效IP + public static var failedOperation_VpcIpInvalidError: TCCdbError { + TCCdbError(.failedOperation_VpcIpInvalidError) + } + /// 子网中不存在该IP public static var failedOperation_VpcIpNotInSubnetError: TCCdbError { TCCdbError(.failedOperation_VpcIpNotInSubnetError) diff --git a/Sources/Teco/Cvm/V20170312/errors/CvmError.FailedOperation.swift b/Sources/Teco/Cvm/V20170312/errors/CvmError.FailedOperation.swift index 8fc7844b29..7098509056 100644 --- a/Sources/Teco/Cvm/V20170312/errors/CvmError.FailedOperation.swift +++ b/Sources/Teco/Cvm/V20170312/errors/CvmError.FailedOperation.swift @@ -43,6 +43,7 @@ extension TCCvmError { case tagKeyReserved = "FailedOperation.TagKeyReserved" case tatAgentNotSupport = "FailedOperation.TatAgentNotSupport" case unreturnable = "FailedOperation.Unreturnable" + case zoneInconsistent = "FailedOperation.ZoneInconsistent" } private let error: Code @@ -187,6 +188,11 @@ extension TCCvmError { FailedOperation(.unreturnable) } + /// 给定实例所在可用区不相同,请给定相同可用区的实例。 + public static var zoneInconsistent: FailedOperation { + FailedOperation(.zoneInconsistent) + } + public func asCvmError() -> TCCvmError { let code: TCCvmError.Code switch self.error { @@ -238,6 +244,8 @@ extension TCCvmError { code = .failedOperation_TatAgentNotSupport case .unreturnable: code = .failedOperation_Unreturnable + case .zoneInconsistent: + code = .failedOperation_ZoneInconsistent } return TCCvmError(code, context: self.context) } diff --git a/Sources/Teco/Cvm/V20170312/errors/CvmError.ResourceInsufficient.swift b/Sources/Teco/Cvm/V20170312/errors/CvmError.ResourceInsufficient.swift index 2fa12dfd1e..38c6e53813 100644 --- a/Sources/Teco/Cvm/V20170312/errors/CvmError.ResourceInsufficient.swift +++ b/Sources/Teco/Cvm/V20170312/errors/CvmError.ResourceInsufficient.swift @@ -20,6 +20,7 @@ extension TCCvmError { public struct ResourceInsufficient: TCCvmErrorType { enum Code: String { case availabilityZoneSoldOut = "ResourceInsufficient.AvailabilityZoneSoldOut" + case cidrBlock = "ResourceInsufficient.CidrBlock" case cloudDiskSoldOut = "ResourceInsufficient.CloudDiskSoldOut" case cloudDiskUnavailable = "ResourceInsufficient.CloudDiskUnavailable" case disasterRecoverGroupCvmQuota = "ResourceInsufficient.DisasterRecoverGroupCvmQuota" @@ -55,6 +56,11 @@ extension TCCvmError { ResourceInsufficient(.availabilityZoneSoldOut) } + /// 网段资源不足。 + public static var cidrBlock: ResourceInsufficient { + ResourceInsufficient(.cidrBlock) + } + /// 指定的云盘规格已售罄 public static var cloudDiskSoldOut: ResourceInsufficient { ResourceInsufficient(.cloudDiskSoldOut) @@ -90,6 +96,8 @@ extension TCCvmError { switch self.error { case .availabilityZoneSoldOut: code = .resourceInsufficient_AvailabilityZoneSoldOut + case .cidrBlock: + code = .resourceInsufficient_CidrBlock case .cloudDiskSoldOut: code = .resourceInsufficient_CloudDiskSoldOut case .cloudDiskUnavailable: diff --git a/Sources/Teco/Cvm/V20170312/errors/CvmError.swift b/Sources/Teco/Cvm/V20170312/errors/CvmError.swift index 37800073d2..5d53bbd704 100644 --- a/Sources/Teco/Cvm/V20170312/errors/CvmError.swift +++ b/Sources/Teco/Cvm/V20170312/errors/CvmError.swift @@ -53,6 +53,7 @@ public struct TCCvmError: TCCvmErrorType { case failedOperation_TagKeyReserved = "FailedOperation.TagKeyReserved" case failedOperation_TatAgentNotSupport = "FailedOperation.TatAgentNotSupport" case failedOperation_Unreturnable = "FailedOperation.Unreturnable" + case failedOperation_ZoneInconsistent = "FailedOperation.ZoneInconsistent" case imageQuotaLimitExceeded = "ImageQuotaLimitExceeded" case instancesQuotaLimitExceeded = "InstancesQuotaLimitExceeded" case internalError = "InternalError" @@ -256,6 +257,7 @@ public struct TCCvmError: TCCvmErrorType { case resourceInUse_DiskRollbacking = "ResourceInUse.DiskRollbacking" case resourceInUse_HpcCluster = "ResourceInUse.HpcCluster" case resourceInsufficient_AvailabilityZoneSoldOut = "ResourceInsufficient.AvailabilityZoneSoldOut" + case resourceInsufficient_CidrBlock = "ResourceInsufficient.CidrBlock" case resourceInsufficient_CloudDiskSoldOut = "ResourceInsufficient.CloudDiskSoldOut" case resourceInsufficient_CloudDiskUnavailable = "ResourceInsufficient.CloudDiskUnavailable" case resourceInsufficient_DisasterRecoverGroupCvmQuota = "ResourceInsufficient.DisasterRecoverGroupCvmQuota" @@ -577,6 +579,11 @@ public struct TCCvmError: TCCvmErrorType { TCCvmError(.failedOperation_Unreturnable) } + /// 给定实例所在可用区不相同,请给定相同可用区的实例。 + public static var failedOperation_ZoneInconsistent: TCCvmError { + TCCvmError(.failedOperation_ZoneInconsistent) + } + /// 镜像配额超过了限制。 public static var imageQuotaLimitExceeded: TCCvmError { TCCvmError(.imageQuotaLimitExceeded) @@ -1605,6 +1612,11 @@ public struct TCCvmError: TCCvmErrorType { TCCvmError(.resourceInsufficient_AvailabilityZoneSoldOut) } + /// 网段资源不足。 + public static var resourceInsufficient_CidrBlock: TCCvmError { + TCCvmError(.resourceInsufficient_CidrBlock) + } + /// 指定的云盘规格已售罄 public static var resourceInsufficient_CloudDiskSoldOut: TCCvmError { TCCvmError(.resourceInsufficient_CloudDiskSoldOut) diff --git a/Sources/Teco/Emr/V20190103/errors/EmrError.UnsupportedOperation.swift b/Sources/Teco/Emr/V20190103/errors/EmrError.UnsupportedOperation.swift index 267b17b4ab..e6a12ee9aa 100644 --- a/Sources/Teco/Emr/V20190103/errors/EmrError.UnsupportedOperation.swift +++ b/Sources/Teco/Emr/V20190103/errors/EmrError.UnsupportedOperation.swift @@ -19,6 +19,7 @@ import TecoCore extension TCEmrError { public struct UnsupportedOperation: TCEmrErrorType { enum Code: String { + case notInWhiteList = "UnsupportedOperation.NotInWhiteList" case serviceNotSupport = "UnsupportedOperation.ServiceNotSupport" case other = "UnsupportedOperation" } @@ -45,6 +46,11 @@ extension TCEmrError { self.context = context } + /// 该功能白名单支持。 + public static var notInWhiteList: UnsupportedOperation { + UnsupportedOperation(.notInWhiteList) + } + /// 该服务不支持此操作。 public static var serviceNotSupport: UnsupportedOperation { UnsupportedOperation(.serviceNotSupport) @@ -58,6 +64,8 @@ extension TCEmrError { public func asEmrError() -> TCEmrError { let code: TCEmrError.Code switch self.error { + case .notInWhiteList: + code = .unsupportedOperation_NotInWhiteList case .serviceNotSupport: code = .unsupportedOperation_ServiceNotSupport case .other: diff --git a/Sources/Teco/Emr/V20190103/errors/EmrError.swift b/Sources/Teco/Emr/V20190103/errors/EmrError.swift index 5c1e05dab0..95a3225ec5 100644 --- a/Sources/Teco/Emr/V20190103/errors/EmrError.swift +++ b/Sources/Teco/Emr/V20190103/errors/EmrError.swift @@ -161,6 +161,7 @@ public struct TCEmrError: TCEmrErrorType { case unauthorizedOperation_CheckCamAuth = "UnauthorizedOperation.CheckCamAuth" case unknownParameter = "UnknownParameter" case unsupportedOperation = "UnsupportedOperation" + case unsupportedOperation_NotInWhiteList = "UnsupportedOperation.NotInWhiteList" case unsupportedOperation_ServiceNotSupport = "UnsupportedOperation.ServiceNotSupport" } @@ -879,6 +880,11 @@ public struct TCEmrError: TCEmrErrorType { TCEmrError(.unsupportedOperation) } + /// 该功能白名单支持。 + public static var unsupportedOperation_NotInWhiteList: TCEmrError { + TCEmrError(.unsupportedOperation_NotInWhiteList) + } + /// 该服务不支持此操作。 public static var unsupportedOperation_ServiceNotSupport: TCEmrError { TCEmrError(.unsupportedOperation_ServiceNotSupport) diff --git a/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.FailedOperation.swift b/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.FailedOperation.swift index 9279a38169..82f4490ae4 100644 --- a/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.FailedOperation.swift +++ b/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.FailedOperation.swift @@ -47,6 +47,7 @@ extension TCFacefusionError { case rpcFail = "FailedOperation.RpcFail" case serverError = "FailedOperation.ServerError" case templateFaceIDNotExist = "FailedOperation.TemplateFaceIDNotExist" + case unknown = "FailedOperation.Unknown" case other = "FailedOperation" } @@ -212,6 +213,11 @@ extension TCFacefusionError { FailedOperation(.templateFaceIDNotExist) } + /// 未知错误。 + public static var unknown: FailedOperation { + FailedOperation(.unknown) + } + /// 操作失败。 public static var other: FailedOperation { FailedOperation(.other) @@ -276,6 +282,8 @@ extension TCFacefusionError { code = .failedOperation_ServerError case .templateFaceIDNotExist: code = .failedOperation_TemplateFaceIDNotExist + case .unknown: + code = .failedOperation_Unknown case .other: code = .failedOperation } diff --git a/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.swift b/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.swift index f1e048c758..7385d77d29 100644 --- a/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.swift +++ b/Sources/Teco/Facefusion/V20220927/errors/FacefusionError.swift @@ -55,6 +55,7 @@ public struct TCFacefusionError: TCFacefusionErrorType { case failedOperation_RpcFail = "FailedOperation.RpcFail" case failedOperation_ServerError = "FailedOperation.ServerError" case failedOperation_TemplateFaceIDNotExist = "FailedOperation.TemplateFaceIDNotExist" + case failedOperation_Unknown = "FailedOperation.Unknown" case invalidParameterValue_ActivityIdNotFound = "InvalidParameterValue.ActivityIdNotFound" case invalidParameterValue_FaceRectParameterValueError = "InvalidParameterValue.FaceRectParameterValueError" case invalidParameterValue_ImageEmpty = "InvalidParameterValue.ImageEmpty" @@ -247,6 +248,11 @@ public struct TCFacefusionError: TCFacefusionErrorType { TCFacefusionError(.failedOperation_TemplateFaceIDNotExist) } + /// 未知错误。 + public static var failedOperation_Unknown: TCFacefusionError { + TCFacefusionError(.failedOperation_Unknown) + } + /// 未查找到活动id。 public static var invalidParameterValue_ActivityIdNotFound: TCFacefusionError { TCFacefusionError(.invalidParameterValue_ActivityIdNotFound) diff --git a/Sources/Teco/Tem/V20210701/errors/TemError.MissingParameter.swift b/Sources/Teco/Tem/V20210701/errors/TemError.MissingParameter.swift index 8fc6397c4d..679d1bdb58 100644 --- a/Sources/Teco/Tem/V20210701/errors/TemError.MissingParameter.swift +++ b/Sources/Teco/Tem/V20210701/errors/TemError.MissingParameter.swift @@ -28,6 +28,7 @@ extension TCTemError { case minMaxNumNull = "MissingParameter.MinMaxNumNull" case namespaceIdNull = "MissingParameter.NamespaceIdNull" case pkgNameNull = "MissingParameter.PkgNameNull" + case repoServerNull = "MissingParameter.RepoServerNull" case scalerIdNull = "MissingParameter.ScalerIdNull" case serviceIdNull = "MissingParameter.ServiceIdNull" case svcRepoNotReady = "MissingParameter.SvcRepoNotReady" @@ -102,6 +103,11 @@ extension TCTemError { MissingParameter(.pkgNameNull) } + /// 镜像仓库服务器不能为空。 + public static var repoServerNull: MissingParameter { + MissingParameter(.repoServerNull) + } + /// 弹性规则ID不能为空。 public static var scalerIdNull: MissingParameter { MissingParameter(.scalerIdNull) @@ -150,6 +156,8 @@ extension TCTemError { code = .missingParameter_NamespaceIdNull case .pkgNameNull: code = .missingParameter_PkgNameNull + case .repoServerNull: + code = .missingParameter_RepoServerNull case .scalerIdNull: code = .missingParameter_ScalerIdNull case .serviceIdNull: diff --git a/Sources/Teco/Tem/V20210701/errors/TemError.swift b/Sources/Teco/Tem/V20210701/errors/TemError.swift index b430ef1331..77376dc453 100644 --- a/Sources/Teco/Tem/V20210701/errors/TemError.swift +++ b/Sources/Teco/Tem/V20210701/errors/TemError.swift @@ -137,6 +137,7 @@ public struct TCTemError: TCTemErrorType { case missingParameter_MinMaxNumNull = "MissingParameter.MinMaxNumNull" case missingParameter_NamespaceIdNull = "MissingParameter.NamespaceIdNull" case missingParameter_PkgNameNull = "MissingParameter.PkgNameNull" + case missingParameter_RepoServerNull = "MissingParameter.RepoServerNull" case missingParameter_ScalerIdNull = "MissingParameter.ScalerIdNull" case missingParameter_ServiceIdNull = "MissingParameter.ServiceIdNull" case missingParameter_SvcRepoNotReady = "MissingParameter.SvcRepoNotReady" @@ -759,6 +760,11 @@ public struct TCTemError: TCTemErrorType { TCTemError(.missingParameter_PkgNameNull) } + /// 镜像仓库服务器不能为空。 + public static var missingParameter_RepoServerNull: TCTemError { + TCTemError(.missingParameter_RepoServerNull) + } + /// 弹性规则ID不能为空。 public static var missingParameter_ScalerIdNull: TCTemError { TCTemError(.missingParameter_ScalerIdNull) diff --git a/Sources/Teco/Teo/V20220901/errors/TeoError.InvalidParameter.swift b/Sources/Teco/Teo/V20220901/errors/TeoError.InvalidParameter.swift index a99255c42a..42d5f4a06f 100644 --- a/Sources/Teco/Teo/V20220901/errors/TeoError.InvalidParameter.swift +++ b/Sources/Teco/Teo/V20220901/errors/TeoError.InvalidParameter.swift @@ -21,6 +21,7 @@ extension TCTeoError { enum Code: String { case actionInProgress = "InvalidParameter.ActionInProgress" case aliasDomainNotSupportSMCert = "InvalidParameter.AliasDomainNotSupportSMCert" + case cacheKeyQueryStringRequiresFullUrlCacheOff = "InvalidParameter.CacheKeyQueryStringRequiresFullUrlCacheOff" case cacheKeyQueryStringTooManyValue = "InvalidParameter.CacheKeyQueryStringTooManyValue" case certNotMatchDomain = "InvalidParameter.CertNotMatchDomain" case certSystemError = "InvalidParameter.CertSystemError" @@ -82,6 +83,7 @@ extension TCTeoError { case invalidDynamicRoutineBilling = "InvalidParameter.InvalidDynamicRoutineBilling" case invalidErrorPage = "InvalidParameter.InvalidErrorPage" case invalidErrorPageRedirectUrl = "InvalidParameter.InvalidErrorPageRedirectUrl" + case invalidForceRedirectType = "InvalidParameter.InvalidForceRedirectType" case invalidHttps = "InvalidParameter.InvalidHttps" case invalidHttpsCertInfo = "InvalidParameter.InvalidHttpsCertInfo" case invalidHttpsCipherSuiteAndTlsVersion = "InvalidParameter.InvalidHttpsCipherSuiteAndTlsVersion" @@ -132,6 +134,7 @@ extension TCTeoError { case target = "InvalidParameter.Target" case taskNotGenerated = "InvalidParameter.TaskNotGenerated" case taskSystemError = "InvalidParameter.TaskSystemError" + case tooManyFilterValues = "InvalidParameter.TooManyFilterValues" case uploadUrl = "InvalidParameter.UploadUrl" case zoneHasBeenBound = "InvalidParameter.ZoneHasBeenBound" case zoneIsGrayPublishing = "InvalidParameter.ZoneIsGrayPublishing" @@ -170,6 +173,11 @@ extension TCTeoError { InvalidParameter(.aliasDomainNotSupportSMCert) } + /// 无效的查询字符串。 + public static var cacheKeyQueryStringRequiresFullUrlCacheOff: InvalidParameter { + InvalidParameter(.cacheKeyQueryStringRequiresFullUrlCacheOff) + } + /// 查询字符串规则超过了限制。 public static var cacheKeyQueryStringTooManyValue: InvalidParameter { InvalidParameter(.cacheKeyQueryStringTooManyValue) @@ -475,6 +483,11 @@ extension TCTeoError { InvalidParameter(.invalidErrorPageRedirectUrl) } + /// 无效的强制HTTPS跳转。 + public static var invalidForceRedirectType: InvalidParameter { + InvalidParameter(.invalidForceRedirectType) + } + /// 无效的HTTPS。 public static var invalidHttps: InvalidParameter { InvalidParameter(.invalidHttps) @@ -722,6 +735,11 @@ extension TCTeoError { InvalidParameter(.taskSystemError) } + /// 过滤值过多。 + public static var tooManyFilterValues: InvalidParameter { + InvalidParameter(.tooManyFilterValues) + } + /// 文件上传链接存在问题。 public static var uploadUrl: InvalidParameter { InvalidParameter(.uploadUrl) @@ -754,6 +772,8 @@ extension TCTeoError { code = .invalidParameter_ActionInProgress case .aliasDomainNotSupportSMCert: code = .invalidParameter_AliasDomainNotSupportSMCert + case .cacheKeyQueryStringRequiresFullUrlCacheOff: + code = .invalidParameter_CacheKeyQueryStringRequiresFullUrlCacheOff case .cacheKeyQueryStringTooManyValue: code = .invalidParameter_CacheKeyQueryStringTooManyValue case .certNotMatchDomain: @@ -876,6 +896,8 @@ extension TCTeoError { code = .invalidParameter_InvalidErrorPage case .invalidErrorPageRedirectUrl: code = .invalidParameter_InvalidErrorPageRedirectUrl + case .invalidForceRedirectType: + code = .invalidParameter_InvalidForceRedirectType case .invalidHttps: code = .invalidParameter_InvalidHttps case .invalidHttpsCertInfo: @@ -976,6 +998,8 @@ extension TCTeoError { code = .invalidParameter_TaskNotGenerated case .taskSystemError: code = .invalidParameter_TaskSystemError + case .tooManyFilterValues: + code = .invalidParameter_TooManyFilterValues case .uploadUrl: code = .invalidParameter_UploadUrl case .zoneHasBeenBound: diff --git a/Sources/Teco/Teo/V20220901/errors/TeoError.swift b/Sources/Teco/Teo/V20220901/errors/TeoError.swift index cc640ce3b9..f83859eec2 100644 --- a/Sources/Teco/Teo/V20220901/errors/TeoError.swift +++ b/Sources/Teco/Teo/V20220901/errors/TeoError.swift @@ -63,6 +63,7 @@ public struct TCTeoError: TCTeoErrorType { case invalidParameterValue_ZoneSameAsName = "InvalidParameterValue.ZoneSameAsName" case invalidParameter_ActionInProgress = "InvalidParameter.ActionInProgress" case invalidParameter_AliasDomainNotSupportSMCert = "InvalidParameter.AliasDomainNotSupportSMCert" + case invalidParameter_CacheKeyQueryStringRequiresFullUrlCacheOff = "InvalidParameter.CacheKeyQueryStringRequiresFullUrlCacheOff" case invalidParameter_CacheKeyQueryStringTooManyValue = "InvalidParameter.CacheKeyQueryStringTooManyValue" case invalidParameter_CertNotMatchDomain = "InvalidParameter.CertNotMatchDomain" case invalidParameter_CertSystemError = "InvalidParameter.CertSystemError" @@ -124,6 +125,7 @@ public struct TCTeoError: TCTeoErrorType { case invalidParameter_InvalidDynamicRoutineBilling = "InvalidParameter.InvalidDynamicRoutineBilling" case invalidParameter_InvalidErrorPage = "InvalidParameter.InvalidErrorPage" case invalidParameter_InvalidErrorPageRedirectUrl = "InvalidParameter.InvalidErrorPageRedirectUrl" + case invalidParameter_InvalidForceRedirectType = "InvalidParameter.InvalidForceRedirectType" case invalidParameter_InvalidHttps = "InvalidParameter.InvalidHttps" case invalidParameter_InvalidHttpsCertInfo = "InvalidParameter.InvalidHttpsCertInfo" case invalidParameter_InvalidHttpsCipherSuiteAndTlsVersion = "InvalidParameter.InvalidHttpsCipherSuiteAndTlsVersion" @@ -174,6 +176,7 @@ public struct TCTeoError: TCTeoErrorType { case invalidParameter_Target = "InvalidParameter.Target" case invalidParameter_TaskNotGenerated = "InvalidParameter.TaskNotGenerated" case invalidParameter_TaskSystemError = "InvalidParameter.TaskSystemError" + case invalidParameter_TooManyFilterValues = "InvalidParameter.TooManyFilterValues" case invalidParameter_UploadUrl = "InvalidParameter.UploadUrl" case invalidParameter_ZoneHasBeenBound = "InvalidParameter.ZoneHasBeenBound" case invalidParameter_ZoneIsGrayPublishing = "InvalidParameter.ZoneIsGrayPublishing" @@ -471,6 +474,11 @@ public struct TCTeoError: TCTeoErrorType { TCTeoError(.invalidParameter_AliasDomainNotSupportSMCert) } + /// 无效的查询字符串。 + public static var invalidParameter_CacheKeyQueryStringRequiresFullUrlCacheOff: TCTeoError { + TCTeoError(.invalidParameter_CacheKeyQueryStringRequiresFullUrlCacheOff) + } + /// 查询字符串规则超过了限制。 public static var invalidParameter_CacheKeyQueryStringTooManyValue: TCTeoError { TCTeoError(.invalidParameter_CacheKeyQueryStringTooManyValue) @@ -776,6 +784,11 @@ public struct TCTeoError: TCTeoErrorType { TCTeoError(.invalidParameter_InvalidErrorPageRedirectUrl) } + /// 无效的强制HTTPS跳转。 + public static var invalidParameter_InvalidForceRedirectType: TCTeoError { + TCTeoError(.invalidParameter_InvalidForceRedirectType) + } + /// 无效的HTTPS。 public static var invalidParameter_InvalidHttps: TCTeoError { TCTeoError(.invalidParameter_InvalidHttps) @@ -1023,6 +1036,11 @@ public struct TCTeoError: TCTeoErrorType { TCTeoError(.invalidParameter_TaskSystemError) } + /// 过滤值过多。 + public static var invalidParameter_TooManyFilterValues: TCTeoError { + TCTeoError(.invalidParameter_TooManyFilterValues) + } + /// 文件上传链接存在问题。 public static var invalidParameter_UploadUrl: TCTeoError { TCTeoError(.invalidParameter_UploadUrl) diff --git a/Sources/Teco/Tione/V20211111/errors/TioneError.InvalidParameterValue.swift b/Sources/Teco/Tione/V20211111/errors/TioneError.InvalidParameterValue.swift index 4afe7fe994..de29fb9030 100644 --- a/Sources/Teco/Tione/V20211111/errors/TioneError.InvalidParameterValue.swift +++ b/Sources/Teco/Tione/V20211111/errors/TioneError.InvalidParameterValue.swift @@ -40,6 +40,7 @@ extension TCTioneError { case lifecycleNotFound = "InvalidParameterValue.LifecycleNotFound" case limitExceeded = "InvalidParameterValue.LimitExceeded" case notAllow = "InvalidParameterValue.NotAllow" + case notAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup = "InvalidParameterValue.NotAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup" case notAllowedToCreateNotebookWithBareMetalResourceGroup = "InvalidParameterValue.NotAllowedToCreateNotebookWithBareMetalResourceGroup" case pageLimitExceeded = "InvalidParameterValue.PageLimitExceeded" case rdmaConfigIllegal = "InvalidParameterValue.RDMAConfigIllegal" @@ -187,6 +188,10 @@ extension TCTioneError { InvalidParameterValue(.notAllow) } + public static var notAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup: InvalidParameterValue { + InvalidParameterValue(.notAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup) + } + public static var notAllowedToCreateNotebookWithBareMetalResourceGroup: InvalidParameterValue { InvalidParameterValue(.notAllowedToCreateNotebookWithBareMetalResourceGroup) } @@ -274,6 +279,8 @@ extension TCTioneError { code = .invalidParameterValue_LimitExceeded case .notAllow: code = .invalidParameterValue_NotAllow + case .notAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup: + code = .invalidParameterValue_NotAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup case .notAllowedToCreateNotebookWithBareMetalResourceGroup: code = .invalidParameterValue_NotAllowedToCreateNotebookWithBareMetalResourceGroup case .pageLimitExceeded: diff --git a/Sources/Teco/Tione/V20211111/errors/TioneError.swift b/Sources/Teco/Tione/V20211111/errors/TioneError.swift index 8f11c25f97..74723f93f4 100644 --- a/Sources/Teco/Tione/V20211111/errors/TioneError.swift +++ b/Sources/Teco/Tione/V20211111/errors/TioneError.swift @@ -128,6 +128,7 @@ public struct TCTioneError: TCTioneErrorType { case invalidParameterValue_LifecycleNotFound = "InvalidParameterValue.LifecycleNotFound" case invalidParameterValue_LimitExceeded = "InvalidParameterValue.LimitExceeded" case invalidParameterValue_NotAllow = "InvalidParameterValue.NotAllow" + case invalidParameterValue_NotAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup = "InvalidParameterValue.NotAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup" case invalidParameterValue_NotAllowedToCreateNotebookWithBareMetalResourceGroup = "InvalidParameterValue.NotAllowedToCreateNotebookWithBareMetalResourceGroup" case invalidParameterValue_PageLimitExceeded = "InvalidParameterValue.PageLimitExceeded" case invalidParameterValue_RDMAConfigIllegal = "InvalidParameterValue.RDMAConfigIllegal" @@ -769,6 +770,10 @@ public struct TCTioneError: TCTioneErrorType { TCTioneError(.invalidParameterValue_NotAllow) } + public static var invalidParameterValue_NotAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup: TCTioneError { + TCTioneError(.invalidParameterValue_NotAllowedToCreateFreeVolumeNotebookWithBareMetalResourceGroup) + } + public static var invalidParameterValue_NotAllowedToCreateNotebookWithBareMetalResourceGroup: TCTioneError { TCTioneError(.invalidParameterValue_NotAllowedToCreateNotebookWithBareMetalResourceGroup) } diff --git a/Sources/Teco/Waf/V20180125/errors/WafError.InvalidParameter.swift b/Sources/Teco/Waf/V20180125/errors/WafError.InvalidParameter.swift index 1d26c1d19f..4e75c4d3dd 100644 --- a/Sources/Teco/Waf/V20180125/errors/WafError.InvalidParameter.swift +++ b/Sources/Teco/Waf/V20180125/errors/WafError.InvalidParameter.swift @@ -35,6 +35,7 @@ extension TCWafError { case unauthorizedOperationParameterErr = "InvalidParameter.UnauthorizedOperationParameterErr" case unknownAction = "InvalidParameter.UnknownAction" case upstreamParameterErr = "InvalidParameter.UpstreamParameterErr" + case xffResetParameterErr = "InvalidParameter.XFFResetParameterErr" case other = "InvalidParameter" } @@ -136,6 +137,11 @@ extension TCWafError { InvalidParameter(.upstreamParameterErr) } + /// 开启XFF重置时,代理情况必须选择“否” + public static var xffResetParameterErr: InvalidParameter { + InvalidParameter(.xffResetParameterErr) + } + /// 参数错误。 public static var other: InvalidParameter { InvalidParameter(.other) @@ -176,6 +182,8 @@ extension TCWafError { code = .invalidParameter_UnknownAction case .upstreamParameterErr: code = .invalidParameter_UpstreamParameterErr + case .xffResetParameterErr: + code = .invalidParameter_XFFResetParameterErr case .other: code = .invalidParameter } diff --git a/Sources/Teco/Waf/V20180125/errors/WafError.swift b/Sources/Teco/Waf/V20180125/errors/WafError.swift index 6c413eb524..6570540073 100644 --- a/Sources/Teco/Waf/V20180125/errors/WafError.swift +++ b/Sources/Teco/Waf/V20180125/errors/WafError.swift @@ -59,6 +59,7 @@ public struct TCWafError: TCWafErrorType { case invalidParameter_UnauthorizedOperationParameterErr = "InvalidParameter.UnauthorizedOperationParameterErr" case invalidParameter_UnknownAction = "InvalidParameter.UnknownAction" case invalidParameter_UpstreamParameterErr = "InvalidParameter.UpstreamParameterErr" + case invalidParameter_XFFResetParameterErr = "InvalidParameter.XFFResetParameterErr" case limitExceeded = "LimitExceeded" case limitExceeded_SpecificationErr = "LimitExceeded.SpecificationErr" case missingParameter = "MissingParameter" @@ -271,6 +272,11 @@ public struct TCWafError: TCWafErrorType { TCWafError(.invalidParameter_UpstreamParameterErr) } + /// 开启XFF重置时,代理情况必须选择“否” + public static var invalidParameter_XFFResetParameterErr: TCWafError { + TCWafError(.invalidParameter_XFFResetParameterErr) + } + /// 超过配额限制。 public static var limitExceeded: TCWafError { TCWafError(.limitExceeded)