certificates

package
v52.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: Apache-2.0, UPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaBundle

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"`
}

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.

func (CaBundle) String

func (m CaBundle) String() string

type CertificateAuthorityBundle

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"`
}

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

func (CertificateAuthorityBundle) String

type CertificateAuthorityBundleVersionCollection

type CertificateAuthorityBundleVersionCollection struct {

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

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

func (CertificateAuthorityBundleVersionCollection) String

type CertificateAuthorityBundleVersionSummary

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"`
}

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.

func (CertificateAuthorityBundleVersionSummary) String

type CertificateBundle

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
}

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

type CertificateBundleCertificateBundleTypeEnum

type CertificateBundleCertificateBundleTypeEnum string

CertificateBundleCertificateBundleTypeEnum Enum with underlying type: string

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

Set of constants representing the allowable values for CertificateBundleCertificateBundleTypeEnum

func GetCertificateBundleCertificateBundleTypeEnumValues

func GetCertificateBundleCertificateBundleTypeEnumValues() []CertificateBundleCertificateBundleTypeEnum

GetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for CertificateBundleCertificateBundleTypeEnum

type CertificateBundlePublicOnly

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"`
}

CertificateBundlePublicOnly A certificate bundle, not including the private key.

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

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

type CertificateBundleVersionCollection

type CertificateBundleVersionCollection struct {

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

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

func (CertificateBundleVersionCollection) String

type CertificateBundleVersionSummary

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"`
}

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

func (CertificateBundleVersionSummary) String

type CertificateBundleWithPrivateKey

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"`
}

CertificateBundleWithPrivateKey A certificate bundle, including the private key.

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

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

type CertificatesClient

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

CertificatesClient a client for Certificates

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/latest/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/latest/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/latest/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/latest/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/latest/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

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
}

GetCaBundleRequest wrapper for the GetCaBundle operation

See also

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

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

type GetCaBundleResponse

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"`
}

GetCaBundleResponse wrapper for the GetCaBundle operation

func (GetCaBundleResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetCaBundleResponse) String

func (response GetCaBundleResponse) String() string

type 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
}

GetCertificateAuthorityBundleRequest wrapper for the GetCertificateAuthorityBundle operation

See also

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

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

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

func (GetCertificateAuthorityBundleRequest) String

type GetCertificateAuthorityBundleResponse

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"`
}

GetCertificateAuthorityBundleResponse wrapper for the GetCertificateAuthorityBundle operation

func (GetCertificateAuthorityBundleResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetCertificateAuthorityBundleResponse) String

type GetCertificateAuthorityBundleStageEnum

type GetCertificateAuthorityBundleStageEnum string

GetCertificateAuthorityBundleStageEnum Enum with underlying type: string

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

Set of constants representing the allowable values for GetCertificateAuthorityBundleStageEnum

func GetGetCertificateAuthorityBundleStageEnumValues

func GetGetCertificateAuthorityBundleStageEnumValues() []GetCertificateAuthorityBundleStageEnum

GetGetCertificateAuthorityBundleStageEnumValues Enumerates the set of values for GetCertificateAuthorityBundleStageEnum

type GetCertificateBundleCertificateBundleTypeEnum

type GetCertificateBundleCertificateBundleTypeEnum string

GetCertificateBundleCertificateBundleTypeEnum Enum with underlying type: string

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

Set of constants representing the allowable values for GetCertificateBundleCertificateBundleTypeEnum

func GetGetCertificateBundleCertificateBundleTypeEnumValues

func GetGetCertificateBundleCertificateBundleTypeEnumValues() []GetCertificateBundleCertificateBundleTypeEnum

GetGetCertificateBundleCertificateBundleTypeEnumValues Enumerates the set of values for GetCertificateBundleCertificateBundleTypeEnum

type 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
}

GetCertificateBundleRequest wrapper for the GetCertificateBundle operation

See also

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

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

type GetCertificateBundleResponse

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"`
}

GetCertificateBundleResponse wrapper for the GetCertificateBundle operation

func (GetCertificateBundleResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetCertificateBundleResponse) String

func (response GetCertificateBundleResponse) String() string

type GetCertificateBundleStageEnum

type GetCertificateBundleStageEnum string

GetCertificateBundleStageEnum Enum with underlying type: string

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

Set of constants representing the allowable values for GetCertificateBundleStageEnum

func GetGetCertificateBundleStageEnumValues

func GetGetCertificateBundleStageEnumValues() []GetCertificateBundleStageEnum

GetGetCertificateBundleStageEnumValues Enumerates the set of values for GetCertificateBundleStageEnum

type 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
}

ListCertificateAuthorityBundleVersionsRequest wrapper for the ListCertificateAuthorityBundleVersions operation

See also

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

func (ListCertificateAuthorityBundleVersionsRequest) BinaryRequestBody

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

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

func (ListCertificateAuthorityBundleVersionsRequest) String

type ListCertificateAuthorityBundleVersionsResponse

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"`
}

ListCertificateAuthorityBundleVersionsResponse wrapper for the ListCertificateAuthorityBundleVersions operation

func (ListCertificateAuthorityBundleVersionsResponse) HTTPResponse

HTTPResponse implements the OCIResponse interface

func (ListCertificateAuthorityBundleVersionsResponse) String

type ListCertificateAuthorityBundleVersionsSortByEnum

type ListCertificateAuthorityBundleVersionsSortByEnum string

ListCertificateAuthorityBundleVersionsSortByEnum Enum with underlying type: string

const (
	ListCertificateAuthorityBundleVersionsSortByVersionNumber ListCertificateAuthorityBundleVersionsSortByEnum = "VERSION_NUMBER"
)

Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortByEnum

func GetListCertificateAuthorityBundleVersionsSortByEnumValues

func GetListCertificateAuthorityBundleVersionsSortByEnumValues() []ListCertificateAuthorityBundleVersionsSortByEnum

GetListCertificateAuthorityBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortByEnum

type ListCertificateAuthorityBundleVersionsSortOrderEnum

type ListCertificateAuthorityBundleVersionsSortOrderEnum string

ListCertificateAuthorityBundleVersionsSortOrderEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListCertificateAuthorityBundleVersionsSortOrderEnum

func GetListCertificateAuthorityBundleVersionsSortOrderEnumValues

func GetListCertificateAuthorityBundleVersionsSortOrderEnumValues() []ListCertificateAuthorityBundleVersionsSortOrderEnum

GetListCertificateAuthorityBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateAuthorityBundleVersionsSortOrderEnum

type 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
}

ListCertificateBundleVersionsRequest wrapper for the ListCertificateBundleVersions operation

See also

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

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

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

func (ListCertificateBundleVersionsRequest) String

type ListCertificateBundleVersionsResponse

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"`
}

ListCertificateBundleVersionsResponse wrapper for the ListCertificateBundleVersions operation

func (ListCertificateBundleVersionsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListCertificateBundleVersionsResponse) String

type ListCertificateBundleVersionsSortByEnum

type ListCertificateBundleVersionsSortByEnum string

ListCertificateBundleVersionsSortByEnum Enum with underlying type: string

const (
	ListCertificateBundleVersionsSortByVersionNumber ListCertificateBundleVersionsSortByEnum = "VERSION_NUMBER"
)

Set of constants representing the allowable values for ListCertificateBundleVersionsSortByEnum

func GetListCertificateBundleVersionsSortByEnumValues

func GetListCertificateBundleVersionsSortByEnumValues() []ListCertificateBundleVersionsSortByEnum

GetListCertificateBundleVersionsSortByEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortByEnum

type ListCertificateBundleVersionsSortOrderEnum

type ListCertificateBundleVersionsSortOrderEnum string

ListCertificateBundleVersionsSortOrderEnum Enum with underlying type: string

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

Set of constants representing the allowable values for ListCertificateBundleVersionsSortOrderEnum

func GetListCertificateBundleVersionsSortOrderEnumValues

func GetListCertificateBundleVersionsSortOrderEnumValues() []ListCertificateBundleVersionsSortOrderEnum

GetListCertificateBundleVersionsSortOrderEnumValues Enumerates the set of values for ListCertificateBundleVersionsSortOrderEnum

type RevocationReasonEnum

type RevocationReasonEnum string

RevocationReasonEnum Enum with underlying type: string

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"
)

Set of constants representing the allowable values for RevocationReasonEnum

func GetRevocationReasonEnumValues

func GetRevocationReasonEnumValues() []RevocationReasonEnum

GetRevocationReasonEnumValues Enumerates the set of values for RevocationReasonEnum

type RevocationStatus

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"`
}

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

func (RevocationStatus) String

func (m RevocationStatus) String() string

type Validity

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"`
}

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

func (Validity) String

func (m Validity) String() string

type VersionStageEnum

type VersionStageEnum string

VersionStageEnum Enum with underlying type: string

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

Set of constants representing the allowable values for VersionStageEnum

func GetVersionStageEnumValues

func GetVersionStageEnumValues() []VersionStageEnum

GetVersionStageEnumValues Enumerates the set of values for VersionStageEnum

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL