...

Package vault

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

Overview ▾

Index ▾

func GetBytesGenerationContextGenerationTemplateEnumStringValues() []string
func GetListSecretVersionsSortByEnumStringValues() []string
func GetListSecretVersionsSortOrderEnumStringValues() []string
func GetListSecretsSortByEnumStringValues() []string
func GetListSecretsSortOrderEnumStringValues() []string
func GetPassphraseGenerationContextGenerationTemplateEnumStringValues() []string
func GetSecretContentDetailsContentTypeEnumStringValues() []string
func GetSecretContentDetailsStageEnumStringValues() []string
func GetSecretGenerationContextGenerationTypeEnumStringValues() []string
func GetSecretLifecycleStateEnumStringValues() []string
func GetSecretRotationStatusEnumStringValues() []string
func GetSecretRuleRuleTypeEnumStringValues() []string
func GetSecretSummaryLifecycleStateEnumStringValues() []string
func GetSecretVersionContentTypeEnumStringValues() []string
func GetSecretVersionStagesEnumStringValues() []string
func GetSecretVersionSummaryContentTypeEnumStringValues() []string
func GetSecretVersionSummaryStagesEnumStringValues() []string
func GetSshKeyGenerationContextGenerationTemplateEnumStringValues() []string
func GetTargetSystemDetailsTargetSystemTypeEnumStringValues() []string
type AdbTargetSystemDetails
    func (m AdbTargetSystemDetails) MarshalJSON() (buff []byte, e error)
    func (m AdbTargetSystemDetails) String() string
    func (m AdbTargetSystemDetails) ValidateEnumValue() (bool, error)
type Base64SecretContentDetails
    func (m Base64SecretContentDetails) GetName() *string
    func (m Base64SecretContentDetails) GetStage() SecretContentDetailsStageEnum
    func (m Base64SecretContentDetails) MarshalJSON() (buff []byte, e error)
    func (m Base64SecretContentDetails) String() string
    func (m Base64SecretContentDetails) ValidateEnumValue() (bool, error)
type BytesGenerationContext
    func (m BytesGenerationContext) GetSecretTemplate() *string
    func (m BytesGenerationContext) MarshalJSON() (buff []byte, e error)
    func (m BytesGenerationContext) String() string
    func (m BytesGenerationContext) ValidateEnumValue() (bool, error)
type BytesGenerationContextGenerationTemplateEnum
    func GetBytesGenerationContextGenerationTemplateEnumValues() []BytesGenerationContextGenerationTemplateEnum
    func GetMappingBytesGenerationContextGenerationTemplateEnum(val string) (BytesGenerationContextGenerationTemplateEnum, bool)
type CancelSecretDeletionRequest
    func (request CancelSecretDeletionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CancelSecretDeletionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CancelSecretDeletionRequest) RetryPolicy() *common.RetryPolicy
    func (request CancelSecretDeletionRequest) String() string
    func (request CancelSecretDeletionRequest) ValidateEnumValue() (bool, error)
type CancelSecretDeletionResponse
    func (response CancelSecretDeletionResponse) HTTPResponse() *http.Response
    func (response CancelSecretDeletionResponse) String() string
type CancelSecretRotationRequest
    func (request CancelSecretRotationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CancelSecretRotationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CancelSecretRotationRequest) RetryPolicy() *common.RetryPolicy
    func (request CancelSecretRotationRequest) String() string
    func (request CancelSecretRotationRequest) ValidateEnumValue() (bool, error)
type CancelSecretRotationResponse
    func (response CancelSecretRotationResponse) HTTPResponse() *http.Response
    func (response CancelSecretRotationResponse) String() string
type CancelSecretVersionDeletionRequest
    func (request CancelSecretVersionDeletionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CancelSecretVersionDeletionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CancelSecretVersionDeletionRequest) RetryPolicy() *common.RetryPolicy
    func (request CancelSecretVersionDeletionRequest) String() string
    func (request CancelSecretVersionDeletionRequest) ValidateEnumValue() (bool, error)
type CancelSecretVersionDeletionResponse
    func (response CancelSecretVersionDeletionResponse) HTTPResponse() *http.Response
    func (response CancelSecretVersionDeletionResponse) String() string
type ChangeSecretCompartmentDetails
    func (m ChangeSecretCompartmentDetails) String() string
    func (m ChangeSecretCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeSecretCompartmentRequest
    func (request ChangeSecretCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeSecretCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeSecretCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeSecretCompartmentRequest) String() string
    func (request ChangeSecretCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeSecretCompartmentResponse
    func (response ChangeSecretCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeSecretCompartmentResponse) String() string
type CreateSecretDetails
    func (m CreateSecretDetails) String() string
    func (m *CreateSecretDetails) UnmarshalJSON(data []byte) (e error)
    func (m CreateSecretDetails) ValidateEnumValue() (bool, error)
type CreateSecretRequest
    func (request CreateSecretRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateSecretRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateSecretRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateSecretRequest) String() string
    func (request CreateSecretRequest) ValidateEnumValue() (bool, error)
type CreateSecretResponse
    func (response CreateSecretResponse) HTTPResponse() *http.Response
    func (response CreateSecretResponse) String() string
type FunctionTargetSystemDetails
    func (m FunctionTargetSystemDetails) MarshalJSON() (buff []byte, e error)
    func (m FunctionTargetSystemDetails) String() string
    func (m FunctionTargetSystemDetails) ValidateEnumValue() (bool, error)
type GetSecretRequest
    func (request GetSecretRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetSecretRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetSecretRequest) RetryPolicy() *common.RetryPolicy
    func (request GetSecretRequest) String() string
    func (request GetSecretRequest) ValidateEnumValue() (bool, error)
type GetSecretResponse
    func (response GetSecretResponse) HTTPResponse() *http.Response
    func (response GetSecretResponse) String() string
type GetSecretVersionRequest
    func (request GetSecretVersionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetSecretVersionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetSecretVersionRequest) RetryPolicy() *common.RetryPolicy
    func (request GetSecretVersionRequest) String() string
    func (request GetSecretVersionRequest) ValidateEnumValue() (bool, error)
type GetSecretVersionResponse
    func (response GetSecretVersionResponse) HTTPResponse() *http.Response
    func (response GetSecretVersionResponse) String() string
type ListSecretVersionsRequest
    func (request ListSecretVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListSecretVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListSecretVersionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListSecretVersionsRequest) String() string
    func (request ListSecretVersionsRequest) ValidateEnumValue() (bool, error)
type ListSecretVersionsResponse
    func (response ListSecretVersionsResponse) HTTPResponse() *http.Response
    func (response ListSecretVersionsResponse) String() string
type ListSecretVersionsSortByEnum
    func GetListSecretVersionsSortByEnumValues() []ListSecretVersionsSortByEnum
    func GetMappingListSecretVersionsSortByEnum(val string) (ListSecretVersionsSortByEnum, bool)
type ListSecretVersionsSortOrderEnum
    func GetListSecretVersionsSortOrderEnumValues() []ListSecretVersionsSortOrderEnum
    func GetMappingListSecretVersionsSortOrderEnum(val string) (ListSecretVersionsSortOrderEnum, bool)
type ListSecretsRequest
    func (request ListSecretsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListSecretsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListSecretsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListSecretsRequest) String() string
    func (request ListSecretsRequest) ValidateEnumValue() (bool, error)
type ListSecretsResponse
    func (response ListSecretsResponse) HTTPResponse() *http.Response
    func (response ListSecretsResponse) String() string
type ListSecretsSortByEnum
    func GetListSecretsSortByEnumValues() []ListSecretsSortByEnum
    func GetMappingListSecretsSortByEnum(val string) (ListSecretsSortByEnum, bool)
type ListSecretsSortOrderEnum
    func GetListSecretsSortOrderEnumValues() []ListSecretsSortOrderEnum
    func GetMappingListSecretsSortOrderEnum(val string) (ListSecretsSortOrderEnum, bool)
type PassphraseGenerationContext
    func (m PassphraseGenerationContext) GetSecretTemplate() *string
    func (m PassphraseGenerationContext) MarshalJSON() (buff []byte, e error)
    func (m PassphraseGenerationContext) String() string
    func (m PassphraseGenerationContext) ValidateEnumValue() (bool, error)
type PassphraseGenerationContextGenerationTemplateEnum
    func GetMappingPassphraseGenerationContextGenerationTemplateEnum(val string) (PassphraseGenerationContextGenerationTemplateEnum, bool)
    func GetPassphraseGenerationContextGenerationTemplateEnumValues() []PassphraseGenerationContextGenerationTemplateEnum
type RotateSecretRequest
    func (request RotateSecretRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request RotateSecretRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request RotateSecretRequest) RetryPolicy() *common.RetryPolicy
    func (request RotateSecretRequest) String() string
    func (request RotateSecretRequest) ValidateEnumValue() (bool, error)
type RotateSecretResponse
    func (response RotateSecretResponse) HTTPResponse() *http.Response
    func (response RotateSecretResponse) String() string
type RotationConfig
    func (m RotationConfig) String() string
    func (m *RotationConfig) UnmarshalJSON(data []byte) (e error)
    func (m RotationConfig) ValidateEnumValue() (bool, error)
type ScheduleSecretDeletionDetails
    func (m ScheduleSecretDeletionDetails) String() string
    func (m ScheduleSecretDeletionDetails) ValidateEnumValue() (bool, error)
type ScheduleSecretDeletionRequest
    func (request ScheduleSecretDeletionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ScheduleSecretDeletionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ScheduleSecretDeletionRequest) RetryPolicy() *common.RetryPolicy
    func (request ScheduleSecretDeletionRequest) String() string
    func (request ScheduleSecretDeletionRequest) ValidateEnumValue() (bool, error)
type ScheduleSecretDeletionResponse
    func (response ScheduleSecretDeletionResponse) HTTPResponse() *http.Response
    func (response ScheduleSecretDeletionResponse) String() string
type ScheduleSecretVersionDeletionDetails
    func (m ScheduleSecretVersionDeletionDetails) String() string
    func (m ScheduleSecretVersionDeletionDetails) ValidateEnumValue() (bool, error)
type ScheduleSecretVersionDeletionRequest
    func (request ScheduleSecretVersionDeletionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ScheduleSecretVersionDeletionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ScheduleSecretVersionDeletionRequest) RetryPolicy() *common.RetryPolicy
    func (request ScheduleSecretVersionDeletionRequest) String() string
    func (request ScheduleSecretVersionDeletionRequest) ValidateEnumValue() (bool, error)
type ScheduleSecretVersionDeletionResponse
    func (response ScheduleSecretVersionDeletionResponse) HTTPResponse() *http.Response
    func (response ScheduleSecretVersionDeletionResponse) String() string
type Secret
    func (m Secret) String() string
    func (m *Secret) UnmarshalJSON(data []byte) (e error)
    func (m Secret) ValidateEnumValue() (bool, error)
type SecretContentDetails
type SecretContentDetailsContentTypeEnum
    func GetMappingSecretContentDetailsContentTypeEnum(val string) (SecretContentDetailsContentTypeEnum, bool)
    func GetSecretContentDetailsContentTypeEnumValues() []SecretContentDetailsContentTypeEnum
type SecretContentDetailsStageEnum
    func GetMappingSecretContentDetailsStageEnum(val string) (SecretContentDetailsStageEnum, bool)
    func GetSecretContentDetailsStageEnumValues() []SecretContentDetailsStageEnum
type SecretExpiryRule
    func (m SecretExpiryRule) MarshalJSON() (buff []byte, e error)
    func (m SecretExpiryRule) String() string
    func (m SecretExpiryRule) ValidateEnumValue() (bool, error)
type SecretGenerationContext
type SecretGenerationContextGenerationTypeEnum
    func GetMappingSecretGenerationContextGenerationTypeEnum(val string) (SecretGenerationContextGenerationTypeEnum, bool)
    func GetSecretGenerationContextGenerationTypeEnumValues() []SecretGenerationContextGenerationTypeEnum
type SecretLifecycleStateEnum
    func GetMappingSecretLifecycleStateEnum(val string) (SecretLifecycleStateEnum, bool)
    func GetSecretLifecycleStateEnumValues() []SecretLifecycleStateEnum
type SecretReuseRule
    func (m SecretReuseRule) MarshalJSON() (buff []byte, e error)
    func (m SecretReuseRule) String() string
    func (m SecretReuseRule) ValidateEnumValue() (bool, error)
type SecretRotationStatusEnum
    func GetMappingSecretRotationStatusEnum(val string) (SecretRotationStatusEnum, bool)
    func GetSecretRotationStatusEnumValues() []SecretRotationStatusEnum
type SecretRule
type SecretRuleRuleTypeEnum
    func GetMappingSecretRuleRuleTypeEnum(val string) (SecretRuleRuleTypeEnum, bool)
    func GetSecretRuleRuleTypeEnumValues() []SecretRuleRuleTypeEnum
type SecretSummary
    func (m SecretSummary) String() string
    func (m *SecretSummary) UnmarshalJSON(data []byte) (e error)
    func (m SecretSummary) ValidateEnumValue() (bool, error)
type SecretSummaryLifecycleStateEnum
    func GetMappingSecretSummaryLifecycleStateEnum(val string) (SecretSummaryLifecycleStateEnum, bool)
    func GetSecretSummaryLifecycleStateEnumValues() []SecretSummaryLifecycleStateEnum
type SecretVersion
    func (m SecretVersion) String() string
    func (m SecretVersion) ValidateEnumValue() (bool, error)
type SecretVersionContentTypeEnum
    func GetMappingSecretVersionContentTypeEnum(val string) (SecretVersionContentTypeEnum, bool)
    func GetSecretVersionContentTypeEnumValues() []SecretVersionContentTypeEnum
type SecretVersionStagesEnum
    func GetMappingSecretVersionStagesEnum(val string) (SecretVersionStagesEnum, bool)
    func GetSecretVersionStagesEnumValues() []SecretVersionStagesEnum
type SecretVersionSummary
    func (m SecretVersionSummary) String() string
    func (m SecretVersionSummary) ValidateEnumValue() (bool, error)
type SecretVersionSummaryContentTypeEnum
    func GetMappingSecretVersionSummaryContentTypeEnum(val string) (SecretVersionSummaryContentTypeEnum, bool)
    func GetSecretVersionSummaryContentTypeEnumValues() []SecretVersionSummaryContentTypeEnum
type SecretVersionSummaryStagesEnum
    func GetMappingSecretVersionSummaryStagesEnum(val string) (SecretVersionSummaryStagesEnum, bool)
    func GetSecretVersionSummaryStagesEnumValues() []SecretVersionSummaryStagesEnum
type SshKeyGenerationContext
    func (m SshKeyGenerationContext) GetSecretTemplate() *string
    func (m SshKeyGenerationContext) MarshalJSON() (buff []byte, e error)
    func (m SshKeyGenerationContext) String() string
    func (m SshKeyGenerationContext) ValidateEnumValue() (bool, error)
type SshKeyGenerationContextGenerationTemplateEnum
    func GetMappingSshKeyGenerationContextGenerationTemplateEnum(val string) (SshKeyGenerationContextGenerationTemplateEnum, bool)
    func GetSshKeyGenerationContextGenerationTemplateEnumValues() []SshKeyGenerationContextGenerationTemplateEnum
type TargetSystemDetails
type TargetSystemDetailsTargetSystemTypeEnum
    func GetMappingTargetSystemDetailsTargetSystemTypeEnum(val string) (TargetSystemDetailsTargetSystemTypeEnum, bool)
    func GetTargetSystemDetailsTargetSystemTypeEnumValues() []TargetSystemDetailsTargetSystemTypeEnum
type UpdateSecretDetails
    func (m UpdateSecretDetails) String() string
    func (m *UpdateSecretDetails) UnmarshalJSON(data []byte) (e error)
    func (m UpdateSecretDetails) ValidateEnumValue() (bool, error)
type UpdateSecretRequest
    func (request UpdateSecretRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateSecretRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateSecretRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateSecretRequest) String() string
    func (request UpdateSecretRequest) ValidateEnumValue() (bool, error)
type UpdateSecretResponse
    func (response UpdateSecretResponse) HTTPResponse() *http.Response
    func (response UpdateSecretResponse) String() string
type VaultsClient
    func NewVaultsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client VaultsClient, err error)
    func NewVaultsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client VaultsClient, err error)
    func (client VaultsClient) CancelSecretDeletion(ctx context.Context, request CancelSecretDeletionRequest) (response CancelSecretDeletionResponse, err error)
    func (client VaultsClient) CancelSecretRotation(ctx context.Context, request CancelSecretRotationRequest) (response CancelSecretRotationResponse, err error)
    func (client VaultsClient) CancelSecretVersionDeletion(ctx context.Context, request CancelSecretVersionDeletionRequest) (response CancelSecretVersionDeletionResponse, err error)
    func (client VaultsClient) ChangeSecretCompartment(ctx context.Context, request ChangeSecretCompartmentRequest) (response ChangeSecretCompartmentResponse, err error)
    func (client *VaultsClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client VaultsClient) CreateSecret(ctx context.Context, request CreateSecretRequest) (response CreateSecretResponse, err error)
    func (client VaultsClient) GetSecret(ctx context.Context, request GetSecretRequest) (response GetSecretResponse, err error)
    func (client VaultsClient) GetSecretVersion(ctx context.Context, request GetSecretVersionRequest) (response GetSecretVersionResponse, err error)
    func (client VaultsClient) ListSecretVersions(ctx context.Context, request ListSecretVersionsRequest) (response ListSecretVersionsResponse, err error)
    func (client VaultsClient) ListSecrets(ctx context.Context, request ListSecretsRequest) (response ListSecretsResponse, err error)
    func (client VaultsClient) RotateSecret(ctx context.Context, request RotateSecretRequest) (response RotateSecretResponse, err error)
    func (client VaultsClient) ScheduleSecretDeletion(ctx context.Context, request ScheduleSecretDeletionRequest) (response ScheduleSecretDeletionResponse, err error)
    func (client VaultsClient) ScheduleSecretVersionDeletion(ctx context.Context, request ScheduleSecretVersionDeletionRequest) (response ScheduleSecretVersionDeletionResponse, err error)
    func (client *VaultsClient) SetRegion(region string)
    func (client VaultsClient) UpdateSecret(ctx context.Context, request UpdateSecretRequest) (response UpdateSecretResponse, err error)

Package files

adb_target_system_details.go base64_secret_content_details.go bytes_generation_context.go cancel_secret_deletion_request_response.go cancel_secret_rotation_request_response.go cancel_secret_version_deletion_request_response.go change_secret_compartment_details.go change_secret_compartment_request_response.go create_secret_details.go create_secret_request_response.go function_target_system_details.go get_secret_request_response.go get_secret_version_request_response.go list_secret_versions_request_response.go list_secrets_request_response.go passphrase_generation_context.go rotate_secret_request_response.go rotation_config.go schedule_secret_deletion_details.go schedule_secret_deletion_request_response.go schedule_secret_version_deletion_details.go schedule_secret_version_deletion_request_response.go secret.go secret_content_details.go secret_expiry_rule.go secret_generation_context.go secret_reuse_rule.go secret_rule.go secret_summary.go secret_version.go secret_version_summary.go ssh_key_generation_context.go target_system_details.go update_secret_details.go update_secret_request_response.go vault_vaults_client.go

func GetBytesGenerationContextGenerationTemplateEnumStringValues

func GetBytesGenerationContextGenerationTemplateEnumStringValues() []string

GetBytesGenerationContextGenerationTemplateEnumStringValues Enumerates the set of values in String for BytesGenerationContextGenerationTemplateEnum

func GetListSecretVersionsSortByEnumStringValues

func GetListSecretVersionsSortByEnumStringValues() []string

GetListSecretVersionsSortByEnumStringValues Enumerates the set of values in String for ListSecretVersionsSortByEnum

func GetListSecretVersionsSortOrderEnumStringValues

func GetListSecretVersionsSortOrderEnumStringValues() []string

GetListSecretVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListSecretVersionsSortOrderEnum

func GetListSecretsSortByEnumStringValues

func GetListSecretsSortByEnumStringValues() []string

GetListSecretsSortByEnumStringValues Enumerates the set of values in String for ListSecretsSortByEnum

func GetListSecretsSortOrderEnumStringValues

func GetListSecretsSortOrderEnumStringValues() []string

GetListSecretsSortOrderEnumStringValues Enumerates the set of values in String for ListSecretsSortOrderEnum

func GetPassphraseGenerationContextGenerationTemplateEnumStringValues

func GetPassphraseGenerationContextGenerationTemplateEnumStringValues() []string

GetPassphraseGenerationContextGenerationTemplateEnumStringValues Enumerates the set of values in String for PassphraseGenerationContextGenerationTemplateEnum

func GetSecretContentDetailsContentTypeEnumStringValues

func GetSecretContentDetailsContentTypeEnumStringValues() []string

GetSecretContentDetailsContentTypeEnumStringValues Enumerates the set of values in String for SecretContentDetailsContentTypeEnum

func GetSecretContentDetailsStageEnumStringValues

func GetSecretContentDetailsStageEnumStringValues() []string

GetSecretContentDetailsStageEnumStringValues Enumerates the set of values in String for SecretContentDetailsStageEnum

func GetSecretGenerationContextGenerationTypeEnumStringValues

func GetSecretGenerationContextGenerationTypeEnumStringValues() []string

GetSecretGenerationContextGenerationTypeEnumStringValues Enumerates the set of values in String for SecretGenerationContextGenerationTypeEnum

func GetSecretLifecycleStateEnumStringValues

func GetSecretLifecycleStateEnumStringValues() []string

GetSecretLifecycleStateEnumStringValues Enumerates the set of values in String for SecretLifecycleStateEnum

func GetSecretRotationStatusEnumStringValues

func GetSecretRotationStatusEnumStringValues() []string

GetSecretRotationStatusEnumStringValues Enumerates the set of values in String for SecretRotationStatusEnum

func GetSecretRuleRuleTypeEnumStringValues

func GetSecretRuleRuleTypeEnumStringValues() []string

GetSecretRuleRuleTypeEnumStringValues Enumerates the set of values in String for SecretRuleRuleTypeEnum

func GetSecretSummaryLifecycleStateEnumStringValues

func GetSecretSummaryLifecycleStateEnumStringValues() []string

GetSecretSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for SecretSummaryLifecycleStateEnum

func GetSecretVersionContentTypeEnumStringValues

func GetSecretVersionContentTypeEnumStringValues() []string

GetSecretVersionContentTypeEnumStringValues Enumerates the set of values in String for SecretVersionContentTypeEnum

func GetSecretVersionStagesEnumStringValues

func GetSecretVersionStagesEnumStringValues() []string

GetSecretVersionStagesEnumStringValues Enumerates the set of values in String for SecretVersionStagesEnum

func GetSecretVersionSummaryContentTypeEnumStringValues

func GetSecretVersionSummaryContentTypeEnumStringValues() []string

GetSecretVersionSummaryContentTypeEnumStringValues Enumerates the set of values in String for SecretVersionSummaryContentTypeEnum

func GetSecretVersionSummaryStagesEnumStringValues

func GetSecretVersionSummaryStagesEnumStringValues() []string

GetSecretVersionSummaryStagesEnumStringValues Enumerates the set of values in String for SecretVersionSummaryStagesEnum

func GetSshKeyGenerationContextGenerationTemplateEnumStringValues

func GetSshKeyGenerationContextGenerationTemplateEnumStringValues() []string

GetSshKeyGenerationContextGenerationTemplateEnumStringValues Enumerates the set of values in String for SshKeyGenerationContextGenerationTemplateEnum

func GetTargetSystemDetailsTargetSystemTypeEnumStringValues

func GetTargetSystemDetailsTargetSystemTypeEnumStringValues() []string

GetTargetSystemDetailsTargetSystemTypeEnumStringValues Enumerates the set of values in String for TargetSystemDetailsTargetSystemTypeEnum

type AdbTargetSystemDetails

AdbTargetSystemDetails Target System type and id for an autonomous database target system

type AdbTargetSystemDetails struct {

    // The unique identifier (OCID) for the autonomous database that Vault Secret connects to.
    AdbId *string `mandatory:"true" json:"adbId"`
}

func (AdbTargetSystemDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (AdbTargetSystemDetails) String

func (m AdbTargetSystemDetails) String() string

func (AdbTargetSystemDetails) ValidateEnumValue

func (m AdbTargetSystemDetails) 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 Base64SecretContentDetails

Base64SecretContentDetails Base64-encoded secret content.

type Base64SecretContentDetails struct {

    // Names should be unique within a secret. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
    Name *string `mandatory:"false" json:"name"`

    // The base64-encoded content of the secret.
    Content *string `mandatory:"false" json:"content"`

    // The rotation state of the secret content. The default is `CURRENT`, meaning that the secret is currently in use. A secret version
    // that you mark as `PENDING` is staged and available for use, but you don't yet want to rotate it into current, active use. For example,
    // you might create or update a secret and mark its rotation state as `PENDING` if you haven't yet updated the secret on the target system.
    // When creating a secret, only the value `CURRENT` is applicable, although the value `LATEST` is also automatically applied. When updating
    // a secret, you can specify a version's rotation state as either `CURRENT` or `PENDING`.
    Stage SecretContentDetailsStageEnum `mandatory:"false" json:"stage,omitempty"`
}

func (Base64SecretContentDetails) GetName

func (m Base64SecretContentDetails) GetName() *string

GetName returns Name

func (Base64SecretContentDetails) GetStage

func (m Base64SecretContentDetails) GetStage() SecretContentDetailsStageEnum

GetStage returns Stage

func (Base64SecretContentDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (Base64SecretContentDetails) String

func (m Base64SecretContentDetails) String() string

func (Base64SecretContentDetails) ValidateEnumValue

func (m Base64SecretContentDetails) 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 BytesGenerationContext

BytesGenerationContext Generates random bytes. By default, secrets of type Bytes has no structure. The generated bytes are stored as a Base64 encoded string. The SecretTemplate must have the %GENERATED_BYTES% keyword which is replaced with the generated bytes, if provided

type BytesGenerationContext struct {

    // SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type.
    // The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets.
    // These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
    SecretTemplate *string `mandatory:"false" json:"secretTemplate"`

    // Name of random bytes generation template for generating random byte type secret.
    GenerationTemplate BytesGenerationContextGenerationTemplateEnum `mandatory:"true" json:"generationTemplate"`
}

func (BytesGenerationContext) GetSecretTemplate

func (m BytesGenerationContext) GetSecretTemplate() *string

GetSecretTemplate returns SecretTemplate

func (BytesGenerationContext) MarshalJSON

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

MarshalJSON marshals to json representation

func (BytesGenerationContext) String

func (m BytesGenerationContext) String() string

func (BytesGenerationContext) ValidateEnumValue

func (m BytesGenerationContext) 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 BytesGenerationContextGenerationTemplateEnum

BytesGenerationContextGenerationTemplateEnum Enum with underlying type: string

type BytesGenerationContextGenerationTemplateEnum string

Set of constants representing the allowable values for BytesGenerationContextGenerationTemplateEnum

const (
    BytesGenerationContextGenerationTemplate512  BytesGenerationContextGenerationTemplateEnum = "BYTES_512"
    BytesGenerationContextGenerationTemplate1024 BytesGenerationContextGenerationTemplateEnum = "BYTES_1024"
)

func GetBytesGenerationContextGenerationTemplateEnumValues

func GetBytesGenerationContextGenerationTemplateEnumValues() []BytesGenerationContextGenerationTemplateEnum

GetBytesGenerationContextGenerationTemplateEnumValues Enumerates the set of values for BytesGenerationContextGenerationTemplateEnum

func GetMappingBytesGenerationContextGenerationTemplateEnum

func GetMappingBytesGenerationContextGenerationTemplateEnum(val string) (BytesGenerationContextGenerationTemplateEnum, bool)

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

type CancelSecretDeletionRequest

CancelSecretDeletionRequest wrapper for the CancelSecretDeletion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/CancelSecretDeletion.go.html to see an example of how to use CancelSecretDeletionRequest.

type CancelSecretDeletionRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (CancelSecretDeletionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CancelSecretDeletionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CancelSecretDeletionRequest) RetryPolicy

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

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

func (CancelSecretDeletionRequest) String

func (request CancelSecretDeletionRequest) String() string

func (CancelSecretDeletionRequest) ValidateEnumValue

func (request CancelSecretDeletionRequest) 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 CancelSecretDeletionResponse

CancelSecretDeletionResponse wrapper for the CancelSecretDeletion operation

type CancelSecretDeletionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (CancelSecretDeletionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CancelSecretDeletionResponse) String

func (response CancelSecretDeletionResponse) String() string

type CancelSecretRotationRequest

CancelSecretRotationRequest wrapper for the CancelSecretRotation operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/CancelSecretRotation.go.html to see an example of how to use CancelSecretRotationRequest.

type CancelSecretRotationRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (CancelSecretRotationRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CancelSecretRotationRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CancelSecretRotationRequest) RetryPolicy

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

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

func (CancelSecretRotationRequest) String

func (request CancelSecretRotationRequest) String() string

func (CancelSecretRotationRequest) ValidateEnumValue

func (request CancelSecretRotationRequest) 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 CancelSecretRotationResponse

CancelSecretRotationResponse wrapper for the CancelSecretRotation operation

type CancelSecretRotationResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (CancelSecretRotationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CancelSecretRotationResponse) String

func (response CancelSecretRotationResponse) String() string

type CancelSecretVersionDeletionRequest

CancelSecretVersionDeletionRequest wrapper for the CancelSecretVersionDeletion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/CancelSecretVersionDeletion.go.html to see an example of how to use CancelSecretVersionDeletionRequest.

type CancelSecretVersionDeletionRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // The version number of the secret.
    SecretVersionNumber *int64 `mandatory:"true" contributesTo:"path" name:"secretVersionNumber"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (CancelSecretVersionDeletionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CancelSecretVersionDeletionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CancelSecretVersionDeletionRequest) RetryPolicy

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

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

func (CancelSecretVersionDeletionRequest) String

func (request CancelSecretVersionDeletionRequest) String() string

func (CancelSecretVersionDeletionRequest) ValidateEnumValue

func (request CancelSecretVersionDeletionRequest) 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 CancelSecretVersionDeletionResponse

CancelSecretVersionDeletionResponse wrapper for the CancelSecretVersionDeletion operation

type CancelSecretVersionDeletionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (CancelSecretVersionDeletionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CancelSecretVersionDeletionResponse) String

func (response CancelSecretVersionDeletionResponse) String() string

type ChangeSecretCompartmentDetails

ChangeSecretCompartmentDetails Specifies the updated compartment OCID for the secret.

type ChangeSecretCompartmentDetails struct {

    // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment
    // into which the resource should be moved.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`
}

func (ChangeSecretCompartmentDetails) String

func (m ChangeSecretCompartmentDetails) String() string

func (ChangeSecretCompartmentDetails) ValidateEnumValue

func (m ChangeSecretCompartmentDetails) 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 ChangeSecretCompartmentRequest

ChangeSecretCompartmentRequest wrapper for the ChangeSecretCompartment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/ChangeSecretCompartment.go.html to see an example of how to use ChangeSecretCompartmentRequest.

type ChangeSecretCompartmentRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // The updated compartment details.
    ChangeSecretCompartmentDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case
    // of a timeout or server error without risk of executing that same action
    // again. Retry tokens expire after 24 hours, but can be invalidated
    // before then due to conflicting operations (e.g., if a resource has been
    // deleted and purged from the system, then a retry of the original
    // creation request may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // 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 (ChangeSecretCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeSecretCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeSecretCompartmentRequest) RetryPolicy

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

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

func (ChangeSecretCompartmentRequest) String

func (request ChangeSecretCompartmentRequest) String() string

func (ChangeSecretCompartmentRequest) ValidateEnumValue

func (request ChangeSecretCompartmentRequest) 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 ChangeSecretCompartmentResponse

ChangeSecretCompartmentResponse wrapper for the ChangeSecretCompartment operation

type ChangeSecretCompartmentResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (ChangeSecretCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeSecretCompartmentResponse) String

func (response ChangeSecretCompartmentResponse) String() string

type CreateSecretDetails

CreateSecretDetails The details of the secret that you want to create.

type CreateSecretDetails struct {

    // The OCID of the compartment where you want to create the secret.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
    KeyId *string `mandatory:"true" json:"keyId"`

    // A user-friendly name for the secret. Secret names should be unique within a vault. Avoid entering confidential information. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
    SecretName *string `mandatory:"true" json:"secretName"`

    // The OCID of the vault where you want to create the secret.
    VaultId *string `mandatory:"true" json:"vaultId"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // A brief description of the secret. Avoid entering confidential information.
    Description *string `mandatory:"false" json:"description"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Additional metadata that you can use to provide context about how to use the secret during rotation or
    // other administrative tasks. For example, for a secret that you use to connect to a database, the additional
    // metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
    Metadata map[string]interface{} `mandatory:"false" json:"metadata"`

    SecretContent SecretContentDetails `mandatory:"false" json:"secretContent"`

    RotationConfig *RotationConfig `mandatory:"false" json:"rotationConfig"`

    // A list of rules to control how the secret is used and managed.
    SecretRules []SecretRule `mandatory:"false" json:"secretRules"`

    SecretGenerationContext SecretGenerationContext `mandatory:"false" json:"secretGenerationContext"`

    // The value of this flag determines whether or not secret content will be generated automatically. If not set, it defaults to false.
    EnableAutoGeneration *bool `mandatory:"false" json:"enableAutoGeneration"`
}

func (CreateSecretDetails) String

func (m CreateSecretDetails) String() string

func (*CreateSecretDetails) UnmarshalJSON

func (m *CreateSecretDetails) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (CreateSecretDetails) ValidateEnumValue

func (m CreateSecretDetails) 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 CreateSecretRequest

CreateSecretRequest wrapper for the CreateSecret operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/CreateSecret.go.html to see an example of how to use CreateSecretRequest.

type CreateSecretRequest struct {

    // Request to create a new secret.
    CreateSecretDetails `contributesTo:"body"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case
    // of a timeout or server error without risk of executing that same action
    // again. Retry tokens expire after 24 hours, but can be invalidated
    // before then due to conflicting operations (e.g., if a resource has been
    // deleted and purged from the system, then a retry of the original
    // creation request may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // 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 (CreateSecretRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateSecretRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateSecretRequest) RetryPolicy

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

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

func (CreateSecretRequest) String

func (request CreateSecretRequest) String() string

func (CreateSecretRequest) ValidateEnumValue

func (request CreateSecretRequest) 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 CreateSecretResponse

CreateSecretResponse wrapper for the CreateSecret operation

type CreateSecretResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Secret instance
    Secret `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 (CreateSecretResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateSecretResponse) String

func (response CreateSecretResponse) String() string

type FunctionTargetSystemDetails

FunctionTargetSystemDetails Details of the OCI function that vault secret connects to.

type FunctionTargetSystemDetails struct {

    // The unique identifier (OCID) of the OCI Functions that vault secret connects to.
    FunctionId *string `mandatory:"true" json:"functionId"`
}

func (FunctionTargetSystemDetails) MarshalJSON

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

MarshalJSON marshals to json representation

func (FunctionTargetSystemDetails) String

func (m FunctionTargetSystemDetails) String() string

func (FunctionTargetSystemDetails) ValidateEnumValue

func (m FunctionTargetSystemDetails) 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 GetSecretRequest

GetSecretRequest wrapper for the GetSecret operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/GetSecret.go.html to see an example of how to use GetSecretRequest.

type GetSecretRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (GetSecretRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetSecretRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetSecretRequest) RetryPolicy

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

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

func (GetSecretRequest) String

func (request GetSecretRequest) String() string

func (GetSecretRequest) ValidateEnumValue

func (request GetSecretRequest) 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 GetSecretResponse

GetSecretResponse wrapper for the GetSecret operation

type GetSecretResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Secret instance
    Secret `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 (GetSecretResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetSecretResponse) String

func (response GetSecretResponse) String() string

type GetSecretVersionRequest

GetSecretVersionRequest wrapper for the GetSecretVersion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/GetSecretVersion.go.html to see an example of how to use GetSecretVersionRequest.

type GetSecretVersionRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // The version number of the secret.
    SecretVersionNumber *int64 `mandatory:"true" contributesTo:"path" name:"secretVersionNumber"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (GetSecretVersionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetSecretVersionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetSecretVersionRequest) RetryPolicy

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

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

func (GetSecretVersionRequest) String

func (request GetSecretVersionRequest) String() string

func (GetSecretVersionRequest) ValidateEnumValue

func (request GetSecretVersionRequest) 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 GetSecretVersionResponse

GetSecretVersionResponse wrapper for the GetSecretVersion operation

type GetSecretVersionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The SecretVersion instance
    SecretVersion `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 (GetSecretVersionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetSecretVersionResponse) String

func (response GetSecretVersionResponse) String() string

type ListSecretVersionsRequest

ListSecretVersionsRequest wrapper for the ListSecretVersions operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/ListSecretVersions.go.html to see an example of how to use ListSecretVersionsRequest.

type ListSecretVersionsRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // The maximum number of items to return in a paginated "List" call.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The value of the `opc-next-page` response header
    // from the previous "List" call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // The field to sort by. Only one sort order may be provided. Time created is default ordered as descending. Display name is default ordered as ascending.
    SortBy ListSecretVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListSecretVersionsSortOrderEnum `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 (ListSecretVersionsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListSecretVersionsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListSecretVersionsRequest) RetryPolicy

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

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

func (ListSecretVersionsRequest) String

func (request ListSecretVersionsRequest) String() string

func (ListSecretVersionsRequest) ValidateEnumValue

func (request ListSecretVersionsRequest) 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 ListSecretVersionsResponse

ListSecretVersionsResponse wrapper for the ListSecretVersions operation

type ListSecretVersionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []SecretVersionSummary instances
    Items []SecretVersionSummary `presentIn:"body"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then there are additional items still to get. Include this value as the `page` parameter for the
    // subsequent GET request. For information about pagination, see
    // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#List_Pagination).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

    // 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 (ListSecretVersionsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListSecretVersionsResponse) String

func (response ListSecretVersionsResponse) String() string

type ListSecretVersionsSortByEnum

ListSecretVersionsSortByEnum Enum with underlying type: string

type ListSecretVersionsSortByEnum string

Set of constants representing the allowable values for ListSecretVersionsSortByEnum

const (
    ListSecretVersionsSortByVersionNumber ListSecretVersionsSortByEnum = "VERSION_NUMBER"
)

func GetListSecretVersionsSortByEnumValues

func GetListSecretVersionsSortByEnumValues() []ListSecretVersionsSortByEnum

GetListSecretVersionsSortByEnumValues Enumerates the set of values for ListSecretVersionsSortByEnum

func GetMappingListSecretVersionsSortByEnum

func GetMappingListSecretVersionsSortByEnum(val string) (ListSecretVersionsSortByEnum, bool)

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

type ListSecretVersionsSortOrderEnum

ListSecretVersionsSortOrderEnum Enum with underlying type: string

type ListSecretVersionsSortOrderEnum string

Set of constants representing the allowable values for ListSecretVersionsSortOrderEnum

const (
    ListSecretVersionsSortOrderAsc  ListSecretVersionsSortOrderEnum = "ASC"
    ListSecretVersionsSortOrderDesc ListSecretVersionsSortOrderEnum = "DESC"
)

func GetListSecretVersionsSortOrderEnumValues

func GetListSecretVersionsSortOrderEnumValues() []ListSecretVersionsSortOrderEnum

GetListSecretVersionsSortOrderEnumValues Enumerates the set of values for ListSecretVersionsSortOrderEnum

func GetMappingListSecretVersionsSortOrderEnum

func GetMappingListSecretVersionsSortOrderEnum(val string) (ListSecretVersionsSortOrderEnum, bool)

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

type ListSecretsRequest

ListSecretsRequest wrapper for the ListSecrets operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/ListSecrets.go.html to see an example of how to use ListSecretsRequest.

type ListSecretsRequest struct {

    // The OCID of the compartment.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // The secret name.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // The maximum number of items to return in a paginated "List" call.
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The value of the `opc-next-page` response header
    // from the previous "List" call.
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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
    // `TIMECREATED` is descending. The default order for `NAME` is ascending.
    SortBy ListSecretsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

    // The OCID of the vault.
    VaultId *string `mandatory:"false" contributesTo:"query" name:"vaultId"`

    // A filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
    LifecycleState SecretSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" 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 (ListSecretsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListSecretsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListSecretsRequest) RetryPolicy

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

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

func (ListSecretsRequest) String

func (request ListSecretsRequest) String() string

func (ListSecretsRequest) ValidateEnumValue

func (request ListSecretsRequest) 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 ListSecretsResponse

ListSecretsResponse wrapper for the ListSecrets operation

type ListSecretsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of []SecretSummary instances
    Items []SecretSummary `presentIn:"body"`

    // For pagination of a list of items. When paging through a list, if this header appears in the response,
    // then there are additional items still to get. Include this value as the `page` parameter for the
    // subsequent GET request. For information about pagination, see
    // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#List_Pagination).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`

    // 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 (ListSecretsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListSecretsResponse) String

func (response ListSecretsResponse) String() string

type ListSecretsSortByEnum

ListSecretsSortByEnum Enum with underlying type: string

type ListSecretsSortByEnum string

Set of constants representing the allowable values for ListSecretsSortByEnum

const (
    ListSecretsSortByTimecreated ListSecretsSortByEnum = "TIMECREATED"
    ListSecretsSortByName        ListSecretsSortByEnum = "NAME"
)

func GetListSecretsSortByEnumValues

func GetListSecretsSortByEnumValues() []ListSecretsSortByEnum

GetListSecretsSortByEnumValues Enumerates the set of values for ListSecretsSortByEnum

func GetMappingListSecretsSortByEnum

func GetMappingListSecretsSortByEnum(val string) (ListSecretsSortByEnum, bool)

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

type ListSecretsSortOrderEnum

ListSecretsSortOrderEnum Enum with underlying type: string

type ListSecretsSortOrderEnum string

Set of constants representing the allowable values for ListSecretsSortOrderEnum

const (
    ListSecretsSortOrderAsc  ListSecretsSortOrderEnum = "ASC"
    ListSecretsSortOrderDesc ListSecretsSortOrderEnum = "DESC"
)

func GetListSecretsSortOrderEnumValues

func GetListSecretsSortOrderEnumValues() []ListSecretsSortOrderEnum

GetListSecretsSortOrderEnumValues Enumerates the set of values for ListSecretsSortOrderEnum

func GetMappingListSecretsSortOrderEnum

func GetMappingListSecretsSortOrderEnum(val string) (ListSecretsSortOrderEnum, bool)

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

type PassphraseGenerationContext

PassphraseGenerationContext Generates Passphrase type secrets. By default, passphrase type secrets have no structure. The generated content is stored in Base64 format. The SecretTemplate must have the %GENERATED_PASSPHRASE% keyword, which is later replaced with the generated content, if provided.

type PassphraseGenerationContext struct {

    // SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type.
    // The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets.
    // These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
    SecretTemplate *string `mandatory:"false" json:"secretTemplate"`

    // Length of the passphrase to be generated
    PassphraseLength *int `mandatory:"false" json:"passphraseLength"`

    // Name of passphrase generation template to generate passphrase type secret.
    GenerationTemplate PassphraseGenerationContextGenerationTemplateEnum `mandatory:"true" json:"generationTemplate"`
}

func (PassphraseGenerationContext) GetSecretTemplate

func (m PassphraseGenerationContext) GetSecretTemplate() *string

GetSecretTemplate returns SecretTemplate

func (PassphraseGenerationContext) MarshalJSON

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

MarshalJSON marshals to json representation

func (PassphraseGenerationContext) String

func (m PassphraseGenerationContext) String() string

func (PassphraseGenerationContext) ValidateEnumValue

func (m PassphraseGenerationContext) 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 PassphraseGenerationContextGenerationTemplateEnum

PassphraseGenerationContextGenerationTemplateEnum Enum with underlying type: string

type PassphraseGenerationContextGenerationTemplateEnum string

Set of constants representing the allowable values for PassphraseGenerationContextGenerationTemplateEnum

const (
    PassphraseGenerationContextGenerationTemplateSecretsDefaultPassword PassphraseGenerationContextGenerationTemplateEnum = "SECRETS_DEFAULT_PASSWORD"
    PassphraseGenerationContextGenerationTemplateDbaasDefaultPassword   PassphraseGenerationContextGenerationTemplateEnum = "DBAAS_DEFAULT_PASSWORD"
)

func GetMappingPassphraseGenerationContextGenerationTemplateEnum

func GetMappingPassphraseGenerationContextGenerationTemplateEnum(val string) (PassphraseGenerationContextGenerationTemplateEnum, bool)

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

func GetPassphraseGenerationContextGenerationTemplateEnumValues

func GetPassphraseGenerationContextGenerationTemplateEnumValues() []PassphraseGenerationContextGenerationTemplateEnum

GetPassphraseGenerationContextGenerationTemplateEnumValues Enumerates the set of values for PassphraseGenerationContextGenerationTemplateEnum

type RotateSecretRequest

RotateSecretRequest wrapper for the RotateSecret operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/RotateSecret.go.html to see an example of how to use RotateSecretRequest.

type RotateSecretRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A token that uniquely identifies a request so it can be retried in case
    // of a timeout or server error without risk of executing that same action
    // again. Retry tokens expire after 24 hours, but can be invalidated
    // before then due to conflicting operations (e.g., if a resource has been
    // deleted and purged from the system, then a retry of the original
    // creation request may be rejected).
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // 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 (RotateSecretRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (RotateSecretRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (RotateSecretRequest) RetryPolicy

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

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

func (RotateSecretRequest) String

func (request RotateSecretRequest) String() string

func (RotateSecretRequest) ValidateEnumValue

func (request RotateSecretRequest) 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 RotateSecretResponse

RotateSecretResponse wrapper for the RotateSecret operation

type RotateSecretResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

    // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}

func (RotateSecretResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (RotateSecretResponse) String

func (response RotateSecretResponse) String() string

type RotationConfig

RotationConfig Defines the frequency of the rotation and the information about the target system

type RotationConfig struct {
    TargetSystemDetails TargetSystemDetails `mandatory:"true" json:"targetSystemDetails"`

    // The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format.
    // The minimum value is 1 day and maximum value is 360 days.
    // For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as "P30D."
    RotationInterval *string `mandatory:"false" json:"rotationInterval"`

    // Enables auto rotation, when set to true rotationInterval must be set.
    IsScheduledRotationEnabled *bool `mandatory:"false" json:"isScheduledRotationEnabled"`
}

func (RotationConfig) String

func (m RotationConfig) String() string

func (*RotationConfig) UnmarshalJSON

func (m *RotationConfig) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (RotationConfig) ValidateEnumValue

func (m RotationConfig) 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 ScheduleSecretDeletionDetails

ScheduleSecretDeletionDetails Details for scheduling the deletion of the specified secret.

type ScheduleSecretDeletionDetails struct {

    // An optional property indicating when to delete the secret version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"`
}

func (ScheduleSecretDeletionDetails) String

func (m ScheduleSecretDeletionDetails) String() string

func (ScheduleSecretDeletionDetails) ValidateEnumValue

func (m ScheduleSecretDeletionDetails) 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 ScheduleSecretDeletionRequest

ScheduleSecretDeletionRequest wrapper for the ScheduleSecretDeletion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/ScheduleSecretDeletion.go.html to see an example of how to use ScheduleSecretDeletionRequest.

type ScheduleSecretDeletionRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // Request to schedule the deletion of a secret.
    ScheduleSecretDeletionDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (ScheduleSecretDeletionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ScheduleSecretDeletionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ScheduleSecretDeletionRequest) RetryPolicy

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

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

func (ScheduleSecretDeletionRequest) String

func (request ScheduleSecretDeletionRequest) String() string

func (ScheduleSecretDeletionRequest) ValidateEnumValue

func (request ScheduleSecretDeletionRequest) 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 ScheduleSecretDeletionResponse

ScheduleSecretDeletionResponse wrapper for the ScheduleSecretDeletion operation

type ScheduleSecretDeletionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (ScheduleSecretDeletionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ScheduleSecretDeletionResponse) String

func (response ScheduleSecretDeletionResponse) String() string

type ScheduleSecretVersionDeletionDetails

ScheduleSecretVersionDeletionDetails Schedules the deletion of the specified secret version.

type ScheduleSecretVersionDeletionDetails struct {

    // An optional property indicating when to delete the secret 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"`
}

func (ScheduleSecretVersionDeletionDetails) String

func (m ScheduleSecretVersionDeletionDetails) String() string

func (ScheduleSecretVersionDeletionDetails) ValidateEnumValue

func (m ScheduleSecretVersionDeletionDetails) 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 ScheduleSecretVersionDeletionRequest

ScheduleSecretVersionDeletionRequest wrapper for the ScheduleSecretVersionDeletion operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/ScheduleSecretVersionDeletion.go.html to see an example of how to use ScheduleSecretVersionDeletionRequest.

type ScheduleSecretVersionDeletionRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // The version number of the secret.
    SecretVersionNumber *int64 `mandatory:"true" contributesTo:"path" name:"secretVersionNumber"`

    // Request to delete a secret version.
    ScheduleSecretVersionDeletionDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (ScheduleSecretVersionDeletionRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ScheduleSecretVersionDeletionRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ScheduleSecretVersionDeletionRequest) RetryPolicy

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

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

func (ScheduleSecretVersionDeletionRequest) String

func (request ScheduleSecretVersionDeletionRequest) String() string

func (ScheduleSecretVersionDeletionRequest) ValidateEnumValue

func (request ScheduleSecretVersionDeletionRequest) 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 ScheduleSecretVersionDeletionResponse

ScheduleSecretVersionDeletionResponse wrapper for the ScheduleSecretVersionDeletion operation

type ScheduleSecretVersionDeletionResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // 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 (ScheduleSecretVersionDeletionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ScheduleSecretVersionDeletionResponse) String

func (response ScheduleSecretVersionDeletionResponse) String() string

type Secret

Secret The details of the secret. Secret details do not contain the contents of the secret itself.

type Secret struct {

    // The OCID of the compartment where you want to create the secret.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

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

    // The current lifecycle state of the secret.
    LifecycleState SecretLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The user-friendly name of the secret. Avoid entering confidential information.
    SecretName *string `mandatory:"true" json:"secretName"`

    // A property indicating when the secret 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 OCID of the vault where the secret exists.
    VaultId *string `mandatory:"true" json:"vaultId"`

    // The version number of the secret version that's currently in use.
    CurrentVersionNumber *int64 `mandatory:"false" json:"currentVersionNumber"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // A brief description of the secret. Avoid entering confidential information.
    Description *string `mandatory:"false" json:"description"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
    KeyId *string `mandatory:"false" json:"keyId"`

    // Additional information about the current lifecycle state of the secret.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // Additional metadata that you can use to provide context about how to use the secret or during rotation or
    // other administrative tasks. For example, for a secret that you use to connect to a database, the additional
    // metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
    Metadata map[string]interface{} `mandatory:"false" json:"metadata"`

    RotationConfig *RotationConfig `mandatory:"false" json:"rotationConfig"`

    // Additional information about the status of the secret rotation
    RotationStatus SecretRotationStatusEnum `mandatory:"false" json:"rotationStatus,omitempty"`

    // A property indicating when the secret was last rotated successfully, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    LastRotationTime *common.SDKTime `mandatory:"false" json:"lastRotationTime"`

    // A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    NextRotationTime *common.SDKTime `mandatory:"false" json:"nextRotationTime"`

    // A list of rules that control how the secret is used and managed.
    SecretRules []SecretRule `mandatory:"false" json:"secretRules"`

    // An optional property indicating when the current secret version will expire, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfCurrentVersionExpiry *common.SDKTime `mandatory:"false" json:"timeOfCurrentVersionExpiry"`

    // An optional property indicating when to delete the secret, 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"`

    SecretGenerationContext SecretGenerationContext `mandatory:"false" json:"secretGenerationContext"`

    // The value of this flag determines whether or not secret content will be generated automatically.
    IsAutoGenerationEnabled *bool `mandatory:"false" json:"isAutoGenerationEnabled"`
}

func (Secret) String

func (m Secret) String() string

func (*Secret) UnmarshalJSON

func (m *Secret) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (Secret) ValidateEnumValue

func (m Secret) 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 SecretContentDetails

SecretContentDetails The content of the secret and metadata to help identify it.

type SecretContentDetails interface {

    // Names should be unique within a secret. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
    GetName() *string

    // The rotation state of the secret content. The default is `CURRENT`, meaning that the secret is currently in use. A secret version
    // that you mark as `PENDING` is staged and available for use, but you don't yet want to rotate it into current, active use. For example,
    // you might create or update a secret and mark its rotation state as `PENDING` if you haven't yet updated the secret on the target system.
    // When creating a secret, only the value `CURRENT` is applicable, although the value `LATEST` is also automatically applied. When updating
    // a secret, you can specify a version's rotation state as either `CURRENT` or `PENDING`.
    GetStage() SecretContentDetailsStageEnum
}

type SecretContentDetailsContentTypeEnum

SecretContentDetailsContentTypeEnum Enum with underlying type: string

type SecretContentDetailsContentTypeEnum string

Set of constants representing the allowable values for SecretContentDetailsContentTypeEnum

const (
    SecretContentDetailsContentTypeBase64 SecretContentDetailsContentTypeEnum = "BASE64"
)

func GetMappingSecretContentDetailsContentTypeEnum

func GetMappingSecretContentDetailsContentTypeEnum(val string) (SecretContentDetailsContentTypeEnum, bool)

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

func GetSecretContentDetailsContentTypeEnumValues

func GetSecretContentDetailsContentTypeEnumValues() []SecretContentDetailsContentTypeEnum

GetSecretContentDetailsContentTypeEnumValues Enumerates the set of values for SecretContentDetailsContentTypeEnum

type SecretContentDetailsStageEnum

SecretContentDetailsStageEnum Enum with underlying type: string

type SecretContentDetailsStageEnum string

Set of constants representing the allowable values for SecretContentDetailsStageEnum

const (
    SecretContentDetailsStageCurrent SecretContentDetailsStageEnum = "CURRENT"
    SecretContentDetailsStagePending SecretContentDetailsStageEnum = "PENDING"
)

func GetMappingSecretContentDetailsStageEnum

func GetMappingSecretContentDetailsStageEnum(val string) (SecretContentDetailsStageEnum, bool)

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

func GetSecretContentDetailsStageEnumValues

func GetSecretContentDetailsStageEnumValues() []SecretContentDetailsStageEnum

GetSecretContentDetailsStageEnumValues Enumerates the set of values for SecretContentDetailsStageEnum

type SecretExpiryRule

SecretExpiryRule A rule that helps enforce the expiration of a secret's contents.

type SecretExpiryRule struct {

    // A property indicating how long the secret contents will be considered valid, expressed in
    // ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) format. The secret needs to be
    // updated when the secret content expires.
    // The timer resets after you update the secret contents.
    // The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported.
    // For example, pass `P3D` to have the secret version expire every 3 days.
    SecretVersionExpiryInterval *string `mandatory:"false" json:"secretVersionExpiryInterval"`

    // An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfAbsoluteExpiry *common.SDKTime `mandatory:"false" json:"timeOfAbsoluteExpiry"`

    // A property indicating whether to block retrieval of the secret content, on expiry. The default is false.
    // If the secret has already expired and you would like to retrieve the secret contents,
    // you need to edit the secret rule to disable this property, to allow reading the secret content.
    IsSecretContentRetrievalBlockedOnExpiry *bool `mandatory:"false" json:"isSecretContentRetrievalBlockedOnExpiry"`
}

func (SecretExpiryRule) MarshalJSON

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

MarshalJSON marshals to json representation

func (SecretExpiryRule) String

func (m SecretExpiryRule) String() string

func (SecretExpiryRule) ValidateEnumValue

func (m SecretExpiryRule) 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 SecretGenerationContext

SecretGenerationContext Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.

type SecretGenerationContext interface {

    // SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type.
    // The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets.
    // These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
    GetSecretTemplate() *string
}

type SecretGenerationContextGenerationTypeEnum

SecretGenerationContextGenerationTypeEnum Enum with underlying type: string

type SecretGenerationContextGenerationTypeEnum string

Set of constants representing the allowable values for SecretGenerationContextGenerationTypeEnum

const (
    SecretGenerationContextGenerationTypePassphrase SecretGenerationContextGenerationTypeEnum = "PASSPHRASE"
    SecretGenerationContextGenerationTypeSshKey     SecretGenerationContextGenerationTypeEnum = "SSH_KEY"
    SecretGenerationContextGenerationTypeBytes      SecretGenerationContextGenerationTypeEnum = "BYTES"
)

func GetMappingSecretGenerationContextGenerationTypeEnum

func GetMappingSecretGenerationContextGenerationTypeEnum(val string) (SecretGenerationContextGenerationTypeEnum, bool)

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

func GetSecretGenerationContextGenerationTypeEnumValues

func GetSecretGenerationContextGenerationTypeEnumValues() []SecretGenerationContextGenerationTypeEnum

GetSecretGenerationContextGenerationTypeEnumValues Enumerates the set of values for SecretGenerationContextGenerationTypeEnum

type SecretLifecycleStateEnum

SecretLifecycleStateEnum Enum with underlying type: string

type SecretLifecycleStateEnum string

Set of constants representing the allowable values for SecretLifecycleStateEnum

const (
    SecretLifecycleStateCreating           SecretLifecycleStateEnum = "CREATING"
    SecretLifecycleStateActive             SecretLifecycleStateEnum = "ACTIVE"
    SecretLifecycleStateUpdating           SecretLifecycleStateEnum = "UPDATING"
    SecretLifecycleStateDeleting           SecretLifecycleStateEnum = "DELETING"
    SecretLifecycleStateDeleted            SecretLifecycleStateEnum = "DELETED"
    SecretLifecycleStateSchedulingDeletion SecretLifecycleStateEnum = "SCHEDULING_DELETION"
    SecretLifecycleStatePendingDeletion    SecretLifecycleStateEnum = "PENDING_DELETION"
    SecretLifecycleStateCancellingDeletion SecretLifecycleStateEnum = "CANCELLING_DELETION"
    SecretLifecycleStateFailed             SecretLifecycleStateEnum = "FAILED"
)

func GetMappingSecretLifecycleStateEnum

func GetMappingSecretLifecycleStateEnum(val string) (SecretLifecycleStateEnum, bool)

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

func GetSecretLifecycleStateEnumValues

func GetSecretLifecycleStateEnumValues() []SecretLifecycleStateEnum

GetSecretLifecycleStateEnumValues Enumerates the set of values for SecretLifecycleStateEnum

type SecretReuseRule

SecretReuseRule A rule that disallows reuse of previously used secret content by the specified secret.

type SecretReuseRule struct {

    // A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.
    IsEnforcedOnDeletedSecretVersions *bool `mandatory:"false" json:"isEnforcedOnDeletedSecretVersions"`
}

func (SecretReuseRule) MarshalJSON

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

MarshalJSON marshals to json representation

func (SecretReuseRule) String

func (m SecretReuseRule) String() string

func (SecretReuseRule) ValidateEnumValue

func (m SecretReuseRule) 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 SecretRotationStatusEnum

SecretRotationStatusEnum Enum with underlying type: string

type SecretRotationStatusEnum string

Set of constants representing the allowable values for SecretRotationStatusEnum

const (
    SecretRotationStatusInProgress SecretRotationStatusEnum = "IN_PROGRESS"
    SecretRotationStatusScheduled  SecretRotationStatusEnum = "SCHEDULED"
    SecretRotationStatusNotEnabled SecretRotationStatusEnum = "NOT_ENABLED"
    SecretRotationStatusCancelling SecretRotationStatusEnum = "CANCELLING"
)

func GetMappingSecretRotationStatusEnum

func GetMappingSecretRotationStatusEnum(val string) (SecretRotationStatusEnum, bool)

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

func GetSecretRotationStatusEnumValues

func GetSecretRotationStatusEnumValues() []SecretRotationStatusEnum

GetSecretRotationStatusEnumValues Enumerates the set of values for SecretRotationStatusEnum

type SecretRule

SecretRule A rule that you can apply to a secret to enforce certain conditions on the secret's usage and management.

type SecretRule interface {
}

type SecretRuleRuleTypeEnum

SecretRuleRuleTypeEnum Enum with underlying type: string

type SecretRuleRuleTypeEnum string

Set of constants representing the allowable values for SecretRuleRuleTypeEnum

const (
    SecretRuleRuleTypeExpiryRule SecretRuleRuleTypeEnum = "SECRET_EXPIRY_RULE"
    SecretRuleRuleTypeReuseRule  SecretRuleRuleTypeEnum = "SECRET_REUSE_RULE"
)

func GetMappingSecretRuleRuleTypeEnum

func GetMappingSecretRuleRuleTypeEnum(val string) (SecretRuleRuleTypeEnum, bool)

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

func GetSecretRuleRuleTypeEnumValues

func GetSecretRuleRuleTypeEnumValues() []SecretRuleRuleTypeEnum

GetSecretRuleRuleTypeEnumValues Enumerates the set of values for SecretRuleRuleTypeEnum

type SecretSummary

SecretSummary The details of the secret, excluding the contents of the secret.

type SecretSummary struct {

    // The OCID of the compartment that contains the secret.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

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

    // The current lifecycle state of the secret.
    LifecycleState SecretSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The name of the secret.
    SecretName *string `mandatory:"true" json:"secretName"`

    // A property indicating when the secret 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 OCID of the Vault in which the secret exists
    VaultId *string `mandatory:"true" json:"vaultId"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // A brief description of the secret.
    Description *string `mandatory:"false" json:"description"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // System tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
    SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`

    // The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
    KeyId *string `mandatory:"false" json:"keyId"`

    // Additional information about the secret's current lifecycle state.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    RotationConfig *RotationConfig `mandatory:"false" json:"rotationConfig"`

    // Additional information about the status of the secret rotation
    RotationStatus SecretRotationStatusEnum `mandatory:"false" json:"rotationStatus,omitempty"`

    // A property indicating when the secret was last rotated successfully, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    LastRotationTime *common.SDKTime `mandatory:"false" json:"lastRotationTime"`

    // A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    NextRotationTime *common.SDKTime `mandatory:"false" json:"nextRotationTime"`

    // An optional property indicating when the current secret version will expire, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfCurrentVersionExpiry *common.SDKTime `mandatory:"false" json:"timeOfCurrentVersionExpiry"`

    // An optional property indicating when to delete the secret, 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"`

    SecretGenerationContext SecretGenerationContext `mandatory:"false" json:"secretGenerationContext"`

    // The value of this flag determines whether or not secret content will be generated automatically.
    IsAutoGenerationEnabled *bool `mandatory:"false" json:"isAutoGenerationEnabled"`
}

func (SecretSummary) String

func (m SecretSummary) String() string

func (*SecretSummary) UnmarshalJSON

func (m *SecretSummary) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (SecretSummary) ValidateEnumValue

func (m SecretSummary) 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 SecretSummaryLifecycleStateEnum

SecretSummaryLifecycleStateEnum Enum with underlying type: string

type SecretSummaryLifecycleStateEnum string

Set of constants representing the allowable values for SecretSummaryLifecycleStateEnum

const (
    SecretSummaryLifecycleStateCreating           SecretSummaryLifecycleStateEnum = "CREATING"
    SecretSummaryLifecycleStateActive             SecretSummaryLifecycleStateEnum = "ACTIVE"
    SecretSummaryLifecycleStateUpdating           SecretSummaryLifecycleStateEnum = "UPDATING"
    SecretSummaryLifecycleStateDeleting           SecretSummaryLifecycleStateEnum = "DELETING"
    SecretSummaryLifecycleStateDeleted            SecretSummaryLifecycleStateEnum = "DELETED"
    SecretSummaryLifecycleStateSchedulingDeletion SecretSummaryLifecycleStateEnum = "SCHEDULING_DELETION"
    SecretSummaryLifecycleStatePendingDeletion    SecretSummaryLifecycleStateEnum = "PENDING_DELETION"
    SecretSummaryLifecycleStateCancellingDeletion SecretSummaryLifecycleStateEnum = "CANCELLING_DELETION"
    SecretSummaryLifecycleStateFailed             SecretSummaryLifecycleStateEnum = "FAILED"
)

func GetMappingSecretSummaryLifecycleStateEnum

func GetMappingSecretSummaryLifecycleStateEnum(val string) (SecretSummaryLifecycleStateEnum, bool)

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

func GetSecretSummaryLifecycleStateEnumValues

func GetSecretSummaryLifecycleStateEnumValues() []SecretSummaryLifecycleStateEnum

GetSecretSummaryLifecycleStateEnumValues Enumerates the set of values for SecretSummaryLifecycleStateEnum

type SecretVersion

SecretVersion The details of the secret version, excluding the contents of the secret.

type SecretVersion struct {

    // The content type of the secret version's secret contents.
    ContentType SecretVersionContentTypeEnum `mandatory:"false" json:"contentType,omitempty"`

    // The name of the secret version. A name is unique across versions of a secret.
    Name *string `mandatory:"false" json:"name"`

    // The OCID of the secret.
    SecretId *string `mandatory:"false" json:"secretId"`

    // A list of possible rotation states for the secret version. A secret version marked `CURRENT` is currently in use. A secret version
    // marked `PENDING` is staged and available for use, but has not been applied on the target system and, therefore, has not been rotated
    // into current, active use. The secret most recently uploaded to a vault is always marked `LATEST`. (The first version of a secret is
    // always marked as both `CURRENT` and `LATEST`.) A secret version marked `PREVIOUS` is the secret version that was most recently marked
    // `CURRENT`, before the last secret version rotation. A secret version marked `DEPRECATED` is neither current, pending, nor the previous
    // one in use. Only secret versions marked `DEPRECATED` can be scheduled for deletion.
    Stages []SecretVersionStagesEnum `mandatory:"false" json:"stages,omitempty"`

    // A optional property indicating when the secret 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:"false" json:"timeCreated"`

    // An optional property indicating when to delete the secret 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"`

    // An optional property indicating when the current secret version will expire, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
    // Example: `2019-04-03T21:10:29.600Z`
    TimeOfCurrentVersionExpiry *common.SDKTime `mandatory:"false" json:"timeOfCurrentVersionExpiry"`

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

    // Boolean flag indicating whether secret content for this secret version was auto-generated or not.
    IsContentAutoGenerated *bool `mandatory:"false" json:"isContentAutoGenerated"`
}

func (SecretVersion) String

func (m SecretVersion) String() string

func (SecretVersion) ValidateEnumValue

func (m SecretVersion) 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 SecretVersionContentTypeEnum

SecretVersionContentTypeEnum Enum with underlying type: string

type SecretVersionContentTypeEnum string

Set of constants representing the allowable values for SecretVersionContentTypeEnum

const (
    SecretVersionContentTypeBase64 SecretVersionContentTypeEnum = "BASE64"
)

func GetMappingSecretVersionContentTypeEnum

func GetMappingSecretVersionContentTypeEnum(val string) (SecretVersionContentTypeEnum, bool)

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

func GetSecretVersionContentTypeEnumValues

func GetSecretVersionContentTypeEnumValues() []SecretVersionContentTypeEnum

GetSecretVersionContentTypeEnumValues Enumerates the set of values for SecretVersionContentTypeEnum

type SecretVersionStagesEnum

SecretVersionStagesEnum Enum with underlying type: string

type SecretVersionStagesEnum string

Set of constants representing the allowable values for SecretVersionStagesEnum

const (
    SecretVersionStagesCurrent    SecretVersionStagesEnum = "CURRENT"
    SecretVersionStagesPending    SecretVersionStagesEnum = "PENDING"
    SecretVersionStagesLatest     SecretVersionStagesEnum = "LATEST"
    SecretVersionStagesPrevious   SecretVersionStagesEnum = "PREVIOUS"
    SecretVersionStagesDeprecated SecretVersionStagesEnum = "DEPRECATED"
)

func GetMappingSecretVersionStagesEnum

func GetMappingSecretVersionStagesEnum(val string) (SecretVersionStagesEnum, bool)

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

func GetSecretVersionStagesEnumValues

func GetSecretVersionStagesEnumValues() []SecretVersionStagesEnum

GetSecretVersionStagesEnumValues Enumerates the set of values for SecretVersionStagesEnum

type SecretVersionSummary

SecretVersionSummary The secret version summary object, which doesn't include the contents of the secret.

type SecretVersionSummary struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" json:"secretId"`

    // A optional property indicating when the secret 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 secret.
    VersionNumber *int64 `mandatory:"true" json:"versionNumber"`

    // The content type of the secret version's secret contents.
    ContentType SecretVersionSummaryContentTypeEnum `mandatory:"false" json:"contentType,omitempty"`

    // The name of the secret version. A name is unique across versions of a secret.
    Name *string `mandatory:"false" json:"name"`

    // A list of possible rotation states for the secret version. A secret version marked `CURRENT` is currently in use. A secret version
    // marked `PENDING` is staged and available for use, but has not been applied on the target system and, therefore, has not been rotated
    // into current, active use. The secret most recently uploaded to a vault is always marked `LATEST`. (The first version of a secret is
    // always marked as both `CURRENT` and `LATEST`.) A secret version marked `PREVIOUS` is the secret version that was most recently marked
    // `CURRENT`, before the last secret version rotation. A secret version marked `DEPRECATED` is neither current, pending, nor the previous
    // one in use. Only secret versions marked `DEPRECATED` can be scheduled for deletion.
    Stages []SecretVersionSummaryStagesEnum `mandatory:"false" json:"stages,omitempty"`

    // An optional property indicating when to delete the secret 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"`

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

    // System tags for this resource. Each key is predefined and scoped to a namespace.
    // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`
    SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`

    // Boolean flag indicating whether secret content for this secret version was auto-generated or not.
    IsContentAutoGenerated *bool `mandatory:"false" json:"isContentAutoGenerated"`
}

func (SecretVersionSummary) String

func (m SecretVersionSummary) String() string

func (SecretVersionSummary) ValidateEnumValue

func (m SecretVersionSummary) 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 SecretVersionSummaryContentTypeEnum

SecretVersionSummaryContentTypeEnum Enum with underlying type: string

type SecretVersionSummaryContentTypeEnum string

Set of constants representing the allowable values for SecretVersionSummaryContentTypeEnum

const (
    SecretVersionSummaryContentTypeBase64 SecretVersionSummaryContentTypeEnum = "BASE64"
)

func GetMappingSecretVersionSummaryContentTypeEnum

func GetMappingSecretVersionSummaryContentTypeEnum(val string) (SecretVersionSummaryContentTypeEnum, bool)

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

func GetSecretVersionSummaryContentTypeEnumValues

func GetSecretVersionSummaryContentTypeEnumValues() []SecretVersionSummaryContentTypeEnum

GetSecretVersionSummaryContentTypeEnumValues Enumerates the set of values for SecretVersionSummaryContentTypeEnum

type SecretVersionSummaryStagesEnum

SecretVersionSummaryStagesEnum Enum with underlying type: string

type SecretVersionSummaryStagesEnum string

Set of constants representing the allowable values for SecretVersionSummaryStagesEnum

const (
    SecretVersionSummaryStagesCurrent    SecretVersionSummaryStagesEnum = "CURRENT"
    SecretVersionSummaryStagesPending    SecretVersionSummaryStagesEnum = "PENDING"
    SecretVersionSummaryStagesLatest     SecretVersionSummaryStagesEnum = "LATEST"
    SecretVersionSummaryStagesPrevious   SecretVersionSummaryStagesEnum = "PREVIOUS"
    SecretVersionSummaryStagesDeprecated SecretVersionSummaryStagesEnum = "DEPRECATED"
)

func GetMappingSecretVersionSummaryStagesEnum

func GetMappingSecretVersionSummaryStagesEnum(val string) (SecretVersionSummaryStagesEnum, bool)

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

func GetSecretVersionSummaryStagesEnumValues

func GetSecretVersionSummaryStagesEnumValues() []SecretVersionSummaryStagesEnum

GetSecretVersionSummaryStagesEnumValues Enumerates the set of values for SecretVersionSummaryStagesEnum

type SshKeyGenerationContext

SshKeyGenerationContext Generates ssh keys. By default, the keys are stored as - {"publicKey": "%GENERATED_PUBLIC_KEY%", "privateKey": "%GENERATED_PRIVATE_KEY%"} in PEM format. The SecretTemplate must have both %GENERATED_PUBLIC_KEY% and %GENERATED_PRIVATE_KEY% keywords which is later replaced with the respective keys, if provided.

type SshKeyGenerationContext struct {

    // SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type.
    // The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets.
    // These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
    SecretTemplate *string `mandatory:"false" json:"secretTemplate"`

    // Name of SSH key generation template to generate SSH key type secret.
    GenerationTemplate SshKeyGenerationContextGenerationTemplateEnum `mandatory:"true" json:"generationTemplate"`
}

func (SshKeyGenerationContext) GetSecretTemplate

func (m SshKeyGenerationContext) GetSecretTemplate() *string

GetSecretTemplate returns SecretTemplate

func (SshKeyGenerationContext) MarshalJSON

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

MarshalJSON marshals to json representation

func (SshKeyGenerationContext) String

func (m SshKeyGenerationContext) String() string

func (SshKeyGenerationContext) ValidateEnumValue

func (m SshKeyGenerationContext) 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 SshKeyGenerationContextGenerationTemplateEnum

SshKeyGenerationContextGenerationTemplateEnum Enum with underlying type: string

type SshKeyGenerationContextGenerationTemplateEnum string

Set of constants representing the allowable values for SshKeyGenerationContextGenerationTemplateEnum

const (
    SshKeyGenerationContextGenerationTemplate2048 SshKeyGenerationContextGenerationTemplateEnum = "RSA_2048"
    SshKeyGenerationContextGenerationTemplate3072 SshKeyGenerationContextGenerationTemplateEnum = "RSA_3072"
    SshKeyGenerationContextGenerationTemplate4096 SshKeyGenerationContextGenerationTemplateEnum = "RSA_4096"
)

func GetMappingSshKeyGenerationContextGenerationTemplateEnum

func GetMappingSshKeyGenerationContextGenerationTemplateEnum(val string) (SshKeyGenerationContextGenerationTemplateEnum, bool)

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

func GetSshKeyGenerationContextGenerationTemplateEnumValues

func GetSshKeyGenerationContextGenerationTemplateEnumValues() []SshKeyGenerationContextGenerationTemplateEnum

GetSshKeyGenerationContextGenerationTemplateEnumValues Enumerates the set of values for SshKeyGenerationContextGenerationTemplateEnum

type TargetSystemDetails

TargetSystemDetails The TargetSystemDetails provides the targetSystem type and type-specific connection metadata

type TargetSystemDetails interface {
}

type TargetSystemDetailsTargetSystemTypeEnum

TargetSystemDetailsTargetSystemTypeEnum Enum with underlying type: string

type TargetSystemDetailsTargetSystemTypeEnum string

Set of constants representing the allowable values for TargetSystemDetailsTargetSystemTypeEnum

const (
    TargetSystemDetailsTargetSystemTypeAdb      TargetSystemDetailsTargetSystemTypeEnum = "ADB"
    TargetSystemDetailsTargetSystemTypeFunction TargetSystemDetailsTargetSystemTypeEnum = "FUNCTION"
)

func GetMappingTargetSystemDetailsTargetSystemTypeEnum

func GetMappingTargetSystemDetailsTargetSystemTypeEnum(val string) (TargetSystemDetailsTargetSystemTypeEnum, bool)

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

func GetTargetSystemDetailsTargetSystemTypeEnumValues

func GetTargetSystemDetailsTargetSystemTypeEnumValues() []TargetSystemDetailsTargetSystemTypeEnum

GetTargetSystemDetailsTargetSystemTypeEnumValues Enumerates the set of values for TargetSystemDetailsTargetSystemTypeEnum

type UpdateSecretDetails

UpdateSecretDetails Details for updating a secret.

type UpdateSecretDetails struct {

    // Details to update the secret version of the specified secret. The secret contents,
    // version number, and rules can't be specified at the same time.
    // Updating the secret contents automatically creates a new secret version.
    CurrentVersionNumber *int64 `mandatory:"false" json:"currentVersionNumber"`

    // Defined tags for this resource. Each key is predefined and scoped to a namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

    // A brief description of the secret. Avoid entering confidential information.
    Description *string `mandatory:"false" json:"description"`

    // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Department": "Finance"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    // Additional metadata that you can use to provide context about how to use the secret or during rotation or
    // other administrative tasks. For example, for a secret that you use to connect to a database, the additional
    // metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
    Metadata map[string]interface{} `mandatory:"false" json:"metadata"`

    SecretContent SecretContentDetails `mandatory:"false" json:"secretContent"`

    RotationConfig *RotationConfig `mandatory:"false" json:"rotationConfig"`

    // A list of rules to control how the secret is used and managed.
    SecretRules []SecretRule `mandatory:"false" json:"secretRules"`

    SecretGenerationContext SecretGenerationContext `mandatory:"false" json:"secretGenerationContext"`

    // The value of this flag determines whether or not secret content will be generated automatically.
    EnableAutoGeneration *bool `mandatory:"false" json:"enableAutoGeneration"`
}

func (UpdateSecretDetails) String

func (m UpdateSecretDetails) String() string

func (*UpdateSecretDetails) UnmarshalJSON

func (m *UpdateSecretDetails) UnmarshalJSON(data []byte) (e error)

UnmarshalJSON unmarshals from json

func (UpdateSecretDetails) ValidateEnumValue

func (m UpdateSecretDetails) 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 UpdateSecretRequest

UpdateSecretRequest wrapper for the UpdateSecret operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/UpdateSecret.go.html to see an example of how to use UpdateSecretRequest.

type UpdateSecretRequest struct {

    // The OCID of the secret.
    SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"`

    // Request to update a secret.
    UpdateSecretDetails `contributesTo:"body"`

    // For optimistic concurrency control. In the PUT or DELETE call for a
    // resource, set the `if-match` parameter to the value of the etag from a
    // previous GET or POST response for that resource. The resource will be
    // updated or deleted only if the etag you provide matches the resource's
    // current etag value.
    IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"`

    // Unique identifier for the request. If provided, the returned request ID
    // will include this value. Otherwise, a random request ID will be
    // generated by the service.
    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 (UpdateSecretRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateSecretRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateSecretRequest) RetryPolicy

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

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

func (UpdateSecretRequest) String

func (request UpdateSecretRequest) String() string

func (UpdateSecretRequest) ValidateEnumValue

func (request UpdateSecretRequest) 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 UpdateSecretResponse

UpdateSecretResponse wrapper for the UpdateSecret operation

type UpdateSecretResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Secret instance
    Secret `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 (UpdateSecretResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateSecretResponse) String

func (response UpdateSecretResponse) String() string

type VaultsClient

VaultsClient a client for Vaults

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

func NewVaultsClientWithConfigurationProvider

func NewVaultsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client VaultsClient, err error)

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

func NewVaultsClientWithOboToken

func NewVaultsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client VaultsClient, err error)

NewVaultsClientWithOboToken Creates a new default Vaults 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 (VaultsClient) CancelSecretDeletion

func (client VaultsClient) CancelSecretDeletion(ctx context.Context, request CancelSecretDeletionRequest) (response CancelSecretDeletionResponse, err error)

CancelSecretDeletion Cancels the pending deletion of the specified secret. Canceling a scheduled deletion restores the secret's lifecycle state to what it was before you scheduled the secret for deletion.

# See also

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

func (VaultsClient) CancelSecretRotation

func (client VaultsClient) CancelSecretRotation(ctx context.Context, request CancelSecretRotationRequest) (response CancelSecretRotationResponse, err error)

CancelSecretRotation Cancels the ongoing secret rotation. The cancellation is contingent on how far the rotation process has progressed. Upon cancelling a rotation, all future rotations are also disabled.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/CancelSecretRotation.go.html to see an example of how to use CancelSecretRotation API. A default retry strategy applies to this operation CancelSecretRotation()

func (VaultsClient) CancelSecretVersionDeletion

func (client VaultsClient) CancelSecretVersionDeletion(ctx context.Context, request CancelSecretVersionDeletionRequest) (response CancelSecretVersionDeletionResponse, err error)

CancelSecretVersionDeletion Cancels the scheduled deletion of a secret version.

# See also

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

func (VaultsClient) ChangeSecretCompartment

func (client VaultsClient) ChangeSecretCompartment(ctx context.Context, request ChangeSecretCompartmentRequest) (response ChangeSecretCompartmentResponse, err error)

ChangeSecretCompartment Moves a secret into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). When provided, if-match is checked against the ETag values of the secret.

# See also

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

func (*VaultsClient) ConfigurationProvider

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

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

func (VaultsClient) CreateSecret

func (client VaultsClient) CreateSecret(ctx context.Context, request CreateSecretRequest) (response CreateSecretResponse, err error)

CreateSecret Creates a new secret according to the details of the request. This operation is not supported by the Oracle Cloud Infrastructure Terraform Provider.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/CreateSecret.go.html to see an example of how to use CreateSecret API. A default retry strategy applies to this operation CreateSecret()

func (VaultsClient) GetSecret

func (client VaultsClient) GetSecret(ctx context.Context, request GetSecretRequest) (response GetSecretResponse, err error)

GetSecret Gets information about the specified secret.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/GetSecret.go.html to see an example of how to use GetSecret API. A default retry strategy applies to this operation GetSecret()

func (VaultsClient) GetSecretVersion

func (client VaultsClient) GetSecretVersion(ctx context.Context, request GetSecretVersionRequest) (response GetSecretVersionResponse, err error)

GetSecretVersion Gets information about the specified version of a secret.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/GetSecretVersion.go.html to see an example of how to use GetSecretVersion API. A default retry strategy applies to this operation GetSecretVersion()

func (VaultsClient) ListSecretVersions

func (client VaultsClient) ListSecretVersions(ctx context.Context, request ListSecretVersionsRequest) (response ListSecretVersionsResponse, err error)

ListSecretVersions Lists all secret versions for the specified secret.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/ListSecretVersions.go.html to see an example of how to use ListSecretVersions API. A default retry strategy applies to this operation ListSecretVersions()

func (VaultsClient) ListSecrets

func (client VaultsClient) ListSecrets(ctx context.Context, request ListSecretsRequest) (response ListSecretsResponse, err error)

ListSecrets Lists all secrets in the specified vault and compartment.

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/ListSecrets.go.html to see an example of how to use ListSecrets API. A default retry strategy applies to this operation ListSecrets()

func (VaultsClient) RotateSecret

func (client VaultsClient) RotateSecret(ctx context.Context, request RotateSecretRequest) (response RotateSecretResponse, err error)

RotateSecret API to force rotation of an existing secret in Vault and the specified target system; expects secret to have a valid Target System Details object

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.62.0/vault/RotateSecret.go.html to see an example of how to use RotateSecret API. A default retry strategy applies to this operation RotateSecret()

func (VaultsClient) ScheduleSecretDeletion

func (client VaultsClient) ScheduleSecretDeletion(ctx context.Context, request ScheduleSecretDeletionRequest) (response ScheduleSecretDeletionResponse, err error)

ScheduleSecretDeletion Schedules the deletion of the specified secret. This sets the lifecycle state of the secret to `PENDING_DELETION` and then deletes it after the specified retention period ends.

# See also

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

func (VaultsClient) ScheduleSecretVersionDeletion

func (client VaultsClient) ScheduleSecretVersionDeletion(ctx context.Context, request ScheduleSecretVersionDeletionRequest) (response ScheduleSecretVersionDeletionResponse, err error)

ScheduleSecretVersionDeletion Schedules the deletion of the specified secret version. This deletes it after the specified retention period ends. You can only delete a secret version if the secret version rotation state is marked as `DEPRECATED`.

# See also

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

func (*VaultsClient) SetRegion

func (client *VaultsClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (VaultsClient) UpdateSecret

func (client VaultsClient) UpdateSecret(ctx context.Context, request UpdateSecretRequest) (response UpdateSecretResponse, err error)

UpdateSecret Updates the properties of a secret. Specifically, you can update the version number of the secret to make that version number the current version. You can also update a secret's description, its free-form or defined tags, rules and the secret contents. Updating the secret content automatically creates a new secret version. You cannot, however, update the current secret version number, secret contents, and secret rules at the same time. Furthermore, the secret must in an `ACTIVE` lifecycle state to be updated. This operation is not supported by the Oracle Cloud Infrastructure Terraform Provider.

# See also

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