...

Package certificates

import "github.com/oracle/oci-go-sdk/certificates"
Overview
Index

Overview ▾

Index ▾

func GetCertificateBundleCertificateBundleTypeEnumStringValues() []string
func GetGetCertificateAuthorityBundleStageEnumStringValues() []string
func GetGetCertificateBundleCertificateBundleTypeEnumStringValues() []string
func GetGetCertificateBundleStageEnumStringValues() []string
func GetListCertificateAuthorityBundleVersionsSortByEnumStringValues() []string
func GetListCertificateAuthorityBundleVersionsSortOrderEnumStringValues() []string
func GetListCertificateBundleVersionsSortByEnumStringValues() []string
func GetListCertificateBundleVersionsSortOrderEnumStringValues() []string
func GetRevocationReasonEnumStringValues() []string
func GetVersionStageEnumStringValues() []string
type CaBundle
    func (m CaBundle) String() string
    func (m CaBundle) ValidateEnumValue() (bool, error)
type CertificateAuthorityBundle
    func (m CertificateAuthorityBundle) String() string
    func (m CertificateAuthorityBundle) ValidateEnumValue() (bool, error)
type CertificateAuthorityBundleVersionCollection
    func (m CertificateAuthorityBundleVersionCollection) String() string
    func (m CertificateAuthorityBundleVersionCollection) ValidateEnumValue() (bool, error)
type CertificateAuthorityBundleVersionSummary
    func (m CertificateAuthorityBundleVersionSummary) String() string
    func (m CertificateAuthorityBundleVersionSummary) ValidateEnumValue() (bool, error)
type CertificateBundle
type CertificateBundleCertificateBundleTypeEnum
    func GetCertificateBundleCertificateBundleTypeEnumValues() []CertificateBundleCertificateBundleTypeEnum
    func GetMappingCertificateBundleCertificateBundleTypeEnum(val string) (CertificateBundleCertificateBundleTypeEnum, bool)
type CertificateBundlePublicOnly
    func (m CertificateBundlePublicOnly) GetCertChainPem() *string
    func (m CertificateBundlePublicOnly) GetCertificateId() *string
    func (m CertificateBundlePublicOnly) GetCertificateName() *string
    func (m CertificateBundlePublicOnly) GetCertificatePem() *string
    func (m CertificateBundlePublicOnly) GetRevocationStatus() *RevocationStatus
    func (m CertificateBundlePublicOnly) GetSerialNumber() *string
    func (m CertificateBundlePublicOnly) GetStages() []VersionStageEnum
    func (m CertificateBundlePublicOnly) GetTimeCreated() *common.SDKTime
    func (m CertificateBundlePublicOnly) GetValidity() *Validity
    func (m CertificateBundlePublicOnly) GetVersionName() *string
    func (m CertificateBundlePublicOnly) GetVersionNumber() *int64
    func (m CertificateBundlePublicOnly) MarshalJSON() (buff []byte, e error)
    func (m CertificateBundlePublicOnly) String() string
    func (m CertificateBundlePublicOnly) ValidateEnumValue() (bool, error)
type CertificateBundleVersionCollection
    func (m CertificateBundleVersionCollection) String() string
    func (m CertificateBundleVersionCollection) ValidateEnumValue() (bool, error)
type CertificateBundleVersionSummary
    func (m CertificateBundleVersionSummary) String() string
    func (m CertificateBundleVersionSummary) ValidateEnumValue() (bool, error)
type CertificateBundleWithPrivateKey
    func (m CertificateBundleWithPrivateKey) GetCertChainPem() *string
    func (m CertificateBundleWithPrivateKey) GetCertificateId() *string
    func (m CertificateBundleWithPrivateKey) GetCertificateName() *string
    func (m CertificateBundleWithPrivateKey) GetCertificatePem() *string
    func (m CertificateBundleWithPrivateKey) GetRevocationStatus() *RevocationStatus
    func (m CertificateBundleWithPrivateKey) GetSerialNumber() *string
    func (m CertificateBundleWithPrivateKey) GetStages() []VersionStageEnum
    func (m CertificateBundleWithPrivateKey) GetTimeCreated() *common.SDKTime
    func (m CertificateBundleWithPrivateKey) GetValidity() *Validity
    func (m CertificateBundleWithPrivateKey) GetVersionName() *string
    func (m CertificateBundleWithPrivateKey) GetVersionNumber() *int64
    func (m CertificateBundleWithPrivateKey) MarshalJSON() (buff []byte, e error)
    func (m CertificateBundleWithPrivateKey) String() string
    func (m CertificateBundleWithPrivateKey) ValidateEnumValue() (bool, error)
type CertificatesClient
    func NewCertificatesClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CertificatesClient, err error)
    func NewCertificatesClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CertificatesClient, err error)
    func (client *CertificatesClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client CertificatesClient) GetCaBundle(ctx context.Context, request GetCaBundleRequest) (response GetCaBundleResponse, err error)
    func (client CertificatesClient) GetCertificateAuthorityBundle(ctx context.Context, request GetCertificateAuthorityBundleRequest) (response GetCertificateAuthorityBundleResponse, err error)
    func (client CertificatesClient) GetCertificateBundle(ctx context.Context, request GetCertificateBundleRequest) (response GetCertificateBundleResponse, err error)
    func (client CertificatesClient) ListCertificateAuthorityBundleVersions(ctx context.Context, request ListCertificateAuthorityBundleVersionsRequest) (response ListCertificateAuthorityBundleVersionsResponse, err error)
    func (client CertificatesClient) ListCertificateBundleVersions(ctx context.Context, request ListCertificateBundleVersionsRequest) (response ListCertificateBundleVersionsResponse, err error)
    func (client *CertificatesClient) SetRegion(region string)
type GetCaBundleRequest
    func (request GetCaBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetCaBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetCaBundleRequest) RetryPolicy() *common.RetryPolicy
    func (request GetCaBundleRequest) String() string
    func (request GetCaBundleRequest) ValidateEnumValue() (bool, error)
type GetCaBundleResponse
    func (response GetCaBundleResponse) HTTPResponse() *http.Response
    func (response GetCaBundleResponse) String() string
type GetCertificateAuthorityBundleRequest
    func (request GetCertificateAuthorityBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetCertificateAuthorityBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetCertificateAuthorityBundleRequest) RetryPolicy() *common.RetryPolicy
    func (request GetCertificateAuthorityBundleRequest) String() string
    func (request GetCertificateAuthorityBundleRequest) ValidateEnumValue() (bool, error)
type GetCertificateAuthorityBundleResponse
    func (response GetCertificateAuthorityBundleResponse) HTTPResponse() *http.Response
    func (response GetCertificateAuthorityBundleResponse) String() string
type GetCertificateAuthorityBundleStageEnum
    func GetGetCertificateAuthorityBundleStageEnumValues() []GetCertificateAuthorityBundleStageEnum
    func GetMappingGetCertificateAuthorityBundleStageEnum(val string) (GetCertificateAuthorityBundleStageEnum, bool)
type GetCertificateBundleCertificateBundleTypeEnum
    func GetGetCertificateBundleCertificateBundleTypeEnumValues() []GetCertificateBundleCertificateBundleTypeEnum
    func GetMappingGetCertificateBundleCertificateBundleTypeEnum(val string) (GetCertificateBundleCertificateBundleTypeEnum, bool)
type GetCertificateBundleRequest
    func (request GetCertificateBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetCertificateBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetCertificateBundleRequest) RetryPolicy() *common.RetryPolicy
    func (request GetCertificateBundleRequest) String() string
    func (request GetCertificateBundleRequest) ValidateEnumValue() (bool, error)
type GetCertificateBundleResponse
    func (response GetCertificateBundleResponse) HTTPResponse() *http.Response
    func (response GetCertificateBundleResponse) String() string
type GetCertificateBundleStageEnum
    func GetGetCertificateBundleStageEnumValues() []GetCertificateBundleStageEnum
    func GetMappingGetCertificateBundleStageEnum(val string) (GetCertificateBundleStageEnum, bool)
type ListCertificateAuthorityBundleVersionsRequest
    func (request ListCertificateAuthorityBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListCertificateAuthorityBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListCertificateAuthorityBundleVersionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListCertificateAuthorityBundleVersionsRequest) String() string
    func (request ListCertificateAuthorityBundleVersionsRequest) ValidateEnumValue() (bool, error)
type ListCertificateAuthorityBundleVersionsResponse
    func (response ListCertificateAuthorityBundleVersionsResponse) HTTPResponse() *http.Response
    func (response ListCertificateAuthorityBundleVersionsResponse) String() string
type ListCertificateAuthorityBundleVersionsSortByEnum
    func GetListCertificateAuthorityBundleVersionsSortByEnumValues() []ListCertificateAuthorityBundleVersionsSortByEnum
    func GetMappingListCertificateAuthorityBundleVersionsSortByEnum(val string) (ListCertificateAuthorityBundleVersionsSortByEnum, bool)
type ListCertificateAuthorityBundleVersionsSortOrderEnum
    func GetListCertificateAuthorityBundleVersionsSortOrderEnumValues() []ListCertificateAuthorityBundleVersionsSortOrderEnum
    func GetMappingListCertificateAuthorityBundleVersionsSortOrderEnum(val string) (ListCertificateAuthorityBundleVersionsSortOrderEnum, bool)
type ListCertificateBundleVersionsRequest
    func (request ListCertificateBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListCertificateBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListCertificateBundleVersionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListCertificateBundleVersionsRequest) String() string
    func (request ListCertificateBundleVersionsRequest) ValidateEnumValue() (bool, error)
type ListCertificateBundleVersionsResponse
    func (response ListCertificateBundleVersionsResponse) HTTPResponse() *http.Response
    func (response ListCertificateBundleVersionsResponse) String() string
type ListCertificateBundleVersionsSortByEnum
    func GetListCertificateBundleVersionsSortByEnumValues() []ListCertificateBundleVersionsSortByEnum
    func GetMappingListCertificateBundleVersionsSortByEnum(val string) (ListCertificateBundleVersionsSortByEnum, bool)
type ListCertificateBundleVersionsSortOrderEnum
    func GetListCertificateBundleVersionsSortOrderEnumValues() []ListCertificateBundleVersionsSortOrderEnum
    func GetMappingListCertificateBundleVersionsSortOrderEnum(val string) (ListCertificateBundleVersionsSortOrderEnum, bool)
type RevocationReasonEnum
    func GetMappingRevocationReasonEnum(val string) (RevocationReasonEnum, bool)
    func GetRevocationReasonEnumValues() []RevocationReasonEnum
type RevocationStatus
    func (m RevocationStatus) String() string
    func (m RevocationStatus) ValidateEnumValue() (bool, error)
type Validity
    func (m Validity) String() string
    func (m Validity) ValidateEnumValue() (bool, error)
type VersionStageEnum
    func GetMappingVersionStageEnum(val string) (VersionStageEnum, bool)
    func GetVersionStageEnumValues() []VersionStageEnum

Package files

ca_bundle.go certificate_authority_bundle.go certificate_authority_bundle_version_collection.go certificate_authority_bundle_version_summary.go certificate_bundle.go certificate_bundle_public_only.go certificate_bundle_version_collection.go certificate_bundle_version_summary.go certificate_bundle_with_private_key.go certificates_client.go get_ca_bundle_request_response.go get_certificate_authority_bundle_request_response.go get_certificate_bundle_request_response.go list_certificate_authority_bundle_versions_request_response.go list_certificate_bundle_versions_request_response.go revocation_reason.go revocation_status.go validity.go version_stage.go

func GetCertificateBundleCertificateBundleTypeEnumStringValues

func GetCertificateBundleCertificateBundleTypeEnumStringValues() []string

GetCertificateBundleCertificateBundleTypeEnumStringValues Enumerates the set of values in String for CertificateBundleCertificateBundleTypeEnum

func GetGetCertificateAuthorityBundleStageEnumStringValues

func GetGetCertificateAuthorityBundleStageEnumStringValues() []string

GetGetCertificateAuthorityBundleStageEnumStringValues Enumerates the set of values in String for GetCertificateAuthorityBundleStageEnum

func GetGetCertificateBundleCertificateBundleTypeEnumStringValues

func GetGetCertificateBundleCertificateBundleTypeEnumStringValues() []string

GetGetCertificateBundleCertificateBundleTypeEnumStringValues Enumerates the set of values in String for GetCertificateBundleCertificateBundleTypeEnum

func GetGetCertificateBundleStageEnumStringValues

func GetGetCertificateBundleStageEnumStringValues() []string

GetGetCertificateBundleStageEnumStringValues Enumerates the set of values in String for GetCertificateBundleStageEnum

func GetListCertificateAuthorityBundleVersionsSortByEnumStringValues

func GetListCertificateAuthorityBundleVersionsSortByEnumStringValues() []string

GetListCertificateAuthorityBundleVersionsSortByEnumStringValues Enumerates the set of values in String for ListCertificateAuthorityBundleVersionsSortByEnum

func GetListCertificateAuthorityBundleVersionsSortOrderEnumStringValues

func GetListCertificateAuthorityBundleVersionsSortOrderEnumStringValues() []string

GetListCertificateAuthorityBundleVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListCertificateAuthorityBundleVersionsSortOrderEnum

func GetListCertificateBundleVersionsSortByEnumStringValues

func GetListCertificateBundleVersionsSortByEnumStringValues() []string

GetListCertificateBundleVersionsSortByEnumStringValues Enumerates the set of values in String for ListCertificateBundleVersionsSortByEnum

func GetListCertificateBundleVersionsSortOrderEnumStringValues

func GetListCertificateBundleVersionsSortOrderEnumStringValues() []string

GetListCertificateBundleVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListCertificateBundleVersionsSortOrderEnum

func GetRevocationReasonEnumStringValues

func GetRevocationReasonEnumStringValues() []string

GetRevocationReasonEnumStringValues Enumerates the set of values in String for RevocationReasonEnum

func GetVersionStageEnumStringValues

func GetVersionStageEnumStringValues() []string

GetVersionStageEnumStringValues Enumerates the set of values in String for VersionStageEnum

type CaBundle

CaBundle The contents of the CA bundle (root and intermediate certificates), properties of the CA bundle, and user-provided contextual metadata for the CA bundle.

type CaBundle struct {

    // The OCID of the CA bundle.
    Id *string `mandatory:"true" json:"id"`

    // A user-friendly name for the CA bundle. Names are unique within a compartment. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
    Name *string `mandatory:"true" json:"name"`

    // Certificates (in PEM format) in the CA bundle. Can be of arbitrary length.
    CaBundlePem *string `mandatory:"true" json:"caBundlePem"`
}

func (CaBundle) String

func (m CaBundle) String() string

func (CaBundle) ValidateEnumValue

func (m CaBundle) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificateAuthorityBundle

CertificateAuthorityBundle The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate.

type CertificateAuthorityBundle struct {

    // The OCID of the certificate authority (CA).
    CertificateAuthorityId *string `mandatory:"true" json:"certificateAuthorityId"`

    // The name of the CA.
    CertificateAuthorityName *string `mandatory:"true" json:"certificateAuthorityName"`

    // A unique certificate identifier used in certificate revocation tracking, formatted as octets.
    // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF`
    SerialNumber *string `mandatory:"true" json:"serialNumber"`

    // The certificate (in PEM format) for this CA version.
    CertificatePem *string `mandatory:"true" json:"certificatePem"`

    // A property indicating when the CA was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The version number of the CA.
    VersionNumber *int64 `mandatory:"true" json:"versionNumber"`

    Validity *Validity `mandatory:"true" json:"validity"`

    // A list of rotation states for this CA.
    Stages []VersionStageEnum `mandatory:"true" json:"stages"`

    // The certificate chain (in PEM format) for this CA version.
    CertChainPem *string `mandatory:"false" json:"certChainPem"`

    // The name of the CA.
    VersionName *string `mandatory:"false" json:"versionName"`

    RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"`
}

func (CertificateAuthorityBundle) String

func (m CertificateAuthorityBundle) String() string

func (CertificateAuthorityBundle) ValidateEnumValue

func (m CertificateAuthorityBundle) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificateAuthorityBundleVersionCollection

CertificateAuthorityBundleVersionCollection The results of a certificate authority (CA) version search. Results contain CA version summary objects and other data.

type CertificateAuthorityBundleVersionCollection struct {

    // A list of CA version summary objects.
    Items []CertificateAuthorityBundleVersionSummary `mandatory:"true" json:"items"`
}

func (CertificateAuthorityBundleVersionCollection) String

func (m CertificateAuthorityBundleVersionCollection) String() string

func (CertificateAuthorityBundleVersionCollection) ValidateEnumValue

func (m CertificateAuthorityBundleVersionCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificateAuthorityBundleVersionSummary

CertificateAuthorityBundleVersionSummary The properties of a version of a bundle for a certificate authority (CA). Certificate authority bundle version summary objects do not include the actual contents of the certificate.

type CertificateAuthorityBundleVersionSummary struct {

    // The OCID of the certificate authority (CA).
    CertificateAuthorityId *string `mandatory:"true" json:"certificateAuthorityId"`

    // An optional property indicating when the CA version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The version number of the CA.
    VersionNumber *int64 `mandatory:"true" json:"versionNumber"`

    // The name of the CA.
    CertificateAuthorityName *string `mandatory:"true" json:"certificateAuthorityName"`

    // A list of rotation states for this CA version.
    Stages []VersionStageEnum `mandatory:"true" json:"stages"`

    // A unique certificate identifier used in certificate revocation tracking, formatted as octets.
    // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF`
    SerialNumber *string `mandatory:"false" json:"serialNumber"`

    // The name of the CA version. When this value is not null, the name is unique across CA versions for a given CA.
    VersionName *string `mandatory:"false" json:"versionName"`

    // An optional property indicating when to delete the CA version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"`

    Validity *Validity `mandatory:"false" json:"validity"`

    RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"`
}

func (CertificateAuthorityBundleVersionSummary) String

func (m CertificateAuthorityBundleVersionSummary) String() string

func (CertificateAuthorityBundleVersionSummary) ValidateEnumValue

func (m CertificateAuthorityBundleVersionSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificateBundle

CertificateBundle The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate.

type CertificateBundle interface {

    // The OCID of the certificate.
    GetCertificateId() *string

    // The name of the certificate.
    GetCertificateName() *string

    // The version number of the certificate.
    GetVersionNumber() *int64

    // A unique certificate identifier used in certificate revocation tracking, formatted as octets.
    // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF`
    GetSerialNumber() *string

    // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    GetTimeCreated() *common.SDKTime

    GetValidity() *Validity

    // A list of rotation states for the certificate bundle.
    GetStages() []VersionStageEnum

    // The certificate in PEM format.
    GetCertificatePem() *string

    // The certificate chain (in PEM format) for the certificate bundle.
    GetCertChainPem() *string

    // The name of the certificate version.
    GetVersionName() *string

    GetRevocationStatus() *RevocationStatus
}

type CertificateBundleCertificateBundleTypeEnum

CertificateBundleCertificateBundleTypeEnum Enum with underlying type: string

type CertificateBundleCertificateBundleTypeEnum string

Set of constants representing the allowable values for CertificateBundleCertificateBundleTypeEnum

const (
    CertificateBundleCertificateBundleTypePublicOnly     CertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_PUBLIC_ONLY"
    CertificateBundleCertificateBundleTypeWithPrivateKey CertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY"
)

func GetCertificateBundleCertificateBundleTypeEnumValues

func GetCertificateBundleCertificateBundleTypeEnumValues() []CertificateBundleCertificateBundleTypeEnum

GetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for CertificateBundleCertificateBundleTypeEnum

func GetMappingCertificateBundleCertificateBundleTypeEnum

func GetMappingCertificateBundleCertificateBundleTypeEnum(val string) (CertificateBundleCertificateBundleTypeEnum, bool)

GetMappingCertificateBundleCertificateBundleTypeEnum performs case Insensitive comparison on enum value and return the desired enum

type CertificateBundlePublicOnly

CertificateBundlePublicOnly A certificate bundle, not including the private key.

type CertificateBundlePublicOnly struct {

    // The OCID of the certificate.
    CertificateId *string `mandatory:"true" json:"certificateId"`

    // The name of the certificate.
    CertificateName *string `mandatory:"true" json:"certificateName"`

    // The version number of the certificate.
    VersionNumber *int64 `mandatory:"true" json:"versionNumber"`

    // A unique certificate identifier used in certificate revocation tracking, formatted as octets.
    // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF`
    SerialNumber *string `mandatory:"true" json:"serialNumber"`

    // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    Validity *Validity `mandatory:"true" json:"validity"`

    // The certificate in PEM format.
    CertificatePem *string `mandatory:"false" json:"certificatePem"`

    // The certificate chain (in PEM format) for the certificate bundle.
    CertChainPem *string `mandatory:"false" json:"certChainPem"`

    // The name of the certificate version.
    VersionName *string `mandatory:"false" json:"versionName"`

    RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"`

    // A list of rotation states for the certificate bundle.
    Stages []VersionStageEnum `mandatory:"true" json:"stages"`
}

func (CertificateBundlePublicOnly) GetCertChainPem

func (m CertificateBundlePublicOnly) GetCertChainPem() *string

GetCertChainPem returns CertChainPem

func (CertificateBundlePublicOnly) GetCertificateId

func (m CertificateBundlePublicOnly) GetCertificateId() *string

GetCertificateId returns CertificateId

func (CertificateBundlePublicOnly) GetCertificateName

func (m CertificateBundlePublicOnly) GetCertificateName() *string

GetCertificateName returns CertificateName

func (CertificateBundlePublicOnly) GetCertificatePem

func (m CertificateBundlePublicOnly) GetCertificatePem() *string

GetCertificatePem returns CertificatePem

func (CertificateBundlePublicOnly) GetRevocationStatus

func (m CertificateBundlePublicOnly) GetRevocationStatus() *RevocationStatus

GetRevocationStatus returns RevocationStatus

func (CertificateBundlePublicOnly) GetSerialNumber

func (m CertificateBundlePublicOnly) GetSerialNumber() *string

GetSerialNumber returns SerialNumber

func (CertificateBundlePublicOnly) GetStages

func (m CertificateBundlePublicOnly) GetStages() []VersionStageEnum

GetStages returns Stages

func (CertificateBundlePublicOnly) GetTimeCreated

func (m CertificateBundlePublicOnly) GetTimeCreated() *common.SDKTime

GetTimeCreated returns TimeCreated

func (CertificateBundlePublicOnly) GetValidity

func (m CertificateBundlePublicOnly) GetValidity() *Validity

GetValidity returns Validity

func (CertificateBundlePublicOnly) GetVersionName

func (m CertificateBundlePublicOnly) GetVersionName() *string

GetVersionName returns VersionName

func (CertificateBundlePublicOnly) GetVersionNumber

func (m CertificateBundlePublicOnly) GetVersionNumber() *int64

GetVersionNumber returns VersionNumber

func (CertificateBundlePublicOnly) MarshalJSON

func (m CertificateBundlePublicOnly) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (CertificateBundlePublicOnly) String

func (m CertificateBundlePublicOnly) String() string

func (CertificateBundlePublicOnly) ValidateEnumValue

func (m CertificateBundlePublicOnly) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificateBundleVersionCollection

CertificateBundleVersionCollection The results of a certificate bundle versions search. Results contain certificate bundle version summary objects.

type CertificateBundleVersionCollection struct {

    // A list of certificate bundle version summary objects.
    Items []CertificateBundleVersionSummary `mandatory:"true" json:"items"`
}

func (CertificateBundleVersionCollection) String

func (m CertificateBundleVersionCollection) String() string

func (CertificateBundleVersionCollection) ValidateEnumValue

func (m CertificateBundleVersionCollection) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificateBundleVersionSummary

CertificateBundleVersionSummary The properties of the certificate bundle. Certificate bundle version summary objects do not include the actual contents of the certificate.

type CertificateBundleVersionSummary struct {

    // The OCID of the certificate.
    CertificateId *string `mandatory:"true" json:"certificateId"`

    // The name of the certificate.
    CertificateName *string `mandatory:"true" json:"certificateName"`

    // The version number of the certificate.
    VersionNumber *int64 `mandatory:"true" json:"versionNumber"`

    // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // A list of rotation states for this certificate bundle version.
    Stages []VersionStageEnum `mandatory:"true" json:"stages"`

    // A unique certificate identifier used in certificate revocation tracking, formatted as octets.
    // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF`
    SerialNumber *string `mandatory:"false" json:"serialNumber"`

    // The name of the certificate version.
    VersionName *string `mandatory:"false" json:"versionName"`

    Validity *Validity `mandatory:"false" json:"validity"`

    // An optional property indicating when to delete the certificate version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"`

    RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"`
}

func (CertificateBundleVersionSummary) String

func (m CertificateBundleVersionSummary) String() string

func (CertificateBundleVersionSummary) ValidateEnumValue

func (m CertificateBundleVersionSummary) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificateBundleWithPrivateKey

CertificateBundleWithPrivateKey A certificate bundle, including the private key.

type CertificateBundleWithPrivateKey struct {

    // The OCID of the certificate.
    CertificateId *string `mandatory:"true" json:"certificateId"`

    // The name of the certificate.
    CertificateName *string `mandatory:"true" json:"certificateName"`

    // The version number of the certificate.
    VersionNumber *int64 `mandatory:"true" json:"versionNumber"`

    // A unique certificate identifier used in certificate revocation tracking, formatted as octets.
    // Example: `03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF`
    SerialNumber *string `mandatory:"true" json:"serialNumber"`

    // An optional property indicating when the certificate version was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    Validity *Validity `mandatory:"true" json:"validity"`

    // The private key (in PEM format) for the certificate.
    PrivateKeyPem *string `mandatory:"true" json:"privateKeyPem"`

    // The certificate in PEM format.
    CertificatePem *string `mandatory:"false" json:"certificatePem"`

    // The certificate chain (in PEM format) for the certificate bundle.
    CertChainPem *string `mandatory:"false" json:"certChainPem"`

    // The name of the certificate version.
    VersionName *string `mandatory:"false" json:"versionName"`

    RevocationStatus *RevocationStatus `mandatory:"false" json:"revocationStatus"`

    // An optional passphrase for the private key.
    PrivateKeyPemPassphrase *string `mandatory:"false" json:"privateKeyPemPassphrase"`

    // A list of rotation states for the certificate bundle.
    Stages []VersionStageEnum `mandatory:"true" json:"stages"`
}

func (CertificateBundleWithPrivateKey) GetCertChainPem

func (m CertificateBundleWithPrivateKey) GetCertChainPem() *string

GetCertChainPem returns CertChainPem

func (CertificateBundleWithPrivateKey) GetCertificateId

func (m CertificateBundleWithPrivateKey) GetCertificateId() *string

GetCertificateId returns CertificateId

func (CertificateBundleWithPrivateKey) GetCertificateName

func (m CertificateBundleWithPrivateKey) GetCertificateName() *string

GetCertificateName returns CertificateName

func (CertificateBundleWithPrivateKey) GetCertificatePem

func (m CertificateBundleWithPrivateKey) GetCertificatePem() *string

GetCertificatePem returns CertificatePem

func (CertificateBundleWithPrivateKey) GetRevocationStatus

func (m CertificateBundleWithPrivateKey) GetRevocationStatus() *RevocationStatus

GetRevocationStatus returns RevocationStatus

func (CertificateBundleWithPrivateKey) GetSerialNumber

func (m CertificateBundleWithPrivateKey) GetSerialNumber() *string

GetSerialNumber returns SerialNumber

func (CertificateBundleWithPrivateKey) GetStages

func (m CertificateBundleWithPrivateKey) GetStages() []VersionStageEnum

GetStages returns Stages

func (CertificateBundleWithPrivateKey) GetTimeCreated

func (m CertificateBundleWithPrivateKey) GetTimeCreated() *common.SDKTime

GetTimeCreated returns TimeCreated

func (CertificateBundleWithPrivateKey) GetValidity

func (m CertificateBundleWithPrivateKey) GetValidity() *Validity

GetValidity returns Validity

func (CertificateBundleWithPrivateKey) GetVersionName

func (m CertificateBundleWithPrivateKey) GetVersionName() *string

GetVersionName returns VersionName

func (CertificateBundleWithPrivateKey) GetVersionNumber

func (m CertificateBundleWithPrivateKey) GetVersionNumber() *int64

GetVersionNumber returns VersionNumber

func (CertificateBundleWithPrivateKey) MarshalJSON

func (m CertificateBundleWithPrivateKey) MarshalJSON() (buff []byte, e error)

MarshalJSON marshals to json representation

func (CertificateBundleWithPrivateKey) String

func (m CertificateBundleWithPrivateKey) String() string

func (CertificateBundleWithPrivateKey) ValidateEnumValue

func (m CertificateBundleWithPrivateKey) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type CertificatesClient

CertificatesClient a client for Certificates

type CertificatesClient struct {
    common.BaseClient
    // contains filtered or unexported fields
}

func NewCertificatesClientWithConfigurationProvider

func NewCertificatesClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client CertificatesClient, err error)

NewCertificatesClientWithConfigurationProvider Creates a new default Certificates client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region

func NewCertificatesClientWithOboToken

func NewCertificatesClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client CertificatesClient, err error)

NewCertificatesClientWithOboToken Creates a new default Certificates client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer

as well as reading the region

func (*CertificatesClient) ConfigurationProvider

func (client *CertificatesClient) ConfigurationProvider() *common.ConfigurationProvider

ConfigurationProvider the ConfigurationProvider used in this client, or null if none set

func (CertificatesClient) GetCaBundle

func (client CertificatesClient) GetCaBundle(ctx context.Context, request GetCaBundleRequest) (response GetCaBundleResponse, err error)

GetCaBundle Gets a ca-bundle bundle.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/GetCaBundle.go.html to see an example of how to use GetCaBundle API.

func (CertificatesClient) GetCertificateAuthorityBundle

func (client CertificatesClient) GetCertificateAuthorityBundle(ctx context.Context, request GetCertificateAuthorityBundleRequest) (response GetCertificateAuthorityBundleResponse, err error)

GetCertificateAuthorityBundle Gets a certificate authority bundle that matches either the specified `stage`, `name`, or `versionNumber` parameter. If none of these parameters are provided, the bundle for the certificate authority version marked as `CURRENT` will be returned.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/GetCertificateAuthorityBundle.go.html to see an example of how to use GetCertificateAuthorityBundle API.

func (CertificatesClient) GetCertificateBundle

func (client CertificatesClient) GetCertificateBundle(ctx context.Context, request GetCertificateBundleRequest) (response GetCertificateBundleResponse, err error)

GetCertificateBundle Gets a certificate bundle that matches either the specified `stage`, `versionName`, or `versionNumber` parameter. If none of these parameters are provided, the bundle for the certificate version marked as `CURRENT` will be returned. By default, the private key is not included in the query result, and a CertificateBundlePublicOnly is returned. If the private key is needed, use the CertificateBundleTypeQueryParam parameter to get a CertificateBundleWithPrivateKey response.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/GetCertificateBundle.go.html to see an example of how to use GetCertificateBundle API.

func (CertificatesClient) ListCertificateAuthorityBundleVersions

func (client CertificatesClient) ListCertificateAuthorityBundleVersions(ctx context.Context, request ListCertificateAuthorityBundleVersionsRequest) (response ListCertificateAuthorityBundleVersionsResponse, err error)

ListCertificateAuthorityBundleVersions Lists all certificate authority bundle versions for the specified certificate authority.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/ListCertificateAuthorityBundleVersions.go.html to see an example of how to use ListCertificateAuthorityBundleVersions API.

func (CertificatesClient) ListCertificateBundleVersions

func (client CertificatesClient) ListCertificateBundleVersions(ctx context.Context, request ListCertificateBundleVersionsRequest) (response ListCertificateBundleVersionsResponse, err error)

ListCertificateBundleVersions Lists all certificate bundle versions for the specified certificate.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/ListCertificateBundleVersions.go.html to see an example of how to use ListCertificateBundleVersions API.

func (*CertificatesClient) SetRegion

func (client *CertificatesClient) SetRegion(region string)

SetRegion overrides the region of this client.

type GetCaBundleRequest

GetCaBundleRequest wrapper for the GetCaBundle operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/GetCaBundle.go.html to see an example of how to use GetCaBundleRequest.

type GetCaBundleRequest struct {

    // The OCID of the CA bundle.
    CaBundleId *string `mandatory:"true" contributesTo:"path" name:"caBundleId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
    // please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetCaBundleRequest) BinaryRequestBody

func (request GetCaBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetCaBundleRequest) HTTPRequest

func (request GetCaBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetCaBundleRequest) RetryPolicy

func (request GetCaBundleRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetCaBundleRequest) String

func (request GetCaBundleRequest) String() string

func (GetCaBundleRequest) ValidateEnumValue

func (request GetCaBundleRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetCaBundleResponse

GetCaBundleResponse wrapper for the GetCaBundle operation

type GetCaBundleResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CaBundle instance
    CaBundle `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetCaBundleResponse) HTTPResponse

func (response GetCaBundleResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetCaBundleResponse) String

func (response GetCaBundleResponse) String() string

type GetCertificateAuthorityBundleRequest

GetCertificateAuthorityBundleRequest wrapper for the GetCertificateAuthorityBundle operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/GetCertificateAuthorityBundle.go.html to see an example of how to use GetCertificateAuthorityBundleRequest.

type GetCertificateAuthorityBundleRequest struct {

    // The OCID of the certificate authority (CA).
    CertificateAuthorityId *string `mandatory:"true" contributesTo:"path" name:"certificateAuthorityId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
    // please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The version number of the certificate authority (CA).
    VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"`

    // The name of the certificate authority (CA). (This might be referred to as the name of the CA version, as every CA consists of at least one version.) Names are unique across versions of a given CA.
    CertificateAuthorityVersionName *string `mandatory:"false" contributesTo:"query" name:"certificateAuthorityVersionName"`

    // The rotation state of the certificate version.
    Stage GetCertificateAuthorityBundleStageEnum `mandatory:"false" contributesTo:"query" name:"stage" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetCertificateAuthorityBundleRequest) BinaryRequestBody

func (request GetCertificateAuthorityBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetCertificateAuthorityBundleRequest) HTTPRequest

func (request GetCertificateAuthorityBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetCertificateAuthorityBundleRequest) RetryPolicy

func (request GetCertificateAuthorityBundleRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetCertificateAuthorityBundleRequest) String

func (request GetCertificateAuthorityBundleRequest) String() string

func (GetCertificateAuthorityBundleRequest) ValidateEnumValue

func (request GetCertificateAuthorityBundleRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetCertificateAuthorityBundleResponse

GetCertificateAuthorityBundleResponse wrapper for the GetCertificateAuthorityBundle operation

type GetCertificateAuthorityBundleResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CertificateAuthorityBundle instance
    CertificateAuthorityBundle `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetCertificateAuthorityBundleResponse) HTTPResponse

func (response GetCertificateAuthorityBundleResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetCertificateAuthorityBundleResponse) String

func (response GetCertificateAuthorityBundleResponse) String() string

type GetCertificateAuthorityBundleStageEnum

GetCertificateAuthorityBundleStageEnum Enum with underlying type: string

type GetCertificateAuthorityBundleStageEnum string

Set of constants representing the allowable values for GetCertificateAuthorityBundleStageEnum

const (
    GetCertificateAuthorityBundleStageCurrent    GetCertificateAuthorityBundleStageEnum = "CURRENT"
    GetCertificateAuthorityBundleStagePending    GetCertificateAuthorityBundleStageEnum = "PENDING"
    GetCertificateAuthorityBundleStageLatest     GetCertificateAuthorityBundleStageEnum = "LATEST"
    GetCertificateAuthorityBundleStagePrevious   GetCertificateAuthorityBundleStageEnum = "PREVIOUS"
    GetCertificateAuthorityBundleStageDeprecated GetCertificateAuthorityBundleStageEnum = "DEPRECATED"
)

func GetGetCertificateAuthorityBundleStageEnumValues

func GetGetCertificateAuthorityBundleStageEnumValues() []GetCertificateAuthorityBundleStageEnum

GetGetCertificateAuthorityBundleStageEnumValues Enumerates the set of values for GetCertificateAuthorityBundleStageEnum

func GetMappingGetCertificateAuthorityBundleStageEnum

func GetMappingGetCertificateAuthorityBundleStageEnum(val string) (GetCertificateAuthorityBundleStageEnum, bool)

GetMappingGetCertificateAuthorityBundleStageEnum performs case Insensitive comparison on enum value and return the desired enum

type GetCertificateBundleCertificateBundleTypeEnum

GetCertificateBundleCertificateBundleTypeEnum Enum with underlying type: string

type GetCertificateBundleCertificateBundleTypeEnum string

Set of constants representing the allowable values for GetCertificateBundleCertificateBundleTypeEnum

const (
    GetCertificateBundleCertificateBundleTypePublicOnly     GetCertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_PUBLIC_ONLY"
    GetCertificateBundleCertificateBundleTypeWithPrivateKey GetCertificateBundleCertificateBundleTypeEnum = "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY"
)

func GetGetCertificateBundleCertificateBundleTypeEnumValues

func GetGetCertificateBundleCertificateBundleTypeEnumValues() []GetCertificateBundleCertificateBundleTypeEnum

GetGetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for GetCertificateBundleCertificateBundleTypeEnum

func GetMappingGetCertificateBundleCertificateBundleTypeEnum

func GetMappingGetCertificateBundleCertificateBundleTypeEnum(val string) (GetCertificateBundleCertificateBundleTypeEnum, bool)

GetMappingGetCertificateBundleCertificateBundleTypeEnum performs case Insensitive comparison on enum value and return the desired enum

type GetCertificateBundleRequest

GetCertificateBundleRequest wrapper for the GetCertificateBundle operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/GetCertificateBundle.go.html to see an example of how to use GetCertificateBundleRequest.

type GetCertificateBundleRequest struct {

    // The OCID of the certificate.
    CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
    // please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The version number of the certificate. The default value is 0, which means that this query parameter is ignored.
    VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"`

    // The name of the certificate. (This might be referred to as the name of the certificate version, as every certificate consists of at least one version.) Names are unique across versions of a given certificate.
    CertificateVersionName *string `mandatory:"false" contributesTo:"query" name:"certificateVersionName"`

    // The rotation state of the certificate version.
    Stage GetCertificateBundleStageEnum `mandatory:"false" contributesTo:"query" name:"stage" omitEmpty:"true"`

    // The type of certificate bundle. By default, the private key fields are not returned. When querying for certificate bundles, to return results with certificate contents, the private key in PEM format, and the private key passphrase, specify the value of this parameter as `CERTIFICATE_CONTENT_WITH_PRIVATE_KEY`.
    CertificateBundleType GetCertificateBundleCertificateBundleTypeEnum `mandatory:"false" contributesTo:"query" name:"certificateBundleType" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (GetCertificateBundleRequest) BinaryRequestBody

func (request GetCertificateBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (GetCertificateBundleRequest) HTTPRequest

func (request GetCertificateBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetCertificateBundleRequest) RetryPolicy

func (request GetCertificateBundleRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (GetCertificateBundleRequest) String

func (request GetCertificateBundleRequest) String() string

func (GetCertificateBundleRequest) ValidateEnumValue

func (request GetCertificateBundleRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type GetCertificateBundleResponse

GetCertificateBundleResponse wrapper for the GetCertificateBundle operation

type GetCertificateBundleResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CertificateBundle instance
    CertificateBundle `presentIn:"body"`

    // For optimistic concurrency control. See `if-match`.
    Etag *string `presentIn:"header" name:"etag"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (GetCertificateBundleResponse) HTTPResponse

func (response GetCertificateBundleResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (GetCertificateBundleResponse) String

func (response GetCertificateBundleResponse) String() string

type GetCertificateBundleStageEnum

GetCertificateBundleStageEnum Enum with underlying type: string

type GetCertificateBundleStageEnum string

Set of constants representing the allowable values for GetCertificateBundleStageEnum

const (
    GetCertificateBundleStageCurrent    GetCertificateBundleStageEnum = "CURRENT"
    GetCertificateBundleStagePending    GetCertificateBundleStageEnum = "PENDING"
    GetCertificateBundleStageLatest     GetCertificateBundleStageEnum = "LATEST"
    GetCertificateBundleStagePrevious   GetCertificateBundleStageEnum = "PREVIOUS"
    GetCertificateBundleStageDeprecated GetCertificateBundleStageEnum = "DEPRECATED"
)

func GetGetCertificateBundleStageEnumValues

func GetGetCertificateBundleStageEnumValues() []GetCertificateBundleStageEnum

GetGetCertificateBundleStageEnumValues Enumerates the set of values for GetCertificateBundleStageEnum

func GetMappingGetCertificateBundleStageEnum

func GetMappingGetCertificateBundleStageEnum(val string) (GetCertificateBundleStageEnum, bool)

GetMappingGetCertificateBundleStageEnum performs case Insensitive comparison on enum value and return the desired enum

type ListCertificateAuthorityBundleVersionsRequest

ListCertificateAuthorityBundleVersionsRequest wrapper for the ListCertificateAuthorityBundleVersions operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/ListCertificateAuthorityBundleVersions.go.html to see an example of how to use ListCertificateAuthorityBundleVersionsRequest.

type ListCertificateAuthorityBundleVersionsRequest struct {

    // The OCID of the certificate authority (CA).
    CertificateAuthorityId *string `mandatory:"true" contributesTo:"path" name:"certificateAuthorityId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
    // please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The field to sort by. You can specify only one sort order. The default
    // order for `VERSION_NUMBER` is ascending.
    SortBy ListCertificateAuthorityBundleVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListCertificateAuthorityBundleVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListCertificateAuthorityBundleVersionsRequest) BinaryRequestBody

func (request ListCertificateAuthorityBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListCertificateAuthorityBundleVersionsRequest) HTTPRequest

func (request ListCertificateAuthorityBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListCertificateAuthorityBundleVersionsRequest) RetryPolicy

func (request ListCertificateAuthorityBundleVersionsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListCertificateAuthorityBundleVersionsRequest) String

func (request ListCertificateAuthorityBundleVersionsRequest) String() string

func (ListCertificateAuthorityBundleVersionsRequest) ValidateEnumValue

func (request ListCertificateAuthorityBundleVersionsRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListCertificateAuthorityBundleVersionsResponse

ListCertificateAuthorityBundleVersionsResponse wrapper for the ListCertificateAuthorityBundleVersions operation

type ListCertificateAuthorityBundleVersionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CertificateAuthorityBundleVersionCollection instance
    CertificateAuthorityBundleVersionCollection `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (ListCertificateAuthorityBundleVersionsResponse) HTTPResponse

func (response ListCertificateAuthorityBundleVersionsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListCertificateAuthorityBundleVersionsResponse) String

func (response ListCertificateAuthorityBundleVersionsResponse) String() string

type ListCertificateAuthorityBundleVersionsSortByEnum

ListCertificateAuthorityBundleVersionsSortByEnum Enum with underlying type: string

type ListCertificateAuthorityBundleVersionsSortByEnum string

Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortByEnum

const (
    ListCertificateAuthorityBundleVersionsSortByVersionNumber ListCertificateAuthorityBundleVersionsSortByEnum = "VERSION_NUMBER"
)

func GetListCertificateAuthorityBundleVersionsSortByEnumValues

func GetListCertificateAuthorityBundleVersionsSortByEnumValues() []ListCertificateAuthorityBundleVersionsSortByEnum

GetListCertificateAuthorityBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortByEnum

func GetMappingListCertificateAuthorityBundleVersionsSortByEnum

func GetMappingListCertificateAuthorityBundleVersionsSortByEnum(val string) (ListCertificateAuthorityBundleVersionsSortByEnum, bool)

GetMappingListCertificateAuthorityBundleVersionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListCertificateAuthorityBundleVersionsSortOrderEnum

ListCertificateAuthorityBundleVersionsSortOrderEnum Enum with underlying type: string

type ListCertificateAuthorityBundleVersionsSortOrderEnum string

Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortOrderEnum

const (
    ListCertificateAuthorityBundleVersionsSortOrderAsc  ListCertificateAuthorityBundleVersionsSortOrderEnum = "ASC"
    ListCertificateAuthorityBundleVersionsSortOrderDesc ListCertificateAuthorityBundleVersionsSortOrderEnum = "DESC"
)

func GetListCertificateAuthorityBundleVersionsSortOrderEnumValues

func GetListCertificateAuthorityBundleVersionsSortOrderEnumValues() []ListCertificateAuthorityBundleVersionsSortOrderEnum

GetListCertificateAuthorityBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortOrderEnum

func GetMappingListCertificateAuthorityBundleVersionsSortOrderEnum

func GetMappingListCertificateAuthorityBundleVersionsSortOrderEnum(val string) (ListCertificateAuthorityBundleVersionsSortOrderEnum, bool)

GetMappingListCertificateAuthorityBundleVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type ListCertificateBundleVersionsRequest

ListCertificateBundleVersionsRequest wrapper for the ListCertificateBundleVersions operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.64.0/certificates/ListCertificateBundleVersions.go.html to see an example of how to use ListCertificateBundleVersionsRequest.

type ListCertificateBundleVersionsRequest struct {

    // The OCID of the certificate.
    CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request,
    // please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The field to sort by. You can specify only one sort order. The default
    // order for `VERSION_NUMBER` is ascending.
    SortBy ListCertificateBundleVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListCertificateBundleVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // Metadata about the request. This information will not be transmitted to the service, but
    // represents information that the SDK will consume to drive retry behavior.
    RequestMetadata common.RequestMetadata
}

func (ListCertificateBundleVersionsRequest) BinaryRequestBody

func (request ListCertificateBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)

BinaryRequestBody implements the OCIRequest interface

func (ListCertificateBundleVersionsRequest) HTTPRequest

func (request ListCertificateBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListCertificateBundleVersionsRequest) RetryPolicy

func (request ListCertificateBundleVersionsRequest) RetryPolicy() *common.RetryPolicy

RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.

func (ListCertificateBundleVersionsRequest) String

func (request ListCertificateBundleVersionsRequest) String() string

func (ListCertificateBundleVersionsRequest) ValidateEnumValue

func (request ListCertificateBundleVersionsRequest) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type ListCertificateBundleVersionsResponse

ListCertificateBundleVersionsResponse wrapper for the ListCertificateBundleVersions operation

type ListCertificateBundleVersionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The CertificateBundleVersionCollection instance
    CertificateBundleVersionCollection `presentIn:"body"`

    // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
}

func (ListCertificateBundleVersionsResponse) HTTPResponse

func (response ListCertificateBundleVersionsResponse) HTTPResponse() *http.Response

HTTPResponse implements the OCIResponse interface

func (ListCertificateBundleVersionsResponse) String

func (response ListCertificateBundleVersionsResponse) String() string

type ListCertificateBundleVersionsSortByEnum

ListCertificateBundleVersionsSortByEnum Enum with underlying type: string

type ListCertificateBundleVersionsSortByEnum string

Set of constants representing the allowable values for ListCertificateBundleVersionsSortByEnum

const (
    ListCertificateBundleVersionsSortByVersionNumber ListCertificateBundleVersionsSortByEnum = "VERSION_NUMBER"
)

func GetListCertificateBundleVersionsSortByEnumValues

func GetListCertificateBundleVersionsSortByEnumValues() []ListCertificateBundleVersionsSortByEnum

GetListCertificateBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortByEnum

func GetMappingListCertificateBundleVersionsSortByEnum

func GetMappingListCertificateBundleVersionsSortByEnum(val string) (ListCertificateBundleVersionsSortByEnum, bool)

GetMappingListCertificateBundleVersionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum

type ListCertificateBundleVersionsSortOrderEnum

ListCertificateBundleVersionsSortOrderEnum Enum with underlying type: string

type ListCertificateBundleVersionsSortOrderEnum string

Set of constants representing the allowable values for ListCertificateBundleVersionsSortOrderEnum

const (
    ListCertificateBundleVersionsSortOrderAsc  ListCertificateBundleVersionsSortOrderEnum = "ASC"
    ListCertificateBundleVersionsSortOrderDesc ListCertificateBundleVersionsSortOrderEnum = "DESC"
)

func GetListCertificateBundleVersionsSortOrderEnumValues

func GetListCertificateBundleVersionsSortOrderEnumValues() []ListCertificateBundleVersionsSortOrderEnum

GetListCertificateBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortOrderEnum

func GetMappingListCertificateBundleVersionsSortOrderEnum

func GetMappingListCertificateBundleVersionsSortOrderEnum(val string) (ListCertificateBundleVersionsSortOrderEnum, bool)

GetMappingListCertificateBundleVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum

type RevocationReasonEnum

RevocationReasonEnum Enum with underlying type: string

type RevocationReasonEnum string

Set of constants representing the allowable values for RevocationReasonEnum

const (
    RevocationReasonUnspecified          RevocationReasonEnum = "UNSPECIFIED"
    RevocationReasonKeyCompromise        RevocationReasonEnum = "KEY_COMPROMISE"
    RevocationReasonCaCompromise         RevocationReasonEnum = "CA_COMPROMISE"
    RevocationReasonAffiliationChanged   RevocationReasonEnum = "AFFILIATION_CHANGED"
    RevocationReasonSuperseded           RevocationReasonEnum = "SUPERSEDED"
    RevocationReasonCessationOfOperation RevocationReasonEnum = "CESSATION_OF_OPERATION"
    RevocationReasonPrivilegeWithdrawn   RevocationReasonEnum = "PRIVILEGE_WITHDRAWN"
    RevocationReasonAaCompromise         RevocationReasonEnum = "AA_COMPROMISE"
)

func GetMappingRevocationReasonEnum

func GetMappingRevocationReasonEnum(val string) (RevocationReasonEnum, bool)

GetMappingRevocationReasonEnum performs case Insensitive comparison on enum value and return the desired enum

func GetRevocationReasonEnumValues

func GetRevocationReasonEnumValues() []RevocationReasonEnum

GetRevocationReasonEnumValues Enumerates the set of values for RevocationReasonEnum

type RevocationStatus

RevocationStatus The current revocation status of the certificate or certificate authority (CA).

type RevocationStatus struct {

    // The time when the certificate or CA was revoked.
    TimeRevoked *common.SDKTime `mandatory:"true" json:"timeRevoked"`

    // The reason that the certificate or CA was revoked.
    RevocationReason RevocationReasonEnum `mandatory:"true" json:"revocationReason"`
}

func (RevocationStatus) String

func (m RevocationStatus) String() string

func (RevocationStatus) ValidateEnumValue

func (m RevocationStatus) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type Validity

Validity An object that describes a period of time during which an entity is valid.

type Validity struct {

    // The date on which the certificate validity period begins, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfValidityNotBefore *common.SDKTime `mandatory:"true" json:"timeOfValidityNotBefore"`

    // The date on which the certificate validity period ends, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfValidityNotAfter *common.SDKTime `mandatory:"true" json:"timeOfValidityNotAfter"`
}

func (Validity) String

func (m Validity) String() string

func (Validity) ValidateEnumValue

func (m Validity) ValidateEnumValue() (bool, error)

ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly

type VersionStageEnum

VersionStageEnum Enum with underlying type: string

type VersionStageEnum string

Set of constants representing the allowable values for VersionStageEnum

const (
    VersionStageCurrent    VersionStageEnum = "CURRENT"
    VersionStagePending    VersionStageEnum = "PENDING"
    VersionStageLatest     VersionStageEnum = "LATEST"
    VersionStagePrevious   VersionStageEnum = "PREVIOUS"
    VersionStageDeprecated VersionStageEnum = "DEPRECATED"
    VersionStageFailed     VersionStageEnum = "FAILED"
)

func GetMappingVersionStageEnum

func GetMappingVersionStageEnum(val string) (VersionStageEnum, bool)

GetMappingVersionStageEnum performs case Insensitive comparison on enum value and return the desired enum

func GetVersionStageEnumValues

func GetVersionStageEnumValues() []VersionStageEnum

GetVersionStageEnumValues Enumerates the set of values for VersionStageEnum