Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #1963

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions accounts/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ func (r *MemberService) Get(ctx context.Context, memberID string, query MemberGe
}

// Whether the user is a member of the organization or has an inivitation pending.
type MemberStatus string
type Status string

const (
MemberStatusMember MemberStatus = "member"
MemberStatusInvited MemberStatus = "invited"
StatusMember Status = "member"
StatusInvited Status = "invited"
)

func (r MemberStatus) IsKnown() bool {
func (r Status) IsKnown() bool {
switch r {
case MemberStatusMember, MemberStatusInvited:
case StatusMember, StatusInvited:
return true
}
return false
Expand Down
16 changes: 8 additions & 8 deletions acm/totaltls.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ func (r *TotalTLSService) Get(ctx context.Context, query TotalTLSGetParams, opts
}

// The Certificate Authority that Total TLS certificates will be issued through.
type TotalTLSCertificateAuthority string
type CertificateAuthority string

const (
TotalTLSCertificateAuthorityGoogle TotalTLSCertificateAuthority = "google"
TotalTLSCertificateAuthorityLetsEncrypt TotalTLSCertificateAuthority = "lets_encrypt"
CertificateAuthorityGoogle CertificateAuthority = "google"
CertificateAuthorityLetsEncrypt CertificateAuthority = "lets_encrypt"
)

func (r TotalTLSCertificateAuthority) IsKnown() bool {
func (r CertificateAuthority) IsKnown() bool {
switch r {
case TotalTLSCertificateAuthorityGoogle, TotalTLSCertificateAuthorityLetsEncrypt:
case CertificateAuthorityGoogle, CertificateAuthorityLetsEncrypt:
return true
}
return false
}

type TotalTLSNewResponse struct {
// The Certificate Authority that Total TLS certificates will be issued through.
CertificateAuthority TotalTLSCertificateAuthority `json:"certificate_authority"`
CertificateAuthority CertificateAuthority `json:"certificate_authority"`
// If enabled, Total TLS will order a hostname specific TLS certificate for any
// proxied A, AAAA, or CNAME record in your zone.
Enabled bool `json:"enabled"`
Expand Down Expand Up @@ -119,7 +119,7 @@ func (r TotalTLSNewResponseValidityDays) IsKnown() bool {

type TotalTLSGetResponse struct {
// The Certificate Authority that Total TLS certificates will be issued through.
CertificateAuthority TotalTLSCertificateAuthority `json:"certificate_authority"`
CertificateAuthority CertificateAuthority `json:"certificate_authority"`
// If enabled, Total TLS will order a hostname specific TLS certificate for any
// proxied A, AAAA, or CNAME record in your zone.
Enabled bool `json:"enabled"`
Expand Down Expand Up @@ -168,7 +168,7 @@ type TotalTLSNewParams struct {
// proxied A, AAAA, or CNAME record in your zone.
Enabled param.Field[bool] `json:"enabled,required"`
// The Certificate Authority that Total TLS certificates will be issued through.
CertificateAuthority param.Field[TotalTLSCertificateAuthority] `json:"certificate_authority"`
CertificateAuthority param.Field[CertificateAuthority] `json:"certificate_authority"`
}

func (r TotalTLSNewParams) MarshalJSON() (data []byte, err error) {
Expand Down
2 changes: 1 addition & 1 deletion acm/totaltls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestTotalTLSNewWithOptionalParams(t *testing.T) {
_, err := client.ACM.TotalTLS.New(context.TODO(), acm.TotalTLSNewParams{
ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
Enabled: cloudflare.F(true),
CertificateAuthority: cloudflare.F(acm.TotalTLSCertificateAuthorityGoogle),
CertificateAuthority: cloudflare.F(acm.CertificateAuthorityGoogle),
})
if err != nil {
var apierr *cloudflare.Error
Expand Down
14 changes: 7 additions & 7 deletions addressing/addressmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@ func (r addressMapJSON) RawJSON() string {
}

// The type of the membership.
type AddressMapKind string
type Kind string

const (
AddressMapKindZone AddressMapKind = "zone"
AddressMapKindAccount AddressMapKind = "account"
KindZone Kind = "zone"
KindAccount Kind = "account"
)

func (r AddressMapKind) IsKnown() bool {
func (r Kind) IsKnown() bool {
switch r {
case AddressMapKindZone, AddressMapKindAccount:
case KindZone, KindAccount:
return true
}
return false
Expand Down Expand Up @@ -266,7 +266,7 @@ type AddressMapNewResponseMembership struct {
// Identifier
Identifier string `json:"identifier"`
// The type of the membership.
Kind AddressMapKind `json:"kind"`
Kind Kind `json:"kind"`
JSON addressMapNewResponseMembershipJSON `json:"-"`
}

Expand Down Expand Up @@ -378,7 +378,7 @@ type AddressMapGetResponseMembership struct {
// Identifier
Identifier string `json:"identifier"`
// The type of the membership.
Kind AddressMapKind `json:"kind"`
Kind Kind `json:"kind"`
JSON addressMapGetResponseMembershipJSON `json:"-"`
}

Expand Down
25 changes: 13 additions & 12 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Methods:

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts#MemberStatus">MemberStatus</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts#Status">Status</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts#UserWithInviteCode">UserWithInviteCode</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts#MemberListResponse">MemberListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts">accounts</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/accounts#MemberDeleteResponse">MemberDeleteResponse</a>
Expand Down Expand Up @@ -1165,19 +1165,19 @@ Methods:

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackCA">CertificatePackCA</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackRequestType">CertificatePackRequestType</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackRequestValidity">CertificatePackRequestValidity</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificateAuthority">CertificateAuthority</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#HostParam">HostParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#RequestType">RequestType</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#RequestValidity">RequestValidity</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackCA">CertificatePackCA</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackRequestType">CertificatePackRequestType</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackRequestValidity">CertificatePackRequestValidity</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackStatus">CertificatePackStatus</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackValidationMethod">CertificatePackValidationMethod</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificateAuthority">CertificateAuthority</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#Host">Host</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#RequestType">RequestType</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#RequestValidity">RequestValidity</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#Status">Status</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#ValidationMethod">ValidationMethod</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackListResponse">CertificatePackListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackDeleteResponse">CertificatePackDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl">ssl</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/ssl#CertificatePackEditResponse">CertificatePackEditResponse</a>
Expand Down Expand Up @@ -1272,11 +1272,11 @@ Methods:

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm">acm</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm#TotalTLSCertificateAuthority">TotalTLSCertificateAuthority</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm">acm</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm#CertificateAuthority">CertificateAuthority</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm">acm</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm#TotalTLSCertificateAuthority">TotalTLSCertificateAuthority</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm">acm</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm#CertificateAuthority">CertificateAuthority</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm">acm</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm#TotalTLSNewResponse">TotalTLSNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm">acm</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/acm#TotalTLSGetResponse">TotalTLSGetResponse</a>

Expand Down Expand Up @@ -1376,6 +1376,7 @@ Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates">custom_certificates</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates#CustomCertificate">CustomCertificate</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates">custom_certificates</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates#GeoRestrictions">GeoRestrictions</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates">custom_certificates</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates#Status">Status</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates">custom_certificates</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates#CustomCertificateNewResponseUnion">CustomCertificateNewResponseUnion</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates">custom_certificates</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates#CustomCertificateDeleteResponse">CustomCertificateDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates">custom_certificates</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/custom_certificates#CustomCertificateEditResponseUnion">CustomCertificateEditResponseUnion</a>
Expand Down Expand Up @@ -2995,7 +2996,7 @@ Methods:
Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing">addressing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing#AddressMap">AddressMap</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing">addressing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing#AddressMapKind">AddressMapKind</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing">addressing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing#Kind">Kind</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing">addressing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing#AddressMapNewResponse">AddressMapNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing">addressing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing#AddressMapDeleteResponse">AddressMapDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing">addressing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/addressing#AddressMapGetResponse">AddressMapGetResponse</a>
Expand Down
22 changes: 2 additions & 20 deletions client_certificates/clientcertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http"
"net/url"

"github.com/cloudflare/cloudflare-go/v2/custom_certificates"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v2/internal/pagination"
Expand Down Expand Up @@ -149,7 +150,7 @@ type ClientCertificate struct {
State string `json:"state"`
// Client Certificates may be active or revoked, and the pending_reactivation or
// pending_revocation represent in-progress asynchronous transitions
Status ClientCertificateStatus `json:"status"`
Status custom_certificates.Status `json:"status"`
// The number of days the Client Certificate will be valid after the issued_on date
ValidityDays int64 `json:"validity_days"`
JSON clientCertificateJSON `json:"-"`
Expand Down Expand Up @@ -212,25 +213,6 @@ func (r clientCertificateCertificateAuthorityJSON) RawJSON() string {
return r.raw
}

// Client Certificates may be active or revoked, and the pending_reactivation or
// pending_revocation represent in-progress asynchronous transitions
type ClientCertificateStatus string

const (
ClientCertificateStatusActive ClientCertificateStatus = "active"
ClientCertificateStatusPendingReactivation ClientCertificateStatus = "pending_reactivation"
ClientCertificateStatusPendingRevocation ClientCertificateStatus = "pending_revocation"
ClientCertificateStatusRevoked ClientCertificateStatus = "revoked"
)

func (r ClientCertificateStatus) IsKnown() bool {
switch r {
case ClientCertificateStatusActive, ClientCertificateStatusPendingReactivation, ClientCertificateStatusPendingRevocation, ClientCertificateStatusRevoked:
return true
}
return false
}

type ClientCertificateNewParams struct {
// Identifier
ZoneID param.Field[string] `path:"zone_id,required"`
Expand Down
19 changes: 19 additions & 0 deletions custom_certificates/customcertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,25 @@ func (r GeoRestrictionsParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}

// Client Certificates may be active or revoked, and the pending_reactivation or
// pending_revocation represent in-progress asynchronous transitions
type Status string

const (
StatusActive Status = "active"
StatusPendingReactivation Status = "pending_reactivation"
StatusPendingRevocation Status = "pending_revocation"
StatusRevoked Status = "revoked"
)

func (r Status) IsKnown() bool {
switch r {
case StatusActive, StatusPendingReactivation, StatusPendingRevocation, StatusRevoked:
return true
}
return false
}

// Union satisfied by [custom_certificates.CustomCertificateNewResponseUnknown] or
// [shared.UnionString].
type CustomCertificateNewResponseUnion interface {
Expand Down
12 changes: 6 additions & 6 deletions custom_hostnames/customhostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,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.CertificatePackCA `json:"certificate_authority"`
CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"`
// If a custom uploaded certificate is used.
CustomCertificate string `json:"custom_certificate"`
// The identifier for the Custom CSR that was used.
Expand Down Expand Up @@ -701,7 +701,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.CertificatePackCA `json:"certificate_authority"`
CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"`
// If a custom uploaded certificate is used.
CustomCertificate string `json:"custom_certificate"`
// The identifier for the Custom CSR that was used.
Expand Down Expand Up @@ -1185,7 +1185,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.CertificatePackCA `json:"certificate_authority"`
CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"`
// If a custom uploaded certificate is used.
CustomCertificate string `json:"custom_certificate"`
// The identifier for the Custom CSR that was used.
Expand Down Expand Up @@ -1647,7 +1647,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.CertificatePackCA `json:"certificate_authority"`
CertificateAuthority ssl.CertificateAuthority `json:"certificate_authority"`
// If a custom uploaded certificate is used.
CustomCertificate string `json:"custom_certificate"`
// The identifier for the Custom CSR that was used.
Expand Down Expand Up @@ -2064,7 +2064,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.CertificatePackCA] `json:"certificate_authority"`
CertificateAuthority param.Field[ssl.CertificateAuthority] `json:"certificate_authority"`
// If a custom uploaded certificate is used.
CustomCertificate param.Field[string] `json:"custom_certificate"`
// The key for a custom uploaded certificate.
Expand Down Expand Up @@ -2346,7 +2346,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.CertificatePackCA] `json:"certificate_authority"`
CertificateAuthority param.Field[ssl.CertificateAuthority] `json:"certificate_authority"`
// If a custom uploaded certificate is used.
CustomCertificate param.Field[string] `json:"custom_certificate"`
// The key for a custom uploaded certificate.
Expand Down
Loading