1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5type DomainStatus string 6 7// Enum values for DomainStatus 8const ( 9 DomainStatusActive DomainStatus = "Active" 10 DomainStatusDeleted DomainStatus = "Deleted" 11) 12 13// Values returns all known values for DomainStatus. Note that this can be expanded 14// in the future, and so it is only as up to date as the client. The ordering of 15// this slice is not guaranteed to be stable across updates. 16func (DomainStatus) Values() []DomainStatus { 17 return []DomainStatus{ 18 "Active", 19 "Deleted", 20 } 21} 22 23type ExternalConnectionStatus string 24 25// Enum values for ExternalConnectionStatus 26const ( 27 ExternalConnectionStatusAvailable ExternalConnectionStatus = "Available" 28) 29 30// Values returns all known values for ExternalConnectionStatus. Note that this can 31// be expanded in the future, and so it is only as up to date as the client. The 32// ordering of this slice is not guaranteed to be stable across updates. 33func (ExternalConnectionStatus) Values() []ExternalConnectionStatus { 34 return []ExternalConnectionStatus{ 35 "Available", 36 } 37} 38 39type HashAlgorithm string 40 41// Enum values for HashAlgorithm 42const ( 43 HashAlgorithmMd5 HashAlgorithm = "MD5" 44 HashAlgorithmSha1 HashAlgorithm = "SHA-1" 45 HashAlgorithmSha256 HashAlgorithm = "SHA-256" 46 HashAlgorithmSha512 HashAlgorithm = "SHA-512" 47) 48 49// Values returns all known values for HashAlgorithm. Note that this can be 50// expanded in the future, and so it is only as up to date as the client. The 51// ordering of this slice is not guaranteed to be stable across updates. 52func (HashAlgorithm) Values() []HashAlgorithm { 53 return []HashAlgorithm{ 54 "MD5", 55 "SHA-1", 56 "SHA-256", 57 "SHA-512", 58 } 59} 60 61type PackageFormat string 62 63// Enum values for PackageFormat 64const ( 65 PackageFormatNpm PackageFormat = "npm" 66 PackageFormatPypi PackageFormat = "pypi" 67 PackageFormatMaven PackageFormat = "maven" 68 PackageFormatNuget PackageFormat = "nuget" 69) 70 71// Values returns all known values for PackageFormat. Note that this can be 72// expanded in the future, and so it is only as up to date as the client. The 73// ordering of this slice is not guaranteed to be stable across updates. 74func (PackageFormat) Values() []PackageFormat { 75 return []PackageFormat{ 76 "npm", 77 "pypi", 78 "maven", 79 "nuget", 80 } 81} 82 83type PackageVersionErrorCode string 84 85// Enum values for PackageVersionErrorCode 86const ( 87 PackageVersionErrorCodeAlreadyExists PackageVersionErrorCode = "ALREADY_EXISTS" 88 PackageVersionErrorCodeMismatchedRevision PackageVersionErrorCode = "MISMATCHED_REVISION" 89 PackageVersionErrorCodeMismatchedStatus PackageVersionErrorCode = "MISMATCHED_STATUS" 90 PackageVersionErrorCodeNotAllowed PackageVersionErrorCode = "NOT_ALLOWED" 91 PackageVersionErrorCodeNotFound PackageVersionErrorCode = "NOT_FOUND" 92 PackageVersionErrorCodeSkipped PackageVersionErrorCode = "SKIPPED" 93) 94 95// Values returns all known values for PackageVersionErrorCode. Note that this can 96// be expanded in the future, and so it is only as up to date as the client. The 97// ordering of this slice is not guaranteed to be stable across updates. 98func (PackageVersionErrorCode) Values() []PackageVersionErrorCode { 99 return []PackageVersionErrorCode{ 100 "ALREADY_EXISTS", 101 "MISMATCHED_REVISION", 102 "MISMATCHED_STATUS", 103 "NOT_ALLOWED", 104 "NOT_FOUND", 105 "SKIPPED", 106 } 107} 108 109type PackageVersionSortType string 110 111// Enum values for PackageVersionSortType 112const ( 113 PackageVersionSortTypePublishedTime PackageVersionSortType = "PUBLISHED_TIME" 114) 115 116// Values returns all known values for PackageVersionSortType. Note that this can 117// be expanded in the future, and so it is only as up to date as the client. The 118// ordering of this slice is not guaranteed to be stable across updates. 119func (PackageVersionSortType) Values() []PackageVersionSortType { 120 return []PackageVersionSortType{ 121 "PUBLISHED_TIME", 122 } 123} 124 125type PackageVersionStatus string 126 127// Enum values for PackageVersionStatus 128const ( 129 PackageVersionStatusPublished PackageVersionStatus = "Published" 130 PackageVersionStatusUnfinished PackageVersionStatus = "Unfinished" 131 PackageVersionStatusUnlisted PackageVersionStatus = "Unlisted" 132 PackageVersionStatusArchived PackageVersionStatus = "Archived" 133 PackageVersionStatusDisposed PackageVersionStatus = "Disposed" 134 PackageVersionStatusDeleted PackageVersionStatus = "Deleted" 135) 136 137// Values returns all known values for PackageVersionStatus. Note that this can be 138// expanded in the future, and so it is only as up to date as the client. The 139// ordering of this slice is not guaranteed to be stable across updates. 140func (PackageVersionStatus) Values() []PackageVersionStatus { 141 return []PackageVersionStatus{ 142 "Published", 143 "Unfinished", 144 "Unlisted", 145 "Archived", 146 "Disposed", 147 "Deleted", 148 } 149} 150 151type ResourceType string 152 153// Enum values for ResourceType 154const ( 155 ResourceTypeDomain ResourceType = "domain" 156 ResourceTypeRepository ResourceType = "repository" 157 ResourceTypePackage ResourceType = "package" 158 ResourceTypePackageVersion ResourceType = "package-version" 159 ResourceTypeAsset ResourceType = "asset" 160) 161 162// Values returns all known values for ResourceType. Note that this can be expanded 163// in the future, and so it is only as up to date as the client. The ordering of 164// this slice is not guaranteed to be stable across updates. 165func (ResourceType) Values() []ResourceType { 166 return []ResourceType{ 167 "domain", 168 "repository", 169 "package", 170 "package-version", 171 "asset", 172 } 173} 174 175type ValidationExceptionReason string 176 177// Enum values for ValidationExceptionReason 178const ( 179 ValidationExceptionReasonCannotParse ValidationExceptionReason = "CANNOT_PARSE" 180 ValidationExceptionReasonEncryptionKeyError ValidationExceptionReason = "ENCRYPTION_KEY_ERROR" 181 ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED" 182 ValidationExceptionReasonUnknownOperation ValidationExceptionReason = "UNKNOWN_OPERATION" 183 ValidationExceptionReasonOther ValidationExceptionReason = "OTHER" 184) 185 186// Values returns all known values for ValidationExceptionReason. Note that this 187// can be expanded in the future, and so it is only as up to date as the client. 188// The ordering of this slice is not guaranteed to be stable across updates. 189func (ValidationExceptionReason) Values() []ValidationExceptionReason { 190 return []ValidationExceptionReason{ 191 "CANNOT_PARSE", 192 "ENCRYPTION_KEY_ERROR", 193 "FIELD_VALIDATION_FAILED", 194 "UNKNOWN_OPERATION", 195 "OTHER", 196 } 197} 198