diff --git a/accounts/aliases.go b/accounts/aliases.go index e0630f65ae8..7f3e80badb8 100644 --- a/accounts/aliases.go +++ b/accounts/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/acm/aliases.go b/acm/aliases.go index c36c79964de..4311264a107 100644 --- a/acm/aliases.go +++ b/acm/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/addressing/aliases.go b/addressing/aliases.go index 37eb52652e3..2e8c26ece32 100644 --- a/addressing/aliases.go +++ b/addressing/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/ai_gateway/aliases.go b/ai_gateway/aliases.go index e06ca58e441..532fac2cb69 100644 --- a/ai_gateway/aliases.go +++ b/ai_gateway/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/alerting/aliases.go b/alerting/aliases.go index 9a20229c698..dea3ad5ce2a 100644 --- a/alerting/aliases.go +++ b/alerting/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/aliases.go b/aliases.go index 489c05ebc9d..8ea4581af80 100644 --- a/aliases.go +++ b/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/api.md b/api.md index cff785dd6f1..2cc0c5ce4b8 100644 --- a/api.md +++ b/api.md @@ -1,6 +1,7 @@ # Shared Params Types - shared.ASNParam +- shared.CertificateCA - shared.CertificateRequestType - shared.MemberParam - shared.PermissionGrantParam @@ -9,6 +10,7 @@ - shared.ASN - shared.AuditLog +- shared.CertificateCA - shared.CertificateRequestType - shared.CloudflareTunnel - shared.ErrorData @@ -945,7 +947,9 @@ Params Types: - load_balancers.OriginSteeringParam - load_balancers.RandomSteeringParam - load_balancers.RulesParam +- load_balancers.SessionAffinity - load_balancers.SessionAffinityAttributesParam +- load_balancers.SteeringPolicy Response Types: @@ -963,7 +967,9 @@ Response Types: - load_balancers.OriginSteering - load_balancers.RandomSteering - load_balancers.Rules +- load_balancers.SessionAffinity - load_balancers.SessionAffinityAttributes +- load_balancers.SteeringPolicy - load_balancers.LoadBalancerDeleteResponse Methods: @@ -1167,13 +1173,11 @@ Methods: Params Types: -- ssl.CertificateAuthority - ssl.HostParam - ssl.RequestValidity Response Types: -- ssl.CertificateAuthority - ssl.Host - ssl.RequestValidity - ssl.Status diff --git a/argo/aliases.go b/argo/aliases.go index 3ac831eeeae..6209f47c245 100644 --- a/argo/aliases.go +++ b/argo/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/audit_logs/aliases.go b/audit_logs/aliases.go index 371253e1b23..957c68c3dce 100644 --- a/audit_logs/aliases.go +++ b/audit_logs/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/billing/aliases.go b/billing/aliases.go index 88af6f85afe..3821bf55fae 100644 --- a/billing/aliases.go +++ b/billing/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/bot_management/aliases.go b/bot_management/aliases.go index b6e2f73628f..3409c87fb63 100644 --- a/bot_management/aliases.go +++ b/bot_management/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/brand_protection/aliases.go b/brand_protection/aliases.go index c1059d9c354..5ae140bfcf2 100644 --- a/brand_protection/aliases.go +++ b/brand_protection/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/cache/aliases.go b/cache/aliases.go index 9acedec7bb1..78f320d929e 100644 --- a/cache/aliases.go +++ b/cache/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/calls/aliases.go b/calls/aliases.go index e8cbbfebfe1..67b5f822c29 100644 --- a/calls/aliases.go +++ b/calls/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/certificate_authorities/aliases.go b/certificate_authorities/aliases.go index db09fb817bf..c3a0c28b270 100644 --- a/certificate_authorities/aliases.go +++ b/certificate_authorities/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/challenges/aliases.go b/challenges/aliases.go index ea84602e5ef..cc401bcd772 100644 --- a/challenges/aliases.go +++ b/challenges/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/client_certificates/aliases.go b/client_certificates/aliases.go index 92c0c04b41b..3a2219f249c 100644 --- a/client_certificates/aliases.go +++ b/client_certificates/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/cloudforce_one/aliases.go b/cloudforce_one/aliases.go index 84245903e41..11fae414799 100644 --- a/cloudforce_one/aliases.go +++ b/cloudforce_one/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/custom_certificates/aliases.go b/custom_certificates/aliases.go index 42424dd887d..d006093ba98 100644 --- a/custom_certificates/aliases.go +++ b/custom_certificates/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/custom_hostnames/aliases.go b/custom_hostnames/aliases.go index 790bd9ffb5a..c66c380873c 100644 --- a/custom_hostnames/aliases.go +++ b/custom_hostnames/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/custom_hostnames/customhostname.go b/custom_hostnames/customhostname.go index ec1d8d8f81a..34bb210d720 100644 --- a/custom_hostnames/customhostname.go +++ b/custom_hostnames/customhostname.go @@ -16,7 +16,6 @@ import ( "github.com/cloudflare/cloudflare-go/v2/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v2/option" "github.com/cloudflare/cloudflare-go/v2/shared" - "github.com/cloudflare/cloudflare-go/v2/ssl" ) // CustomHostnameService contains methods and other services that help with @@ -239,7 +238,7 @@ type CustomHostnameNewResponseSSL struct { // chain, but does not otherwise modify it. BundleMethod BundleMethod `json:"bundle_method"` // The Certificate Authority that will issue the certificate - CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"` + CertificateAuthority shared.CertificateCA `json:"certificate_authority"` // If a custom uploaded certificate is used. CustomCertificate string `json:"custom_certificate"` // The identifier for the Custom CSR that was used. @@ -701,7 +700,7 @@ type CustomHostnameListResponseSSL struct { // chain, but does not otherwise modify it. BundleMethod BundleMethod `json:"bundle_method"` // The Certificate Authority that will issue the certificate - CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"` + CertificateAuthority shared.CertificateCA `json:"certificate_authority"` // If a custom uploaded certificate is used. CustomCertificate string `json:"custom_certificate"` // The identifier for the Custom CSR that was used. @@ -1185,7 +1184,7 @@ type CustomHostnameEditResponseSSL struct { // chain, but does not otherwise modify it. BundleMethod BundleMethod `json:"bundle_method"` // The Certificate Authority that will issue the certificate - CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"` + CertificateAuthority shared.CertificateCA `json:"certificate_authority"` // If a custom uploaded certificate is used. CustomCertificate string `json:"custom_certificate"` // The identifier for the Custom CSR that was used. @@ -1647,7 +1646,7 @@ type CustomHostnameGetResponseSSL struct { // chain, but does not otherwise modify it. BundleMethod BundleMethod `json:"bundle_method"` // The Certificate Authority that will issue the certificate - CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"` + CertificateAuthority shared.CertificateCA `json:"certificate_authority"` // If a custom uploaded certificate is used. CustomCertificate string `json:"custom_certificate"` // The identifier for the Custom CSR that was used. @@ -2064,7 +2063,7 @@ type CustomHostnameNewParamsSSL struct { // chain, but does not otherwise modify it. BundleMethod param.Field[BundleMethod] `json:"bundle_method"` // The Certificate Authority that will issue the certificate - CertificateAuthority param.Field[ssl.CertificateAuthority] `json:"certificate_authority"` + CertificateAuthority param.Field[shared.CertificateCA] `json:"certificate_authority"` // If a custom uploaded certificate is used. CustomCertificate param.Field[string] `json:"custom_certificate"` // The key for a custom uploaded certificate. @@ -2346,7 +2345,7 @@ type CustomHostnameEditParamsSSL struct { // chain, but does not otherwise modify it. BundleMethod param.Field[BundleMethod] `json:"bundle_method"` // The Certificate Authority that will issue the certificate - CertificateAuthority param.Field[ssl.CertificateAuthority] `json:"certificate_authority"` + CertificateAuthority param.Field[shared.CertificateCA] `json:"certificate_authority"` // If a custom uploaded certificate is used. CustomCertificate param.Field[string] `json:"custom_certificate"` // The key for a custom uploaded certificate. diff --git a/custom_hostnames/customhostname_test.go b/custom_hostnames/customhostname_test.go index e76d1c95be1..0b826e623c1 100644 --- a/custom_hostnames/customhostname_test.go +++ b/custom_hostnames/customhostname_test.go @@ -12,7 +12,7 @@ import ( "github.com/cloudflare/cloudflare-go/v2/custom_hostnames" "github.com/cloudflare/cloudflare-go/v2/internal/testutil" "github.com/cloudflare/cloudflare-go/v2/option" - "github.com/cloudflare/cloudflare-go/v2/ssl" + "github.com/cloudflare/cloudflare-go/v2/shared" ) func TestCustomHostnameNewWithOptionalParams(t *testing.T) { @@ -33,7 +33,7 @@ func TestCustomHostnameNewWithOptionalParams(t *testing.T) { Hostname: cloudflare.F("app.example.com"), SSL: cloudflare.F(custom_hostnames.CustomHostnameNewParamsSSL{ BundleMethod: cloudflare.F(custom_hostnames.BundleMethodUbiquitous), - CertificateAuthority: cloudflare.F(ssl.CertificateAuthorityGoogle), + CertificateAuthority: cloudflare.F(shared.CertificateCAGoogle), CustomCertificate: cloudflare.F("-----BEGIN CERTIFICATE-----\\nMIIFJDCCBAygAwIBAgIQD0ifmj/Yi5NP/2gdUySbfzANBgkqhkiG9w0BAQsFADBN\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E...SzSHfXp5lnu/3V08I72q1QNzOCgY1XeL4GKVcj4or6cT6tX6oJH7ePPmfrBfqI/O\\nOeH8gMJ+FuwtXYEPa4hBf38M5eU5xWG7\\n-----END CERTIFICATE-----\\n"), CustomKey: cloudflare.F("-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n"), Method: cloudflare.F(custom_hostnames.DCVMethodHTTP), @@ -146,7 +146,7 @@ func TestCustomHostnameEditWithOptionalParams(t *testing.T) { CustomOriginSNI: cloudflare.F("sni.example.com"), SSL: cloudflare.F(custom_hostnames.CustomHostnameEditParamsSSL{ BundleMethod: cloudflare.F(custom_hostnames.BundleMethodUbiquitous), - CertificateAuthority: cloudflare.F(ssl.CertificateAuthorityGoogle), + CertificateAuthority: cloudflare.F(shared.CertificateCAGoogle), CustomCertificate: cloudflare.F("-----BEGIN CERTIFICATE-----\\nMIIFJDCCBAygAwIBAgIQD0ifmj/Yi5NP/2gdUySbfzANBgkqhkiG9w0BAQsFADBN\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E...SzSHfXp5lnu/3V08I72q1QNzOCgY1XeL4GKVcj4or6cT6tX6oJH7ePPmfrBfqI/O\\nOeH8gMJ+FuwtXYEPa4hBf38M5eU5xWG7\\n-----END CERTIFICATE-----\\n"), CustomKey: cloudflare.F("-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n"), Method: cloudflare.F(custom_hostnames.DCVMethodHTTP), diff --git a/custom_nameservers/aliases.go b/custom_nameservers/aliases.go index 8ceeb9ddba1..6e5ebe57749 100644 --- a/custom_nameservers/aliases.go +++ b/custom_nameservers/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/d1/aliases.go b/d1/aliases.go index d9aee8da18e..e7a05b3d353 100644 --- a/d1/aliases.go +++ b/d1/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/dcv_delegation/aliases.go b/dcv_delegation/aliases.go index 7e6ae296c36..6a35c890de6 100644 --- a/dcv_delegation/aliases.go +++ b/dcv_delegation/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/diagnostics/aliases.go b/diagnostics/aliases.go index 60ad2711b1f..d52618cace6 100644 --- a/diagnostics/aliases.go +++ b/diagnostics/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/dns/aliases.go b/dns/aliases.go index e388b005ea2..12d84b1ba10 100644 --- a/dns/aliases.go +++ b/dns/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/dnssec/aliases.go b/dnssec/aliases.go index 71cc2f4f573..f42ce38172e 100644 --- a/dnssec/aliases.go +++ b/dnssec/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/durable_objects/aliases.go b/durable_objects/aliases.go index 1d11ccb5e3f..016f5b3d7ce 100644 --- a/durable_objects/aliases.go +++ b/durable_objects/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/email_routing/aliases.go b/email_routing/aliases.go index 05f9bd75dcf..8c3853bb988 100644 --- a/email_routing/aliases.go +++ b/email_routing/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/event_notifications/aliases.go b/event_notifications/aliases.go index 43e0cd35b04..34a7d1a7520 100644 --- a/event_notifications/aliases.go +++ b/event_notifications/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/filters/aliases.go b/filters/aliases.go index 6310e871810..811c09e9cc8 100644 --- a/filters/aliases.go +++ b/filters/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/firewall/aliases.go b/firewall/aliases.go index 3564a555d6b..14680d77726 100644 --- a/firewall/aliases.go +++ b/firewall/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/healthchecks/aliases.go b/healthchecks/aliases.go index 9c1c3c06db6..ef5a7814291 100644 --- a/healthchecks/aliases.go +++ b/healthchecks/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/hostnames/aliases.go b/hostnames/aliases.go index d8592a32bf0..d085b9acd8b 100644 --- a/hostnames/aliases.go +++ b/hostnames/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/hyperdrive/aliases.go b/hyperdrive/aliases.go index ce0c91b4d86..8cba2ae9142 100644 --- a/hyperdrive/aliases.go +++ b/hyperdrive/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/images/aliases.go b/images/aliases.go index 716703519fe..38f71907d80 100644 --- a/images/aliases.go +++ b/images/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/intel/aliases.go b/intel/aliases.go index 823f6e91d7d..0011e18c5df 100644 --- a/intel/aliases.go +++ b/intel/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/ips/aliases.go b/ips/aliases.go index 9b4fd25d877..14be9f9db7e 100644 --- a/ips/aliases.go +++ b/ips/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/keyless_certificates/aliases.go b/keyless_certificates/aliases.go index 92e30e81369..44c1fd223e8 100644 --- a/keyless_certificates/aliases.go +++ b/keyless_certificates/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/kv/aliases.go b/kv/aliases.go index cbded865a13..7dfac369062 100644 --- a/kv/aliases.go +++ b/kv/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/load_balancers/aliases.go b/load_balancers/aliases.go index 90cb5f3637c..233d856f7f8 100644 --- a/load_balancers/aliases.go +++ b/load_balancers/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/load_balancers/loadbalancer.go b/load_balancers/loadbalancer.go index e8e72e1f4ce..9a41ad3bba4 100644 --- a/load_balancers/loadbalancer.go +++ b/load_balancers/loadbalancer.go @@ -379,7 +379,7 @@ type LoadBalancer struct { // server is unhealthy, then a new origin server is calculated and used. See // `headers` in `session_affinity_attributes` for additional required // configuration. - SessionAffinity LoadBalancerSessionAffinity `json:"session_affinity"` + SessionAffinity SessionAffinity `json:"session_affinity"` // Configures attributes for session affinity. SessionAffinityAttributes SessionAffinityAttributes `json:"session_affinity_attributes"` // Time, in seconds, until a client's session expires after being created. Once the @@ -415,7 +415,7 @@ type LoadBalancer struct { // others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use // `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. - SteeringPolicy LoadBalancerSteeringPolicy `json:"steering_policy"` + SteeringPolicy SteeringPolicy `json:"steering_policy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load // balancer. This only applies to gray-clouded (unproxied) load balancers. TTL float64 `json:"ttl"` @@ -457,90 +457,6 @@ func (r loadBalancerJSON) RawJSON() string { return r.raw } -// Specifies the type of session affinity the load balancer should use unless -// specified as `"none"` or "" (default). The supported types are: -// -// - `"cookie"`: On the first request to a proxied load balancer, a cookie is -// generated, encoding information of which origin the request will be forwarded -// to. Subsequent requests, by the same client to the same load balancer, will be -// sent to the origin server the cookie encodes, for the duration of the cookie -// and as long as the origin server remains healthy. If the cookie has expired or -// the origin server is unhealthy, then a new origin server is calculated and -// used. -// - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin -// selection is stable and based on the client's ip address. -// - `"header"`: On the first request to a proxied load balancer, a session key -// based on the configured HTTP headers (see -// `session_affinity_attributes.headers`) is generated, encoding the request -// headers used for storing in the load balancer session state which origin the -// request will be forwarded to. Subsequent requests to the load balancer with -// the same headers will be sent to the same origin server, for the duration of -// the session and as long as the origin server remains healthy. If the session -// has been idle for the duration of `session_affinity_ttl` seconds or the origin -// server is unhealthy, then a new origin server is calculated and used. See -// `headers` in `session_affinity_attributes` for additional required -// configuration. -type LoadBalancerSessionAffinity string - -const ( - LoadBalancerSessionAffinityNone LoadBalancerSessionAffinity = "none" - LoadBalancerSessionAffinityCookie LoadBalancerSessionAffinity = "cookie" - LoadBalancerSessionAffinityIPCookie LoadBalancerSessionAffinity = "ip_cookie" - LoadBalancerSessionAffinityHeader LoadBalancerSessionAffinity = "header" - LoadBalancerSessionAffinityEmpty LoadBalancerSessionAffinity = "\"\"" -) - -func (r LoadBalancerSessionAffinity) IsKnown() bool { - switch r { - case LoadBalancerSessionAffinityNone, LoadBalancerSessionAffinityCookie, LoadBalancerSessionAffinityIPCookie, LoadBalancerSessionAffinityHeader, LoadBalancerSessionAffinityEmpty: - return true - } - return false -} - -// Steering Policy for this load balancer. -// -// - `"off"`: Use `default_pools`. -// - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied -// requests, the country for `country_pools` is determined by -// `location_strategy`. -// - `"random"`: Select a pool randomly. -// - `"dynamic_latency"`: Use round trip time to select the closest pool in -// default_pools (requires pool health checks). -// - `"proximity"`: Use the pools' latitude and longitude to select the closest -// pool using the Cloudflare PoP location for proxied requests or the location -// determined by `location_strategy` for non-proxied requests. -// - `"least_outstanding_requests"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of outstanding -// requests. Pools with more pending requests are weighted proportionately less -// relative to others. -// - `"least_connections"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of open connections. -// Pools with more open connections are weighted proportionately less relative to -// others. Supported for HTTP/1 and HTTP/2 connections. -// - `""`: Will map to `"geo"` if you use -// `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. -type LoadBalancerSteeringPolicy string - -const ( - LoadBalancerSteeringPolicyOff LoadBalancerSteeringPolicy = "off" - LoadBalancerSteeringPolicyGeo LoadBalancerSteeringPolicy = "geo" - LoadBalancerSteeringPolicyRandom LoadBalancerSteeringPolicy = "random" - LoadBalancerSteeringPolicyDynamicLatency LoadBalancerSteeringPolicy = "dynamic_latency" - LoadBalancerSteeringPolicyProximity LoadBalancerSteeringPolicy = "proximity" - LoadBalancerSteeringPolicyLeastOutstandingRequests LoadBalancerSteeringPolicy = "least_outstanding_requests" - LoadBalancerSteeringPolicyLeastConnections LoadBalancerSteeringPolicy = "least_connections" - LoadBalancerSteeringPolicyEmpty LoadBalancerSteeringPolicy = "\"\"" -) - -func (r LoadBalancerSteeringPolicy) IsKnown() bool { - switch r { - case LoadBalancerSteeringPolicyOff, LoadBalancerSteeringPolicyGeo, LoadBalancerSteeringPolicyRandom, LoadBalancerSteeringPolicyDynamicLatency, LoadBalancerSteeringPolicyProximity, LoadBalancerSteeringPolicyLeastOutstandingRequests, LoadBalancerSteeringPolicyLeastConnections, LoadBalancerSteeringPolicyEmpty: - return true - } - return false -} - // Configures load shedding policies and percentages for the pool. type LoadShedding struct { // The percent of traffic to shed from the pool, according to the default policy. @@ -1166,7 +1082,7 @@ type RulesOverrides struct { // server is unhealthy, then a new origin server is calculated and used. See // `headers` in `session_affinity_attributes` for additional required // configuration. - SessionAffinity RulesOverridesSessionAffinity `json:"session_affinity"` + SessionAffinity SessionAffinity `json:"session_affinity"` // Configures attributes for session affinity. SessionAffinityAttributes SessionAffinityAttributes `json:"session_affinity_attributes"` // Time, in seconds, until a client's session expires after being created. Once the @@ -1202,7 +1118,7 @@ type RulesOverrides struct { // others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use // `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. - SteeringPolicy RulesOverridesSteeringPolicy `json:"steering_policy"` + SteeringPolicy SteeringPolicy `json:"steering_policy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load // balancer. This only applies to gray-clouded (unproxied) load balancers. TTL float64 `json:"ttl"` @@ -1236,90 +1152,6 @@ func (r rulesOverridesJSON) RawJSON() string { return r.raw } -// Specifies the type of session affinity the load balancer should use unless -// specified as `"none"` or "" (default). The supported types are: -// -// - `"cookie"`: On the first request to a proxied load balancer, a cookie is -// generated, encoding information of which origin the request will be forwarded -// to. Subsequent requests, by the same client to the same load balancer, will be -// sent to the origin server the cookie encodes, for the duration of the cookie -// and as long as the origin server remains healthy. If the cookie has expired or -// the origin server is unhealthy, then a new origin server is calculated and -// used. -// - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin -// selection is stable and based on the client's ip address. -// - `"header"`: On the first request to a proxied load balancer, a session key -// based on the configured HTTP headers (see -// `session_affinity_attributes.headers`) is generated, encoding the request -// headers used for storing in the load balancer session state which origin the -// request will be forwarded to. Subsequent requests to the load balancer with -// the same headers will be sent to the same origin server, for the duration of -// the session and as long as the origin server remains healthy. If the session -// has been idle for the duration of `session_affinity_ttl` seconds or the origin -// server is unhealthy, then a new origin server is calculated and used. See -// `headers` in `session_affinity_attributes` for additional required -// configuration. -type RulesOverridesSessionAffinity string - -const ( - RulesOverridesSessionAffinityNone RulesOverridesSessionAffinity = "none" - RulesOverridesSessionAffinityCookie RulesOverridesSessionAffinity = "cookie" - RulesOverridesSessionAffinityIPCookie RulesOverridesSessionAffinity = "ip_cookie" - RulesOverridesSessionAffinityHeader RulesOverridesSessionAffinity = "header" - RulesOverridesSessionAffinityEmpty RulesOverridesSessionAffinity = "\"\"" -) - -func (r RulesOverridesSessionAffinity) IsKnown() bool { - switch r { - case RulesOverridesSessionAffinityNone, RulesOverridesSessionAffinityCookie, RulesOverridesSessionAffinityIPCookie, RulesOverridesSessionAffinityHeader, RulesOverridesSessionAffinityEmpty: - return true - } - return false -} - -// Steering Policy for this load balancer. -// -// - `"off"`: Use `default_pools`. -// - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied -// requests, the country for `country_pools` is determined by -// `location_strategy`. -// - `"random"`: Select a pool randomly. -// - `"dynamic_latency"`: Use round trip time to select the closest pool in -// default_pools (requires pool health checks). -// - `"proximity"`: Use the pools' latitude and longitude to select the closest -// pool using the Cloudflare PoP location for proxied requests or the location -// determined by `location_strategy` for non-proxied requests. -// - `"least_outstanding_requests"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of outstanding -// requests. Pools with more pending requests are weighted proportionately less -// relative to others. -// - `"least_connections"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of open connections. -// Pools with more open connections are weighted proportionately less relative to -// others. Supported for HTTP/1 and HTTP/2 connections. -// - `""`: Will map to `"geo"` if you use -// `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. -type RulesOverridesSteeringPolicy string - -const ( - RulesOverridesSteeringPolicyOff RulesOverridesSteeringPolicy = "off" - RulesOverridesSteeringPolicyGeo RulesOverridesSteeringPolicy = "geo" - RulesOverridesSteeringPolicyRandom RulesOverridesSteeringPolicy = "random" - RulesOverridesSteeringPolicyDynamicLatency RulesOverridesSteeringPolicy = "dynamic_latency" - RulesOverridesSteeringPolicyProximity RulesOverridesSteeringPolicy = "proximity" - RulesOverridesSteeringPolicyLeastOutstandingRequests RulesOverridesSteeringPolicy = "least_outstanding_requests" - RulesOverridesSteeringPolicyLeastConnections RulesOverridesSteeringPolicy = "least_connections" - RulesOverridesSteeringPolicyEmpty RulesOverridesSteeringPolicy = "\"\"" -) - -func (r RulesOverridesSteeringPolicy) IsKnown() bool { - switch r { - case RulesOverridesSteeringPolicyOff, RulesOverridesSteeringPolicyGeo, RulesOverridesSteeringPolicyRandom, RulesOverridesSteeringPolicyDynamicLatency, RulesOverridesSteeringPolicyProximity, RulesOverridesSteeringPolicyLeastOutstandingRequests, RulesOverridesSteeringPolicyLeastConnections, RulesOverridesSteeringPolicyEmpty: - return true - } - return false -} - // A rule object containing conditions and overrides for this load balancer to // evaluate. type RulesParam struct { @@ -1436,7 +1268,7 @@ type RulesOverridesParam struct { // server is unhealthy, then a new origin server is calculated and used. See // `headers` in `session_affinity_attributes` for additional required // configuration. - SessionAffinity param.Field[RulesOverridesSessionAffinity] `json:"session_affinity"` + SessionAffinity param.Field[SessionAffinity] `json:"session_affinity"` // Configures attributes for session affinity. SessionAffinityAttributes param.Field[SessionAffinityAttributesParam] `json:"session_affinity_attributes"` // Time, in seconds, until a client's session expires after being created. Once the @@ -1472,7 +1304,7 @@ type RulesOverridesParam struct { // others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use // `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. - SteeringPolicy param.Field[RulesOverridesSteeringPolicy] `json:"steering_policy"` + SteeringPolicy param.Field[SteeringPolicy] `json:"steering_policy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load // balancer. This only applies to gray-clouded (unproxied) load balancers. TTL param.Field[float64] `json:"ttl"` @@ -1482,6 +1314,47 @@ func (r RulesOverridesParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } +// Specifies the type of session affinity the load balancer should use unless +// specified as `"none"` or "" (default). The supported types are: +// +// - `"cookie"`: On the first request to a proxied load balancer, a cookie is +// generated, encoding information of which origin the request will be forwarded +// to. Subsequent requests, by the same client to the same load balancer, will be +// sent to the origin server the cookie encodes, for the duration of the cookie +// and as long as the origin server remains healthy. If the cookie has expired or +// the origin server is unhealthy, then a new origin server is calculated and +// used. +// - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin +// selection is stable and based on the client's ip address. +// - `"header"`: On the first request to a proxied load balancer, a session key +// based on the configured HTTP headers (see +// `session_affinity_attributes.headers`) is generated, encoding the request +// headers used for storing in the load balancer session state which origin the +// request will be forwarded to. Subsequent requests to the load balancer with +// the same headers will be sent to the same origin server, for the duration of +// the session and as long as the origin server remains healthy. If the session +// has been idle for the duration of `session_affinity_ttl` seconds or the origin +// server is unhealthy, then a new origin server is calculated and used. See +// `headers` in `session_affinity_attributes` for additional required +// configuration. +type SessionAffinity string + +const ( + SessionAffinityNone SessionAffinity = "none" + SessionAffinityCookie SessionAffinity = "cookie" + SessionAffinityIPCookie SessionAffinity = "ip_cookie" + SessionAffinityHeader SessionAffinity = "header" + SessionAffinityEmpty SessionAffinity = "\"\"" +) + +func (r SessionAffinity) IsKnown() bool { + switch r { + case SessionAffinityNone, SessionAffinityCookie, SessionAffinityIPCookie, SessionAffinityHeader, SessionAffinityEmpty: + return true + } + return false +} + // Configures attributes for session affinity. type SessionAffinityAttributes struct { // Configures the drain duration in seconds. This field is only used when session @@ -1671,6 +1544,49 @@ func (r SessionAffinityAttributesParam) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } +// Steering Policy for this load balancer. +// +// - `"off"`: Use `default_pools`. +// - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied +// requests, the country for `country_pools` is determined by +// `location_strategy`. +// - `"random"`: Select a pool randomly. +// - `"dynamic_latency"`: Use round trip time to select the closest pool in +// default_pools (requires pool health checks). +// - `"proximity"`: Use the pools' latitude and longitude to select the closest +// pool using the Cloudflare PoP location for proxied requests or the location +// determined by `location_strategy` for non-proxied requests. +// - `"least_outstanding_requests"`: Select a pool by taking into consideration +// `random_steering` weights, as well as each pool's number of outstanding +// requests. Pools with more pending requests are weighted proportionately less +// relative to others. +// - `"least_connections"`: Select a pool by taking into consideration +// `random_steering` weights, as well as each pool's number of open connections. +// Pools with more open connections are weighted proportionately less relative to +// others. Supported for HTTP/1 and HTTP/2 connections. +// - `""`: Will map to `"geo"` if you use +// `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. +type SteeringPolicy string + +const ( + SteeringPolicyOff SteeringPolicy = "off" + SteeringPolicyGeo SteeringPolicy = "geo" + SteeringPolicyRandom SteeringPolicy = "random" + SteeringPolicyDynamicLatency SteeringPolicy = "dynamic_latency" + SteeringPolicyProximity SteeringPolicy = "proximity" + SteeringPolicyLeastOutstandingRequests SteeringPolicy = "least_outstanding_requests" + SteeringPolicyLeastConnections SteeringPolicy = "least_connections" + SteeringPolicyEmpty SteeringPolicy = "\"\"" +) + +func (r SteeringPolicy) IsKnown() bool { + switch r { + case SteeringPolicyOff, SteeringPolicyGeo, SteeringPolicyRandom, SteeringPolicyDynamicLatency, SteeringPolicyProximity, SteeringPolicyLeastOutstandingRequests, SteeringPolicyLeastConnections, SteeringPolicyEmpty: + return true + } + return false +} + type LoadBalancerDeleteResponse struct { ID string `json:"id"` JSON loadBalancerDeleteResponseJSON `json:"-"` @@ -1766,7 +1682,7 @@ type LoadBalancerNewParams struct { // server is unhealthy, then a new origin server is calculated and used. See // `headers` in `session_affinity_attributes` for additional required // configuration. - SessionAffinity param.Field[LoadBalancerNewParamsSessionAffinity] `json:"session_affinity"` + SessionAffinity param.Field[SessionAffinity] `json:"session_affinity"` // Configures attributes for session affinity. SessionAffinityAttributes param.Field[SessionAffinityAttributesParam] `json:"session_affinity_attributes"` // Time, in seconds, until a client's session expires after being created. Once the @@ -1802,7 +1718,7 @@ type LoadBalancerNewParams struct { // others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use // `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. - SteeringPolicy param.Field[LoadBalancerNewParamsSteeringPolicy] `json:"steering_policy"` + SteeringPolicy param.Field[SteeringPolicy] `json:"steering_policy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load // balancer. This only applies to gray-clouded (unproxied) load balancers. TTL param.Field[float64] `json:"ttl"` @@ -1812,90 +1728,6 @@ func (r LoadBalancerNewParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Specifies the type of session affinity the load balancer should use unless -// specified as `"none"` or "" (default). The supported types are: -// -// - `"cookie"`: On the first request to a proxied load balancer, a cookie is -// generated, encoding information of which origin the request will be forwarded -// to. Subsequent requests, by the same client to the same load balancer, will be -// sent to the origin server the cookie encodes, for the duration of the cookie -// and as long as the origin server remains healthy. If the cookie has expired or -// the origin server is unhealthy, then a new origin server is calculated and -// used. -// - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin -// selection is stable and based on the client's ip address. -// - `"header"`: On the first request to a proxied load balancer, a session key -// based on the configured HTTP headers (see -// `session_affinity_attributes.headers`) is generated, encoding the request -// headers used for storing in the load balancer session state which origin the -// request will be forwarded to. Subsequent requests to the load balancer with -// the same headers will be sent to the same origin server, for the duration of -// the session and as long as the origin server remains healthy. If the session -// has been idle for the duration of `session_affinity_ttl` seconds or the origin -// server is unhealthy, then a new origin server is calculated and used. See -// `headers` in `session_affinity_attributes` for additional required -// configuration. -type LoadBalancerNewParamsSessionAffinity string - -const ( - LoadBalancerNewParamsSessionAffinityNone LoadBalancerNewParamsSessionAffinity = "none" - LoadBalancerNewParamsSessionAffinityCookie LoadBalancerNewParamsSessionAffinity = "cookie" - LoadBalancerNewParamsSessionAffinityIPCookie LoadBalancerNewParamsSessionAffinity = "ip_cookie" - LoadBalancerNewParamsSessionAffinityHeader LoadBalancerNewParamsSessionAffinity = "header" - LoadBalancerNewParamsSessionAffinityEmpty LoadBalancerNewParamsSessionAffinity = "\"\"" -) - -func (r LoadBalancerNewParamsSessionAffinity) IsKnown() bool { - switch r { - case LoadBalancerNewParamsSessionAffinityNone, LoadBalancerNewParamsSessionAffinityCookie, LoadBalancerNewParamsSessionAffinityIPCookie, LoadBalancerNewParamsSessionAffinityHeader, LoadBalancerNewParamsSessionAffinityEmpty: - return true - } - return false -} - -// Steering Policy for this load balancer. -// -// - `"off"`: Use `default_pools`. -// - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied -// requests, the country for `country_pools` is determined by -// `location_strategy`. -// - `"random"`: Select a pool randomly. -// - `"dynamic_latency"`: Use round trip time to select the closest pool in -// default_pools (requires pool health checks). -// - `"proximity"`: Use the pools' latitude and longitude to select the closest -// pool using the Cloudflare PoP location for proxied requests or the location -// determined by `location_strategy` for non-proxied requests. -// - `"least_outstanding_requests"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of outstanding -// requests. Pools with more pending requests are weighted proportionately less -// relative to others. -// - `"least_connections"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of open connections. -// Pools with more open connections are weighted proportionately less relative to -// others. Supported for HTTP/1 and HTTP/2 connections. -// - `""`: Will map to `"geo"` if you use -// `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. -type LoadBalancerNewParamsSteeringPolicy string - -const ( - LoadBalancerNewParamsSteeringPolicyOff LoadBalancerNewParamsSteeringPolicy = "off" - LoadBalancerNewParamsSteeringPolicyGeo LoadBalancerNewParamsSteeringPolicy = "geo" - LoadBalancerNewParamsSteeringPolicyRandom LoadBalancerNewParamsSteeringPolicy = "random" - LoadBalancerNewParamsSteeringPolicyDynamicLatency LoadBalancerNewParamsSteeringPolicy = "dynamic_latency" - LoadBalancerNewParamsSteeringPolicyProximity LoadBalancerNewParamsSteeringPolicy = "proximity" - LoadBalancerNewParamsSteeringPolicyLeastOutstandingRequests LoadBalancerNewParamsSteeringPolicy = "least_outstanding_requests" - LoadBalancerNewParamsSteeringPolicyLeastConnections LoadBalancerNewParamsSteeringPolicy = "least_connections" - LoadBalancerNewParamsSteeringPolicyEmpty LoadBalancerNewParamsSteeringPolicy = "\"\"" -) - -func (r LoadBalancerNewParamsSteeringPolicy) IsKnown() bool { - switch r { - case LoadBalancerNewParamsSteeringPolicyOff, LoadBalancerNewParamsSteeringPolicyGeo, LoadBalancerNewParamsSteeringPolicyRandom, LoadBalancerNewParamsSteeringPolicyDynamicLatency, LoadBalancerNewParamsSteeringPolicyProximity, LoadBalancerNewParamsSteeringPolicyLeastOutstandingRequests, LoadBalancerNewParamsSteeringPolicyLeastConnections, LoadBalancerNewParamsSteeringPolicyEmpty: - return true - } - return false -} - type LoadBalancerNewResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` @@ -2015,7 +1847,7 @@ type LoadBalancerUpdateParams struct { // server is unhealthy, then a new origin server is calculated and used. See // `headers` in `session_affinity_attributes` for additional required // configuration. - SessionAffinity param.Field[LoadBalancerUpdateParamsSessionAffinity] `json:"session_affinity"` + SessionAffinity param.Field[SessionAffinity] `json:"session_affinity"` // Configures attributes for session affinity. SessionAffinityAttributes param.Field[SessionAffinityAttributesParam] `json:"session_affinity_attributes"` // Time, in seconds, until a client's session expires after being created. Once the @@ -2051,7 +1883,7 @@ type LoadBalancerUpdateParams struct { // others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use // `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. - SteeringPolicy param.Field[LoadBalancerUpdateParamsSteeringPolicy] `json:"steering_policy"` + SteeringPolicy param.Field[SteeringPolicy] `json:"steering_policy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load // balancer. This only applies to gray-clouded (unproxied) load balancers. TTL param.Field[float64] `json:"ttl"` @@ -2061,90 +1893,6 @@ func (r LoadBalancerUpdateParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Specifies the type of session affinity the load balancer should use unless -// specified as `"none"` or "" (default). The supported types are: -// -// - `"cookie"`: On the first request to a proxied load balancer, a cookie is -// generated, encoding information of which origin the request will be forwarded -// to. Subsequent requests, by the same client to the same load balancer, will be -// sent to the origin server the cookie encodes, for the duration of the cookie -// and as long as the origin server remains healthy. If the cookie has expired or -// the origin server is unhealthy, then a new origin server is calculated and -// used. -// - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin -// selection is stable and based on the client's ip address. -// - `"header"`: On the first request to a proxied load balancer, a session key -// based on the configured HTTP headers (see -// `session_affinity_attributes.headers`) is generated, encoding the request -// headers used for storing in the load balancer session state which origin the -// request will be forwarded to. Subsequent requests to the load balancer with -// the same headers will be sent to the same origin server, for the duration of -// the session and as long as the origin server remains healthy. If the session -// has been idle for the duration of `session_affinity_ttl` seconds or the origin -// server is unhealthy, then a new origin server is calculated and used. See -// `headers` in `session_affinity_attributes` for additional required -// configuration. -type LoadBalancerUpdateParamsSessionAffinity string - -const ( - LoadBalancerUpdateParamsSessionAffinityNone LoadBalancerUpdateParamsSessionAffinity = "none" - LoadBalancerUpdateParamsSessionAffinityCookie LoadBalancerUpdateParamsSessionAffinity = "cookie" - LoadBalancerUpdateParamsSessionAffinityIPCookie LoadBalancerUpdateParamsSessionAffinity = "ip_cookie" - LoadBalancerUpdateParamsSessionAffinityHeader LoadBalancerUpdateParamsSessionAffinity = "header" - LoadBalancerUpdateParamsSessionAffinityEmpty LoadBalancerUpdateParamsSessionAffinity = "\"\"" -) - -func (r LoadBalancerUpdateParamsSessionAffinity) IsKnown() bool { - switch r { - case LoadBalancerUpdateParamsSessionAffinityNone, LoadBalancerUpdateParamsSessionAffinityCookie, LoadBalancerUpdateParamsSessionAffinityIPCookie, LoadBalancerUpdateParamsSessionAffinityHeader, LoadBalancerUpdateParamsSessionAffinityEmpty: - return true - } - return false -} - -// Steering Policy for this load balancer. -// -// - `"off"`: Use `default_pools`. -// - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied -// requests, the country for `country_pools` is determined by -// `location_strategy`. -// - `"random"`: Select a pool randomly. -// - `"dynamic_latency"`: Use round trip time to select the closest pool in -// default_pools (requires pool health checks). -// - `"proximity"`: Use the pools' latitude and longitude to select the closest -// pool using the Cloudflare PoP location for proxied requests or the location -// determined by `location_strategy` for non-proxied requests. -// - `"least_outstanding_requests"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of outstanding -// requests. Pools with more pending requests are weighted proportionately less -// relative to others. -// - `"least_connections"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of open connections. -// Pools with more open connections are weighted proportionately less relative to -// others. Supported for HTTP/1 and HTTP/2 connections. -// - `""`: Will map to `"geo"` if you use -// `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. -type LoadBalancerUpdateParamsSteeringPolicy string - -const ( - LoadBalancerUpdateParamsSteeringPolicyOff LoadBalancerUpdateParamsSteeringPolicy = "off" - LoadBalancerUpdateParamsSteeringPolicyGeo LoadBalancerUpdateParamsSteeringPolicy = "geo" - LoadBalancerUpdateParamsSteeringPolicyRandom LoadBalancerUpdateParamsSteeringPolicy = "random" - LoadBalancerUpdateParamsSteeringPolicyDynamicLatency LoadBalancerUpdateParamsSteeringPolicy = "dynamic_latency" - LoadBalancerUpdateParamsSteeringPolicyProximity LoadBalancerUpdateParamsSteeringPolicy = "proximity" - LoadBalancerUpdateParamsSteeringPolicyLeastOutstandingRequests LoadBalancerUpdateParamsSteeringPolicy = "least_outstanding_requests" - LoadBalancerUpdateParamsSteeringPolicyLeastConnections LoadBalancerUpdateParamsSteeringPolicy = "least_connections" - LoadBalancerUpdateParamsSteeringPolicyEmpty LoadBalancerUpdateParamsSteeringPolicy = "\"\"" -) - -func (r LoadBalancerUpdateParamsSteeringPolicy) IsKnown() bool { - switch r { - case LoadBalancerUpdateParamsSteeringPolicyOff, LoadBalancerUpdateParamsSteeringPolicyGeo, LoadBalancerUpdateParamsSteeringPolicyRandom, LoadBalancerUpdateParamsSteeringPolicyDynamicLatency, LoadBalancerUpdateParamsSteeringPolicyProximity, LoadBalancerUpdateParamsSteeringPolicyLeastOutstandingRequests, LoadBalancerUpdateParamsSteeringPolicyLeastConnections, LoadBalancerUpdateParamsSteeringPolicyEmpty: - return true - } - return false -} - type LoadBalancerUpdateResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` @@ -2315,7 +2063,7 @@ type LoadBalancerEditParams struct { // server is unhealthy, then a new origin server is calculated and used. See // `headers` in `session_affinity_attributes` for additional required // configuration. - SessionAffinity param.Field[LoadBalancerEditParamsSessionAffinity] `json:"session_affinity"` + SessionAffinity param.Field[SessionAffinity] `json:"session_affinity"` // Configures attributes for session affinity. SessionAffinityAttributes param.Field[SessionAffinityAttributesParam] `json:"session_affinity_attributes"` // Time, in seconds, until a client's session expires after being created. Once the @@ -2351,7 +2099,7 @@ type LoadBalancerEditParams struct { // others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use // `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. - SteeringPolicy param.Field[LoadBalancerEditParamsSteeringPolicy] `json:"steering_policy"` + SteeringPolicy param.Field[SteeringPolicy] `json:"steering_policy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load // balancer. This only applies to gray-clouded (unproxied) load balancers. TTL param.Field[float64] `json:"ttl"` @@ -2361,90 +2109,6 @@ func (r LoadBalancerEditParams) MarshalJSON() (data []byte, err error) { return apijson.MarshalRoot(r) } -// Specifies the type of session affinity the load balancer should use unless -// specified as `"none"` or "" (default). The supported types are: -// -// - `"cookie"`: On the first request to a proxied load balancer, a cookie is -// generated, encoding information of which origin the request will be forwarded -// to. Subsequent requests, by the same client to the same load balancer, will be -// sent to the origin server the cookie encodes, for the duration of the cookie -// and as long as the origin server remains healthy. If the cookie has expired or -// the origin server is unhealthy, then a new origin server is calculated and -// used. -// - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin -// selection is stable and based on the client's ip address. -// - `"header"`: On the first request to a proxied load balancer, a session key -// based on the configured HTTP headers (see -// `session_affinity_attributes.headers`) is generated, encoding the request -// headers used for storing in the load balancer session state which origin the -// request will be forwarded to. Subsequent requests to the load balancer with -// the same headers will be sent to the same origin server, for the duration of -// the session and as long as the origin server remains healthy. If the session -// has been idle for the duration of `session_affinity_ttl` seconds or the origin -// server is unhealthy, then a new origin server is calculated and used. See -// `headers` in `session_affinity_attributes` for additional required -// configuration. -type LoadBalancerEditParamsSessionAffinity string - -const ( - LoadBalancerEditParamsSessionAffinityNone LoadBalancerEditParamsSessionAffinity = "none" - LoadBalancerEditParamsSessionAffinityCookie LoadBalancerEditParamsSessionAffinity = "cookie" - LoadBalancerEditParamsSessionAffinityIPCookie LoadBalancerEditParamsSessionAffinity = "ip_cookie" - LoadBalancerEditParamsSessionAffinityHeader LoadBalancerEditParamsSessionAffinity = "header" - LoadBalancerEditParamsSessionAffinityEmpty LoadBalancerEditParamsSessionAffinity = "\"\"" -) - -func (r LoadBalancerEditParamsSessionAffinity) IsKnown() bool { - switch r { - case LoadBalancerEditParamsSessionAffinityNone, LoadBalancerEditParamsSessionAffinityCookie, LoadBalancerEditParamsSessionAffinityIPCookie, LoadBalancerEditParamsSessionAffinityHeader, LoadBalancerEditParamsSessionAffinityEmpty: - return true - } - return false -} - -// Steering Policy for this load balancer. -// -// - `"off"`: Use `default_pools`. -// - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied -// requests, the country for `country_pools` is determined by -// `location_strategy`. -// - `"random"`: Select a pool randomly. -// - `"dynamic_latency"`: Use round trip time to select the closest pool in -// default_pools (requires pool health checks). -// - `"proximity"`: Use the pools' latitude and longitude to select the closest -// pool using the Cloudflare PoP location for proxied requests or the location -// determined by `location_strategy` for non-proxied requests. -// - `"least_outstanding_requests"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of outstanding -// requests. Pools with more pending requests are weighted proportionately less -// relative to others. -// - `"least_connections"`: Select a pool by taking into consideration -// `random_steering` weights, as well as each pool's number of open connections. -// Pools with more open connections are weighted proportionately less relative to -// others. Supported for HTTP/1 and HTTP/2 connections. -// - `""`: Will map to `"geo"` if you use -// `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. -type LoadBalancerEditParamsSteeringPolicy string - -const ( - LoadBalancerEditParamsSteeringPolicyOff LoadBalancerEditParamsSteeringPolicy = "off" - LoadBalancerEditParamsSteeringPolicyGeo LoadBalancerEditParamsSteeringPolicy = "geo" - LoadBalancerEditParamsSteeringPolicyRandom LoadBalancerEditParamsSteeringPolicy = "random" - LoadBalancerEditParamsSteeringPolicyDynamicLatency LoadBalancerEditParamsSteeringPolicy = "dynamic_latency" - LoadBalancerEditParamsSteeringPolicyProximity LoadBalancerEditParamsSteeringPolicy = "proximity" - LoadBalancerEditParamsSteeringPolicyLeastOutstandingRequests LoadBalancerEditParamsSteeringPolicy = "least_outstanding_requests" - LoadBalancerEditParamsSteeringPolicyLeastConnections LoadBalancerEditParamsSteeringPolicy = "least_connections" - LoadBalancerEditParamsSteeringPolicyEmpty LoadBalancerEditParamsSteeringPolicy = "\"\"" -) - -func (r LoadBalancerEditParamsSteeringPolicy) IsKnown() bool { - switch r { - case LoadBalancerEditParamsSteeringPolicyOff, LoadBalancerEditParamsSteeringPolicyGeo, LoadBalancerEditParamsSteeringPolicyRandom, LoadBalancerEditParamsSteeringPolicyDynamicLatency, LoadBalancerEditParamsSteeringPolicyProximity, LoadBalancerEditParamsSteeringPolicyLeastOutstandingRequests, LoadBalancerEditParamsSteeringPolicyLeastConnections, LoadBalancerEditParamsSteeringPolicyEmpty: - return true - } - return false -} - type LoadBalancerEditResponseEnvelope struct { Errors []shared.ResponseInfo `json:"errors,required"` Messages []shared.ResponseInfo `json:"messages,required"` diff --git a/load_balancers/loadbalancer_test.go b/load_balancers/loadbalancer_test.go index 425a1e731ec..279d27f923f 100644 --- a/load_balancers/loadbalancer_test.go +++ b/load_balancers/loadbalancer_test.go @@ -137,7 +137,7 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -147,7 +147,7 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), @@ -210,7 +210,7 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -220,7 +220,7 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), @@ -283,7 +283,7 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -293,13 +293,13 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), Terminates: cloudflare.F(true), }}), - SessionAffinity: cloudflare.F(load_balancers.LoadBalancerNewParamsSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -309,7 +309,7 @@ func TestLoadBalancerNewWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.LoadBalancerNewParamsSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }) if err != nil { @@ -448,7 +448,7 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -458,7 +458,7 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), @@ -521,7 +521,7 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -531,7 +531,7 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), @@ -594,7 +594,7 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -604,13 +604,13 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), Terminates: cloudflare.F(true), }}), - SessionAffinity: cloudflare.F(load_balancers.LoadBalancerUpdateParamsSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -620,7 +620,7 @@ func TestLoadBalancerUpdateWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.LoadBalancerUpdateParamsSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }, ) @@ -814,7 +814,7 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -824,7 +824,7 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), @@ -887,7 +887,7 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -897,7 +897,7 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), @@ -960,7 +960,7 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { "1": "9290f38c5d07c2e2f4df57b1f61d4196", }, }), - SessionAffinity: cloudflare.F(load_balancers.RulesOverridesSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -970,13 +970,13 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.RulesOverridesSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }), Priority: cloudflare.F(int64(0)), Terminates: cloudflare.F(true), }}), - SessionAffinity: cloudflare.F(load_balancers.LoadBalancerEditParamsSessionAffinityCookie), + SessionAffinity: cloudflare.F(load_balancers.SessionAffinityCookie), SessionAffinityAttributes: cloudflare.F(load_balancers.SessionAffinityAttributesParam{ DrainDuration: cloudflare.F(100.000000), Headers: cloudflare.F([]string{"x"}), @@ -986,7 +986,7 @@ func TestLoadBalancerEditWithOptionalParams(t *testing.T) { ZeroDowntimeFailover: cloudflare.F(load_balancers.SessionAffinityAttributesZeroDowntimeFailoverSticky), }), SessionAffinityTTL: cloudflare.F(1800.000000), - SteeringPolicy: cloudflare.F(load_balancers.LoadBalancerEditParamsSteeringPolicyDynamicLatency), + SteeringPolicy: cloudflare.F(load_balancers.SteeringPolicyDynamicLatency), TTL: cloudflare.F(30.000000), }, ) diff --git a/logpush/aliases.go b/logpush/aliases.go index 8e24c46fcf3..a2e7812f3bd 100644 --- a/logpush/aliases.go +++ b/logpush/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/logs/aliases.go b/logs/aliases.go index 07b766a509a..fa4a0f0e543 100644 --- a/logs/aliases.go +++ b/logs/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/magic_network_monitoring/aliases.go b/magic_network_monitoring/aliases.go index bed2d6a18cd..f7609bcb25c 100644 --- a/magic_network_monitoring/aliases.go +++ b/magic_network_monitoring/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/magic_transit/aliases.go b/magic_transit/aliases.go index db9ec8189aa..e49834fe63e 100644 --- a/magic_transit/aliases.go +++ b/magic_transit/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/managed_headers/aliases.go b/managed_headers/aliases.go index 9f6d69c886b..7ba59ad35a1 100644 --- a/managed_headers/aliases.go +++ b/managed_headers/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/memberships/aliases.go b/memberships/aliases.go index 08353f2e610..31b6e73490c 100644 --- a/memberships/aliases.go +++ b/memberships/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/mtls_certificates/aliases.go b/mtls_certificates/aliases.go index 7c0f26dcde5..0825314aaf9 100644 --- a/mtls_certificates/aliases.go +++ b/mtls_certificates/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/origin_ca_certificates/aliases.go b/origin_ca_certificates/aliases.go index 930482825f8..b9b1a32def6 100644 --- a/origin_ca_certificates/aliases.go +++ b/origin_ca_certificates/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/origin_ca_certificates/origincacertificate_test.go b/origin_ca_certificates/origincacertificate_test.go index 9afb5f6715c..0a6253ab5a8 100644 --- a/origin_ca_certificates/origincacertificate_test.go +++ b/origin_ca_certificates/origincacertificate_test.go @@ -32,7 +32,7 @@ func TestOriginCACertificateNewWithOptionalParams(t *testing.T) { _, err := client.OriginCACertificates.New(context.TODO(), origin_ca_certificates.OriginCACertificateNewParams{ Csr: cloudflare.F("-----BEGIN CERTIFICATE REQUEST-----\nMIICxzCCAa8CAQAwSDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDVNhbiBGcmFuY2lz\nY28xCzAJBgNVBAcTAkNBMRQwEgYDVQQDEwtleGFtcGxlLm5ldDCCASIwDQYJKoZI\nhvcNAQEBBQADggEPADCCAQoCggEBALxejtu4b+jPdFeFi6OUsye8TYJQBm3WfCvL\nHu5EvijMO/4Z2TImwASbwUF7Ir8OLgH+mGlQZeqyNvGoSOMEaZVXcYfpR1hlVak8\n4GGVr+04IGfOCqaBokaBFIwzclGZbzKmLGwIQioNxGfqFm6RGYGA3be2Je2iseBc\nN8GV1wYmvYE0RR+yWweJCTJ157exyRzu7sVxaEW9F87zBQLyOnwXc64rflXslRqi\ng7F7w5IaQYOl8yvmk/jEPCAha7fkiUfEpj4N12+oPRiMvleJF98chxjD4MH39c5I\nuOslULhrWunfh7GB1jwWNA9y44H0snrf+xvoy2TcHmxvma9Eln8CAwEAAaA6MDgG\nCSqGSIb3DQEJDjErMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5uZXSCD3d3dy5leGFt\ncGxlLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEAcBaX6dOnI8ncARrI9ZSF2AJX+8mx\npTHY2+Y2C0VvrVDGMtbBRH8R9yMbqWtlxeeNGf//LeMkSKSFa4kbpdx226lfui8/\nauRDBTJGx2R1ccUxmLZXx4my0W5iIMxunu+kez+BDlu7bTT2io0uXMRHue4i6quH\nyc5ibxvbJMjR7dqbcanVE10/34oprzXQsJ/VmSuZNXtjbtSKDlmcpw6To/eeAJ+J\nhXykcUihvHyG4A1m2R6qpANBjnA0pHexfwM/SgfzvpbvUg0T1ubmer8BgTwCKIWs\ndcWYTthM51JIqRBfNqy4QcBnX+GY05yltEEswQI55wdiS3CjTTA67sdbcQ==\n-----END CERTIFICATE REQUEST-----"), Hostnames: cloudflare.F([]interface{}{"example.com", "*.example.com"}), - RequestType: cloudflare.F(shared.CertificateRequestTypeOriginRsa), + RequestType: cloudflare.F(shared.CertificateRequestTypeOriginRSA), RequestedValidity: cloudflare.F(ssl.RequestValidity5475), }) if err != nil { diff --git a/origin_post_quantum_encryption/aliases.go b/origin_post_quantum_encryption/aliases.go index fa34f36eaa5..a0600a83e6a 100644 --- a/origin_post_quantum_encryption/aliases.go +++ b/origin_post_quantum_encryption/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/origin_tls_client_auth/aliases.go b/origin_tls_client_auth/aliases.go index 3d37dd2f5e7..f9d38f7bfd4 100644 --- a/origin_tls_client_auth/aliases.go +++ b/origin_tls_client_auth/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/page_shield/aliases.go b/page_shield/aliases.go index 80adbcbe435..8b9e55badf6 100644 --- a/page_shield/aliases.go +++ b/page_shield/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/pagerules/aliases.go b/pagerules/aliases.go index a8e4ef447d3..a3e753fc5e3 100644 --- a/pagerules/aliases.go +++ b/pagerules/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/pages/aliases.go b/pages/aliases.go index 6f445b58ec4..1d37a614cbf 100644 --- a/pages/aliases.go +++ b/pages/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/pcaps/aliases.go b/pcaps/aliases.go index 1729412bdb2..6e2ce5095d5 100644 --- a/pcaps/aliases.go +++ b/pcaps/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/plans/aliases.go b/plans/aliases.go index 2d550e892c2..40b225a8a7c 100644 --- a/plans/aliases.go +++ b/plans/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/queues/aliases.go b/queues/aliases.go index 956a9439351..a7a7578696f 100644 --- a/queues/aliases.go +++ b/queues/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/r2/aliases.go b/r2/aliases.go index c03ec59182e..5172382de04 100644 --- a/r2/aliases.go +++ b/r2/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/radar/aliases.go b/radar/aliases.go index 8b30be94441..94605c2c728 100644 --- a/radar/aliases.go +++ b/radar/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/rate_limits/aliases.go b/rate_limits/aliases.go index 147301b574d..977b324f07b 100644 --- a/rate_limits/aliases.go +++ b/rate_limits/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/rate_plans/aliases.go b/rate_plans/aliases.go index a8141f4c87b..55d56093315 100644 --- a/rate_plans/aliases.go +++ b/rate_plans/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/registrar/aliases.go b/registrar/aliases.go index 54edc7a3745..7b63d010fc0 100644 --- a/registrar/aliases.go +++ b/registrar/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/request_tracers/aliases.go b/request_tracers/aliases.go index 0acc0cd65ea..92b4e3fcd3b 100644 --- a/request_tracers/aliases.go +++ b/request_tracers/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/rules/aliases.go b/rules/aliases.go index 674713c3ee7..277fffe6830 100644 --- a/rules/aliases.go +++ b/rules/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/rulesets/aliases.go b/rulesets/aliases.go index ab94cfb537c..ce0883ffa15 100644 --- a/rulesets/aliases.go +++ b/rulesets/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/rum/aliases.go b/rum/aliases.go index f733c439428..a2abb297fdd 100644 --- a/rum/aliases.go +++ b/rum/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/secondary_dns/aliases.go b/secondary_dns/aliases.go index 6732b5409b1..788e8f5103d 100644 --- a/secondary_dns/aliases.go +++ b/secondary_dns/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/shared/shared.go b/shared/shared.go index 85caedffcff..483abddce01 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -176,19 +176,36 @@ func (r auditLogResourceJSON) RawJSON() string { return r.raw } +// The Certificate Authority that will issue the certificate +type CertificateCA string + +const ( + CertificateCADigicert CertificateCA = "digicert" + CertificateCAGoogle CertificateCA = "google" + CertificateCALetsEncrypt CertificateCA = "lets_encrypt" +) + +func (r CertificateCA) IsKnown() bool { + switch r { + case CertificateCADigicert, CertificateCAGoogle, CertificateCALetsEncrypt: + return true + } + return false +} + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). type CertificateRequestType string const ( - CertificateRequestTypeOriginRsa CertificateRequestType = "origin-rsa" - CertificateRequestTypeOriginEcc CertificateRequestType = "origin-ecc" + CertificateRequestTypeOriginRSA CertificateRequestType = "origin-rsa" + CertificateRequestTypeOriginECC CertificateRequestType = "origin-ecc" CertificateRequestTypeKeylessCertificate CertificateRequestType = "keyless-certificate" ) func (r CertificateRequestType) IsKnown() bool { switch r { - case CertificateRequestTypeOriginRsa, CertificateRequestTypeOriginEcc, CertificateRequestTypeKeylessCertificate: + case CertificateRequestTypeOriginRSA, CertificateRequestTypeOriginECC, CertificateRequestTypeKeylessCertificate: return true } return false diff --git a/snippets/aliases.go b/snippets/aliases.go index ac25e8ff340..a3f652f2977 100644 --- a/snippets/aliases.go +++ b/snippets/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/spectrum/aliases.go b/spectrum/aliases.go index ccafed7393e..53e9a837c17 100644 --- a/spectrum/aliases.go +++ b/spectrum/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/speed/aliases.go b/speed/aliases.go index d39afed4d63..2e9ce227347 100644 --- a/speed/aliases.go +++ b/speed/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/ssl/aliases.go b/ssl/aliases.go index a1e68ac1749..e04d4e3dbc3 100644 --- a/ssl/aliases.go +++ b/ssl/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/ssl/certificatepack.go b/ssl/certificatepack.go index 3aa00f20f2a..b9bdf489746 100644 --- a/ssl/certificatepack.go +++ b/ssl/certificatepack.go @@ -105,23 +105,6 @@ func (r *CertificatePackService) Get(ctx context.Context, certificatePackID stri return } -// The Certificate Authority that will issue the certificate -type CertificateAuthority string - -const ( - CertificateAuthorityDigicert CertificateAuthority = "digicert" - CertificateAuthorityGoogle CertificateAuthority = "google" - CertificateAuthorityLetsEncrypt CertificateAuthority = "lets_encrypt" -) - -func (r CertificateAuthority) IsKnown() bool { - switch r { - case CertificateAuthorityDigicert, CertificateAuthorityGoogle, CertificateAuthorityLetsEncrypt: - return true - } - return false -} - type Host = string type HostParam = string diff --git a/ssl/verification.go b/ssl/verification.go index 5571fa2989d..a3070deb4cf 100644 --- a/ssl/verification.go +++ b/ssl/verification.go @@ -132,13 +132,13 @@ type VerificationSignature string const ( VerificationSignatureEcdsaWithSha256 VerificationSignature = "ECDSAWithSHA256" - VerificationSignatureSha1WithRsa VerificationSignature = "SHA1WithRSA" - VerificationSignatureSha256WithRsa VerificationSignature = "SHA256WithRSA" + VerificationSignatureSha1WithRSA VerificationSignature = "SHA1WithRSA" + VerificationSignatureSha256WithRSA VerificationSignature = "SHA256WithRSA" ) func (r VerificationSignature) IsKnown() bool { switch r { - case VerificationSignatureEcdsaWithSha256, VerificationSignatureSha1WithRsa, VerificationSignatureSha256WithRsa: + case VerificationSignatureEcdsaWithSha256, VerificationSignatureSha1WithRSA, VerificationSignatureSha256WithRSA: return true } return false diff --git a/storage/aliases.go b/storage/aliases.go index ef9516906c9..771f00c549e 100644 --- a/storage/aliases.go +++ b/storage/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/stream/aliases.go b/stream/aliases.go index fa2e6d3cf07..0cdf7f1d29f 100644 --- a/stream/aliases.go +++ b/stream/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/subscriptions/aliases.go b/subscriptions/aliases.go index 9e964cdcea8..f28e9e089f1 100644 --- a/subscriptions/aliases.go +++ b/subscriptions/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/url_normalization/aliases.go b/url_normalization/aliases.go index 14608ab31e6..46f97c9489d 100644 --- a/url_normalization/aliases.go +++ b/url_normalization/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/url_scanner/aliases.go b/url_scanner/aliases.go index 9b968f7ba20..75bc9579e64 100644 --- a/url_scanner/aliases.go +++ b/url_scanner/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/user/aliases.go b/user/aliases.go index 8066c303c2a..8dd5458e74b 100644 --- a/user/aliases.go +++ b/user/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/vectorize/aliases.go b/vectorize/aliases.go index 0fa6bbe0671..1d547d2ff1a 100644 --- a/vectorize/aliases.go +++ b/vectorize/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/waiting_rooms/aliases.go b/waiting_rooms/aliases.go index 31f5a55a568..c8d2243b906 100644 --- a/waiting_rooms/aliases.go +++ b/waiting_rooms/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/warp_connector/aliases.go b/warp_connector/aliases.go index b34e0437c54..5adf06aabf7 100644 --- a/warp_connector/aliases.go +++ b/warp_connector/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/web3/aliases.go b/web3/aliases.go index dd7644404c3..ac3f7bf9f5d 100644 --- a/web3/aliases.go +++ b/web3/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/workers/aliases.go b/workers/aliases.go index b02d1211329..aa231402118 100644 --- a/workers/aliases.go +++ b/workers/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/workers_for_platforms/aliases.go b/workers_for_platforms/aliases.go index 31311ccfb32..ab9fe62cf9f 100644 --- a/workers_for_platforms/aliases.go +++ b/workers_for_platforms/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/zero_trust/aliases.go b/zero_trust/aliases.go index 9afb5ed4947..798a2aa2f6e 100644 --- a/zero_trust/aliases.go +++ b/zero_trust/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate diff --git a/zones/aliases.go b/zones/aliases.go index d3b2c714140..cd2bc80f06b 100644 --- a/zones/aliases.go +++ b/zones/aliases.go @@ -44,6 +44,20 @@ type AuditLogOwner = shared.AuditLogOwner // This is an alias to an internal type. type AuditLogResource = shared.AuditLogResource +// The Certificate Authority that will issue the certificate +// +// This is an alias to an internal type. +type CertificateCA = shared.CertificateCA + +// This is an alias to an internal value. +const CertificateCADigicert = shared.CertificateCADigicert + +// This is an alias to an internal value. +const CertificateCAGoogle = shared.CertificateCAGoogle + +// This is an alias to an internal value. +const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt + // Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), // or "keyless-certificate" (for Keyless SSL servers). // @@ -51,10 +65,10 @@ type AuditLogResource = shared.AuditLogResource type CertificateRequestType = shared.CertificateRequestType // This is an alias to an internal value. -const CertificateRequestTypeOriginRsa = shared.CertificateRequestTypeOriginRsa +const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA // This is an alias to an internal value. -const CertificateRequestTypeOriginEcc = shared.CertificateRequestTypeOriginEcc +const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC // This is an alias to an internal value. const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate