recovery

package
v65.63.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0, UPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActionTypeEnumStringValues

func GetActionTypeEnumStringValues() []string

GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum

func GetDatabaseSizesEnumStringValues

func GetDatabaseSizesEnumStringValues() []string

GetDatabaseSizesEnumStringValues Enumerates the set of values in String for DatabaseSizesEnum

func GetFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnumStringValues

func GetFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnumStringValues() []string

GetFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnumStringValues Enumerates the set of values in String for FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum

func GetHealthEnumStringValues

func GetHealthEnumStringValues() []string

GetHealthEnumStringValues Enumerates the set of values in String for HealthEnum

func GetLifecycleStateEnumStringValues

func GetLifecycleStateEnumStringValues() []string

GetLifecycleStateEnumStringValues Enumerates the set of values in String for LifecycleStateEnum

func GetListProtectedDatabasesLifecycleStateEnumStringValues

func GetListProtectedDatabasesLifecycleStateEnumStringValues() []string

GetListProtectedDatabasesLifecycleStateEnumStringValues Enumerates the set of values in String for ListProtectedDatabasesLifecycleStateEnum

func GetListProtectedDatabasesSortByEnumStringValues

func GetListProtectedDatabasesSortByEnumStringValues() []string

GetListProtectedDatabasesSortByEnumStringValues Enumerates the set of values in String for ListProtectedDatabasesSortByEnum

func GetListProtectedDatabasesSortOrderEnumStringValues

func GetListProtectedDatabasesSortOrderEnumStringValues() []string

GetListProtectedDatabasesSortOrderEnumStringValues Enumerates the set of values in String for ListProtectedDatabasesSortOrderEnum

func GetListProtectionPoliciesLifecycleStateEnumStringValues

func GetListProtectionPoliciesLifecycleStateEnumStringValues() []string

GetListProtectionPoliciesLifecycleStateEnumStringValues Enumerates the set of values in String for ListProtectionPoliciesLifecycleStateEnum

func GetListProtectionPoliciesOwnerEnumStringValues

func GetListProtectionPoliciesOwnerEnumStringValues() []string

GetListProtectionPoliciesOwnerEnumStringValues Enumerates the set of values in String for ListProtectionPoliciesOwnerEnum

func GetListProtectionPoliciesSortByEnumStringValues

func GetListProtectionPoliciesSortByEnumStringValues() []string

GetListProtectionPoliciesSortByEnumStringValues Enumerates the set of values in String for ListProtectionPoliciesSortByEnum

func GetListProtectionPoliciesSortOrderEnumStringValues

func GetListProtectionPoliciesSortOrderEnumStringValues() []string

GetListProtectionPoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListProtectionPoliciesSortOrderEnum

func GetListRecoveryServiceSubnetsLifecycleStateEnumStringValues

func GetListRecoveryServiceSubnetsLifecycleStateEnumStringValues() []string

GetListRecoveryServiceSubnetsLifecycleStateEnumStringValues Enumerates the set of values in String for ListRecoveryServiceSubnetsLifecycleStateEnum

func GetListRecoveryServiceSubnetsSortByEnumStringValues

func GetListRecoveryServiceSubnetsSortByEnumStringValues() []string

GetListRecoveryServiceSubnetsSortByEnumStringValues Enumerates the set of values in String for ListRecoveryServiceSubnetsSortByEnum

func GetListRecoveryServiceSubnetsSortOrderEnumStringValues

func GetListRecoveryServiceSubnetsSortOrderEnumStringValues() []string

GetListRecoveryServiceSubnetsSortOrderEnumStringValues Enumerates the set of values in String for ListRecoveryServiceSubnetsSortOrderEnum

func GetListWorkRequestErrorsSortByEnumStringValues

func GetListWorkRequestErrorsSortByEnumStringValues() []string

GetListWorkRequestErrorsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortByEnum

func GetListWorkRequestErrorsSortOrderEnumStringValues

func GetListWorkRequestErrorsSortOrderEnumStringValues() []string

GetListWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortOrderEnum

func GetListWorkRequestLogsSortByEnumStringValues

func GetListWorkRequestLogsSortByEnumStringValues() []string

GetListWorkRequestLogsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortByEnum

func GetListWorkRequestLogsSortOrderEnumStringValues

func GetListWorkRequestLogsSortOrderEnumStringValues() []string

GetListWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortOrderEnum

func GetListWorkRequestsSortByEnumStringValues

func GetListWorkRequestsSortByEnumStringValues() []string

GetListWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortByEnum

func GetListWorkRequestsSortOrderEnumStringValues

func GetListWorkRequestsSortOrderEnumStringValues() []string

GetListWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortOrderEnum

func GetListWorkRequestsStatusEnumStringValues

func GetListWorkRequestsStatusEnumStringValues() []string

GetListWorkRequestsStatusEnumStringValues Enumerates the set of values in String for ListWorkRequestsStatusEnum

func GetOperationStatusEnumStringValues

func GetOperationStatusEnumStringValues() []string

GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum

func GetOperationTypeEnumStringValues

func GetOperationTypeEnumStringValues() []string

GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum

func GetSortOrderEnumStringValues

func GetSortOrderEnumStringValues() []string

GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum

Types

type ActionTypeEnum

type ActionTypeEnum string

ActionTypeEnum Enum with underlying type: string

const (
	ActionTypeCreated    ActionTypeEnum = "CREATED"
	ActionTypeUpdated    ActionTypeEnum = "UPDATED"
	ActionTypeDeleted    ActionTypeEnum = "DELETED"
	ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS"
	ActionTypeRelated    ActionTypeEnum = "RELATED"
	ActionTypeFailed     ActionTypeEnum = "FAILED"
)

Set of constants representing the allowable values for ActionTypeEnum

func GetActionTypeEnumValues

func GetActionTypeEnumValues() []ActionTypeEnum

GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum

func GetMappingActionTypeEnum

func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)

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

type ChangeProtectedDatabaseCompartmentDetails

type ChangeProtectedDatabaseCompartmentDetails struct {

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

ChangeProtectedDatabaseCompartmentDetails The configuration details required to move a protected database from the existing compartment to a specified compartment.

func (ChangeProtectedDatabaseCompartmentDetails) String

func (ChangeProtectedDatabaseCompartmentDetails) ValidateEnumValue

func (m ChangeProtectedDatabaseCompartmentDetails) 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 ChangeProtectedDatabaseCompartmentRequest

type ChangeProtectedDatabaseCompartmentRequest struct {

	// The protected database OCID.
	ProtectedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"protectedDatabaseId"`

	// The configuration details required to move a protected database from the existing compartment to a specified compartment.
	ChangeProtectedDatabaseCompartmentDetails `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.
	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
}

ChangeProtectedDatabaseCompartmentRequest wrapper for the ChangeProtectedDatabaseCompartment operation

See also

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

func (ChangeProtectedDatabaseCompartmentRequest) BinaryRequestBody

BinaryRequestBody implements the OCIRequest interface

func (ChangeProtectedDatabaseCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeProtectedDatabaseCompartmentRequest) RetryPolicy

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

func (ChangeProtectedDatabaseCompartmentRequest) String

func (ChangeProtectedDatabaseCompartmentRequest) ValidateEnumValue

func (request ChangeProtectedDatabaseCompartmentRequest) 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 ChangeProtectedDatabaseCompartmentResponse

type ChangeProtectedDatabaseCompartmentResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

ChangeProtectedDatabaseCompartmentResponse wrapper for the ChangeProtectedDatabaseCompartment operation

func (ChangeProtectedDatabaseCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeProtectedDatabaseCompartmentResponse) String

type ChangeProtectionPolicyCompartmentDetails

type ChangeProtectionPolicyCompartmentDetails struct {

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

ChangeProtectionPolicyCompartmentDetails The configuration details required to move a protection policy from the existing compartment to a specified compartment.

func (ChangeProtectionPolicyCompartmentDetails) String

func (ChangeProtectionPolicyCompartmentDetails) ValidateEnumValue

func (m ChangeProtectionPolicyCompartmentDetails) 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 ChangeProtectionPolicyCompartmentRequest

type ChangeProtectionPolicyCompartmentRequest struct {

	// The protection policy OCID.
	ProtectionPolicyId *string `mandatory:"true" contributesTo:"path" name:"protectionPolicyId"`

	// The configuration details required to move a protection policy from the existing compartment to a specified compartment.
	ChangeProtectionPolicyCompartmentDetails `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.
	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
}

ChangeProtectionPolicyCompartmentRequest wrapper for the ChangeProtectionPolicyCompartment operation

See also

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

func (ChangeProtectionPolicyCompartmentRequest) BinaryRequestBody

BinaryRequestBody implements the OCIRequest interface

func (ChangeProtectionPolicyCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeProtectionPolicyCompartmentRequest) RetryPolicy

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

func (ChangeProtectionPolicyCompartmentRequest) String

func (ChangeProtectionPolicyCompartmentRequest) ValidateEnumValue

func (request ChangeProtectionPolicyCompartmentRequest) 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 ChangeProtectionPolicyCompartmentResponse

type ChangeProtectionPolicyCompartmentResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

ChangeProtectionPolicyCompartmentResponse wrapper for the ChangeProtectionPolicyCompartment operation

func (ChangeProtectionPolicyCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeProtectionPolicyCompartmentResponse) String

type ChangeRecoveryServiceSubnetCompartmentDetails

type ChangeRecoveryServiceSubnetCompartmentDetails struct {

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

ChangeRecoveryServiceSubnetCompartmentDetails The configuration details required to move a Recovery Service subnet from the existing compartment to a specified compartment.

func (ChangeRecoveryServiceSubnetCompartmentDetails) String

func (ChangeRecoveryServiceSubnetCompartmentDetails) ValidateEnumValue

func (m ChangeRecoveryServiceSubnetCompartmentDetails) 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 ChangeRecoveryServiceSubnetCompartmentRequest

type ChangeRecoveryServiceSubnetCompartmentRequest struct {

	// The recovery service subnet OCID.
	RecoveryServiceSubnetId *string `mandatory:"true" contributesTo:"path" name:"recoveryServiceSubnetId"`

	// The configuration details required to move a Recovery Service subnet from the existing compartment to a specified compartment.
	ChangeRecoveryServiceSubnetCompartmentDetails `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.
	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
}

ChangeRecoveryServiceSubnetCompartmentRequest wrapper for the ChangeRecoveryServiceSubnetCompartment operation

See also

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

func (ChangeRecoveryServiceSubnetCompartmentRequest) BinaryRequestBody

BinaryRequestBody implements the OCIRequest interface

func (ChangeRecoveryServiceSubnetCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeRecoveryServiceSubnetCompartmentRequest) RetryPolicy

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

func (ChangeRecoveryServiceSubnetCompartmentRequest) String

func (ChangeRecoveryServiceSubnetCompartmentRequest) ValidateEnumValue

func (request ChangeRecoveryServiceSubnetCompartmentRequest) 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 ChangeRecoveryServiceSubnetCompartmentResponse

type ChangeRecoveryServiceSubnetCompartmentResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

ChangeRecoveryServiceSubnetCompartmentResponse wrapper for the ChangeRecoveryServiceSubnetCompartment operation

func (ChangeRecoveryServiceSubnetCompartmentResponse) HTTPResponse

HTTPResponse implements the OCIResponse interface

func (ChangeRecoveryServiceSubnetCompartmentResponse) String

type CreateProtectedDatabaseDetails

type CreateProtectedDatabaseDetails struct {

	// The protected database name. You can change the displayName. Avoid entering confidential information.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
	DbUniqueName *string `mandatory:"true" json:"dbUniqueName"`

	// Password credential which can be used to connect to Protected Database.
	// It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters.
	// The special characters must be underscore (_), number sign (#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
	Password *string `mandatory:"true" json:"password"`

	// The OCID of the protection policy associated with the protected database.
	ProtectionPolicyId *string `mandatory:"true" json:"protectionPolicyId"`

	// List of recovery service subnet resources associated with the protected database.
	RecoveryServiceSubnets []RecoveryServiceSubnetInput `mandatory:"true" json:"recoveryServiceSubnets"`

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

	// The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
	DatabaseSize DatabaseSizesEnum `mandatory:"false" json:"databaseSize,omitempty"`

	// The OCID of the protected database.
	DatabaseId *string `mandatory:"false" json:"databaseId"`

	// The size of the database, in gigabytes.
	DatabaseSizeInGBs *int `mandatory:"false" json:"databaseSizeInGBs"`

	// The percentage of data changes that exist in the database between successive incremental backups.
	ChangeRate *float64 `mandatory:"false" json:"changeRate"`

	// The compression ratio of the protected database. The compression ratio represents the ratio of compressed block size to expanded block size.
	CompressionRatio *float64 `mandatory:"false" json:"compressionRatio"`

	// The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.
	// Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
	IsRedoLogsShipped *bool `mandatory:"false" json:"isRedoLogsShipped"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

CreateProtectedDatabaseDetails Describes the parameters required to create a protected database.

func (CreateProtectedDatabaseDetails) String

func (CreateProtectedDatabaseDetails) ValidateEnumValue

func (m CreateProtectedDatabaseDetails) 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 CreateProtectedDatabaseRequest

type CreateProtectedDatabaseRequest struct {

	// Describes the parameters required to create a protected database.
	CreateProtectedDatabaseDetails `contributesTo:"body"`

	// 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. For example, if a resource
	// has been deleted and purged from the system, then a retry of the original creation request
	// might be rejected.
	OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

	// Unique identifier for the request.
	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
}

CreateProtectedDatabaseRequest wrapper for the CreateProtectedDatabase operation

See also

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

func (CreateProtectedDatabaseRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateProtectedDatabaseRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateProtectedDatabaseRequest) RetryPolicy

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

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

func (CreateProtectedDatabaseRequest) String

func (request CreateProtectedDatabaseRequest) String() string

func (CreateProtectedDatabaseRequest) ValidateEnumValue

func (request CreateProtectedDatabaseRequest) 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 CreateProtectedDatabaseResponse

type CreateProtectedDatabaseResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

	// Relative URL of the newly created resource.
	Location *string `presentIn:"header" name:"location"`

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

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

CreateProtectedDatabaseResponse wrapper for the CreateProtectedDatabase operation

func (CreateProtectedDatabaseResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateProtectedDatabaseResponse) String

func (response CreateProtectedDatabaseResponse) String() string

type CreateProtectionPolicyDetails

type CreateProtectionPolicyDetails struct {

	// A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// The maximum number of days to retain backups for a protected database.
	BackupRetentionPeriodInDays *int `mandatory:"true" json:"backupRetentionPeriodInDays"`

	// Compartment Identifier
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

CreateProtectionPolicyDetails Describes the parameters required to create a custom protection policy.

func (CreateProtectionPolicyDetails) String

func (CreateProtectionPolicyDetails) ValidateEnumValue

func (m CreateProtectionPolicyDetails) 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 CreateProtectionPolicyRequest

type CreateProtectionPolicyRequest struct {

	// Describes the parameters required to create a custom protection policy.
	CreateProtectionPolicyDetails `contributesTo:"body"`

	// 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. For example, if a resource
	// has been deleted and purged from the system, then a retry of the original creation request
	// might be rejected.
	OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

	// Unique identifier for the request.
	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
}

CreateProtectionPolicyRequest wrapper for the CreateProtectionPolicy operation

See also

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

func (CreateProtectionPolicyRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateProtectionPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateProtectionPolicyRequest) RetryPolicy

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

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

func (CreateProtectionPolicyRequest) String

func (request CreateProtectionPolicyRequest) String() string

func (CreateProtectionPolicyRequest) ValidateEnumValue

func (request CreateProtectionPolicyRequest) 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 CreateProtectionPolicyResponse

type CreateProtectionPolicyResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

	// Relative URL of the newly created resource.
	Location *string `presentIn:"header" name:"location"`

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

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

CreateProtectionPolicyResponse wrapper for the CreateProtectionPolicy operation

func (CreateProtectionPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateProtectionPolicyResponse) String

func (response CreateProtectionPolicyResponse) String() string

type CreateRecoveryServiceSubnetDetails

type CreateRecoveryServiceSubnetDetails struct {

	// A user-provided name for the recovery service subnet. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
	DisplayName *string `mandatory:"true" json:"displayName"`

	// The OCID of the subnet associated with the recovery service subnet. You can create a single backup network per virtual cloud network (VCN).
	SubnetId *string `mandatory:"true" json:"subnetId"`

	// The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You can create a single recovery service subnet per VCN.
	VcnId *string `mandatory:"true" json:"vcnId"`

	// The compartment OCID.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

CreateRecoveryServiceSubnetDetails Describes the parameters required to create a recovery service subnet.

func (CreateRecoveryServiceSubnetDetails) String

func (CreateRecoveryServiceSubnetDetails) ValidateEnumValue

func (m CreateRecoveryServiceSubnetDetails) 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 CreateRecoveryServiceSubnetRequest

type CreateRecoveryServiceSubnetRequest struct {

	// Describes the parameters required to create a recovery service subnet.
	CreateRecoveryServiceSubnetDetails `contributesTo:"body"`

	// 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. For example, if a resource
	// has been deleted and purged from the system, then a retry of the original creation request
	// might be rejected.
	OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

	// Unique identifier for the request.
	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
}

CreateRecoveryServiceSubnetRequest wrapper for the CreateRecoveryServiceSubnet operation

See also

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

func (CreateRecoveryServiceSubnetRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateRecoveryServiceSubnetRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateRecoveryServiceSubnetRequest) RetryPolicy

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

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

func (CreateRecoveryServiceSubnetRequest) String

func (request CreateRecoveryServiceSubnetRequest) String() string

func (CreateRecoveryServiceSubnetRequest) ValidateEnumValue

func (request CreateRecoveryServiceSubnetRequest) 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 CreateRecoveryServiceSubnetResponse

type CreateRecoveryServiceSubnetResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

	// Relative URL of the newly created resource.
	Location *string `presentIn:"header" name:"location"`

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

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

CreateRecoveryServiceSubnetResponse wrapper for the CreateRecoveryServiceSubnet operation

func (CreateRecoveryServiceSubnetResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateRecoveryServiceSubnetResponse) String

func (response CreateRecoveryServiceSubnetResponse) String() string

type DatabaseRecoveryClient

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

DatabaseRecoveryClient a client for DatabaseRecovery

func NewDatabaseRecoveryClientWithConfigurationProvider

func NewDatabaseRecoveryClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client DatabaseRecoveryClient, err error)

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

func NewDatabaseRecoveryClientWithOboToken

func NewDatabaseRecoveryClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client DatabaseRecoveryClient, err error)

NewDatabaseRecoveryClientWithOboToken Creates a new default DatabaseRecovery 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 (DatabaseRecoveryClient) ChangeProtectedDatabaseCompartment

func (client DatabaseRecoveryClient) ChangeProtectedDatabaseCompartment(ctx context.Context, request ChangeProtectedDatabaseCompartmentRequest) (response ChangeProtectedDatabaseCompartmentResponse, err error)

ChangeProtectedDatabaseCompartment Moves a protected database resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.

See also

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

func (DatabaseRecoveryClient) ChangeProtectionPolicyCompartment

func (client DatabaseRecoveryClient) ChangeProtectionPolicyCompartment(ctx context.Context, request ChangeProtectionPolicyCompartmentRequest) (response ChangeProtectionPolicyCompartmentResponse, err error)

ChangeProtectionPolicyCompartment Moves a protection policy resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.

See also

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

func (DatabaseRecoveryClient) ChangeRecoveryServiceSubnetCompartment

func (client DatabaseRecoveryClient) ChangeRecoveryServiceSubnetCompartment(ctx context.Context, request ChangeRecoveryServiceSubnetCompartmentRequest) (response ChangeRecoveryServiceSubnetCompartmentResponse, err error)

ChangeRecoveryServiceSubnetCompartment Moves a recovery service subnet resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.

See also

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

func (*DatabaseRecoveryClient) ConfigurationProvider

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

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

func (DatabaseRecoveryClient) CreateProtectedDatabase

func (client DatabaseRecoveryClient) CreateProtectedDatabase(ctx context.Context, request CreateProtectedDatabaseRequest) (response CreateProtectedDatabaseResponse, err error)

CreateProtectedDatabase Creates a new Protected Database.

See also

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

func (DatabaseRecoveryClient) CreateProtectionPolicy

func (client DatabaseRecoveryClient) CreateProtectionPolicy(ctx context.Context, request CreateProtectionPolicyRequest) (response CreateProtectionPolicyResponse, err error)

CreateProtectionPolicy Creates a new Protection Policy.

See also

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

func (DatabaseRecoveryClient) CreateRecoveryServiceSubnet

func (client DatabaseRecoveryClient) CreateRecoveryServiceSubnet(ctx context.Context, request CreateRecoveryServiceSubnetRequest) (response CreateRecoveryServiceSubnetResponse, err error)

CreateRecoveryServiceSubnet Creates a new Recovery Service Subnet.

See also

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

func (DatabaseRecoveryClient) DeleteProtectedDatabase

func (client DatabaseRecoveryClient) DeleteProtectedDatabase(ctx context.Context, request DeleteProtectedDatabaseRequest) (response DeleteProtectedDatabaseResponse, err error)

DeleteProtectedDatabase Deletes a protected database based on the specified protected database ID.

See also

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

func (DatabaseRecoveryClient) DeleteProtectionPolicy

func (client DatabaseRecoveryClient) DeleteProtectionPolicy(ctx context.Context, request DeleteProtectionPolicyRequest) (response DeleteProtectionPolicyResponse, err error)

DeleteProtectionPolicy Deletes a specified protection policy. You can delete custom policies only. Deleting a Oracle predefined policies will result in status code 405 Method Not Allowed.

See also

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

func (DatabaseRecoveryClient) DeleteRecoveryServiceSubnet

func (client DatabaseRecoveryClient) DeleteRecoveryServiceSubnet(ctx context.Context, request DeleteRecoveryServiceSubnetRequest) (response DeleteRecoveryServiceSubnetResponse, err error)

DeleteRecoveryServiceSubnet Deletes a specified recovery service subnet.

See also

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

func (DatabaseRecoveryClient) FetchProtectedDatabaseConfiguration

func (client DatabaseRecoveryClient) FetchProtectedDatabaseConfiguration(ctx context.Context, request FetchProtectedDatabaseConfigurationRequest) (response FetchProtectedDatabaseConfigurationResponse, err error)

FetchProtectedDatabaseConfiguration Downloads the network service configuration file 'tnsnames.ora' for a specified protected database. Applies to user-defined recovery systems only.

See also

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

func (DatabaseRecoveryClient) GetProtectedDatabase

func (client DatabaseRecoveryClient) GetProtectedDatabase(ctx context.Context, request GetProtectedDatabaseRequest) (response GetProtectedDatabaseResponse, err error)

GetProtectedDatabase Gets information about a specified protected database.

See also

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

func (DatabaseRecoveryClient) GetProtectionPolicy

func (client DatabaseRecoveryClient) GetProtectionPolicy(ctx context.Context, request GetProtectionPolicyRequest) (response GetProtectionPolicyResponse, err error)

GetProtectionPolicy Gets information about a specified protection policy.

See also

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

func (DatabaseRecoveryClient) GetRecoveryServiceSubnet

func (client DatabaseRecoveryClient) GetRecoveryServiceSubnet(ctx context.Context, request GetRecoveryServiceSubnetRequest) (response GetRecoveryServiceSubnetResponse, err error)

GetRecoveryServiceSubnet Gets information about a specified recovery service subnet.

See also

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

func (DatabaseRecoveryClient) GetWorkRequest

func (client DatabaseRecoveryClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)

GetWorkRequest Gets the status of the work request based on the specified ID

See also

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

func (DatabaseRecoveryClient) ListProtectedDatabases

func (client DatabaseRecoveryClient) ListProtectedDatabases(ctx context.Context, request ListProtectedDatabasesRequest) (response ListProtectedDatabasesResponse, err error)

ListProtectedDatabases Lists the protected databases based on the specified parameters.

See also

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

func (DatabaseRecoveryClient) ListProtectionPolicies

func (client DatabaseRecoveryClient) ListProtectionPolicies(ctx context.Context, request ListProtectionPoliciesRequest) (response ListProtectionPoliciesResponse, err error)

ListProtectionPolicies Gets a list of protection policies based on the specified parameters.

See also

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

func (DatabaseRecoveryClient) ListRecoveryServiceSubnets

func (client DatabaseRecoveryClient) ListRecoveryServiceSubnets(ctx context.Context, request ListRecoveryServiceSubnetsRequest) (response ListRecoveryServiceSubnetsResponse, err error)

ListRecoveryServiceSubnets Returns a list of Recovery Service Subnets.

See also

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

func (DatabaseRecoveryClient) ListWorkRequestErrors

func (client DatabaseRecoveryClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)

ListWorkRequestErrors Return a (paginated) list of errors for a given work request.

See also

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

func (DatabaseRecoveryClient) ListWorkRequestLogs

func (client DatabaseRecoveryClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)

ListWorkRequestLogs Return a (paginated) list of logs for a given work request.

See also

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

func (DatabaseRecoveryClient) ListWorkRequests

func (client DatabaseRecoveryClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)

ListWorkRequests Lists the work requests in a compartment.

See also

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

func (*DatabaseRecoveryClient) SetRegion

func (client *DatabaseRecoveryClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (DatabaseRecoveryClient) UpdateProtectedDatabase

func (client DatabaseRecoveryClient) UpdateProtectedDatabase(ctx context.Context, request UpdateProtectedDatabaseRequest) (response UpdateProtectedDatabaseResponse, err error)

UpdateProtectedDatabase Updates the Protected Database

See also

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

func (DatabaseRecoveryClient) UpdateProtectionPolicy

func (client DatabaseRecoveryClient) UpdateProtectionPolicy(ctx context.Context, request UpdateProtectionPolicyRequest) (response UpdateProtectionPolicyResponse, err error)

UpdateProtectionPolicy Updates the specified protection policy.

See also

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

func (DatabaseRecoveryClient) UpdateRecoveryServiceSubnet

func (client DatabaseRecoveryClient) UpdateRecoveryServiceSubnet(ctx context.Context, request UpdateRecoveryServiceSubnetRequest) (response UpdateRecoveryServiceSubnetResponse, err error)

UpdateRecoveryServiceSubnet Updates the specified recovery service subnet.

See also

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

type DatabaseSizesEnum

type DatabaseSizesEnum string

DatabaseSizesEnum Enum with underlying type: string

const (
	DatabaseSizesXs   DatabaseSizesEnum = "XS"
	DatabaseSizesS    DatabaseSizesEnum = "S"
	DatabaseSizesM    DatabaseSizesEnum = "M"
	DatabaseSizesL    DatabaseSizesEnum = "L"
	DatabaseSizesXl   DatabaseSizesEnum = "XL"
	DatabaseSizesXxl  DatabaseSizesEnum = "XXL"
	DatabaseSizesAuto DatabaseSizesEnum = "AUTO"
)

Set of constants representing the allowable values for DatabaseSizesEnum

func GetDatabaseSizesEnumValues

func GetDatabaseSizesEnumValues() []DatabaseSizesEnum

GetDatabaseSizesEnumValues Enumerates the set of values for DatabaseSizesEnum

func GetMappingDatabaseSizesEnum

func GetMappingDatabaseSizesEnum(val string) (DatabaseSizesEnum, bool)

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

type DeleteProtectedDatabaseRequest

type DeleteProtectedDatabaseRequest struct {

	// The protected database OCID.
	ProtectedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"protectedDatabaseId"`

	// 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.
	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
}

DeleteProtectedDatabaseRequest wrapper for the DeleteProtectedDatabase operation

See also

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

func (DeleteProtectedDatabaseRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteProtectedDatabaseRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteProtectedDatabaseRequest) RetryPolicy

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

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

func (DeleteProtectedDatabaseRequest) String

func (request DeleteProtectedDatabaseRequest) String() string

func (DeleteProtectedDatabaseRequest) ValidateEnumValue

func (request DeleteProtectedDatabaseRequest) 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 DeleteProtectedDatabaseResponse

type DeleteProtectedDatabaseResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

DeleteProtectedDatabaseResponse wrapper for the DeleteProtectedDatabase operation

func (DeleteProtectedDatabaseResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteProtectedDatabaseResponse) String

func (response DeleteProtectedDatabaseResponse) String() string

type DeleteProtectionPolicyRequest

type DeleteProtectionPolicyRequest struct {

	// The protection policy OCID.
	ProtectionPolicyId *string `mandatory:"true" contributesTo:"path" name:"protectionPolicyId"`

	// 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.
	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
}

DeleteProtectionPolicyRequest wrapper for the DeleteProtectionPolicy operation

See also

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

func (DeleteProtectionPolicyRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteProtectionPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteProtectionPolicyRequest) RetryPolicy

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

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

func (DeleteProtectionPolicyRequest) String

func (request DeleteProtectionPolicyRequest) String() string

func (DeleteProtectionPolicyRequest) ValidateEnumValue

func (request DeleteProtectionPolicyRequest) 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 DeleteProtectionPolicyResponse

type DeleteProtectionPolicyResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

DeleteProtectionPolicyResponse wrapper for the DeleteProtectionPolicy operation

func (DeleteProtectionPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteProtectionPolicyResponse) String

func (response DeleteProtectionPolicyResponse) String() string

type DeleteRecoveryServiceSubnetRequest

type DeleteRecoveryServiceSubnetRequest struct {

	// The recovery service subnet OCID.
	RecoveryServiceSubnetId *string `mandatory:"true" contributesTo:"path" name:"recoveryServiceSubnetId"`

	// 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.
	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
}

DeleteRecoveryServiceSubnetRequest wrapper for the DeleteRecoveryServiceSubnet operation

See also

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

func (DeleteRecoveryServiceSubnetRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteRecoveryServiceSubnetRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteRecoveryServiceSubnetRequest) RetryPolicy

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

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

func (DeleteRecoveryServiceSubnetRequest) String

func (request DeleteRecoveryServiceSubnetRequest) String() string

func (DeleteRecoveryServiceSubnetRequest) ValidateEnumValue

func (request DeleteRecoveryServiceSubnetRequest) 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 DeleteRecoveryServiceSubnetResponse

type DeleteRecoveryServiceSubnetResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

DeleteRecoveryServiceSubnetResponse wrapper for the DeleteRecoveryServiceSubnet operation

func (DeleteRecoveryServiceSubnetResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteRecoveryServiceSubnetResponse) String

func (response DeleteRecoveryServiceSubnetResponse) String() string

type FetchProtectedDatabaseConfigurationDetails

type FetchProtectedDatabaseConfigurationDetails struct {

	// Currently has four config options ALL, TNSNAMES, HOSTS and CABUNDLE. All will return a zipped folder containing the contents of both tnsnames and the certificateChainPem.
	ConfigurationType FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum `mandatory:"false" json:"configurationType,omitempty"`
}

FetchProtectedDatabaseConfigurationDetails Provides which configuration details to get.

func (FetchProtectedDatabaseConfigurationDetails) String

func (FetchProtectedDatabaseConfigurationDetails) ValidateEnumValue

func (m FetchProtectedDatabaseConfigurationDetails) 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 FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum

type FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum string

FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum Enum with underlying type: string

const (
	FetchProtectedDatabaseConfigurationDetailsConfigurationTypeCabundle FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum = "CABUNDLE"
	FetchProtectedDatabaseConfigurationDetailsConfigurationTypeTnsnames FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum = "TNSNAMES"
	FetchProtectedDatabaseConfigurationDetailsConfigurationTypeHosts    FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum = "HOSTS"
	FetchProtectedDatabaseConfigurationDetailsConfigurationTypeAll      FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum = "ALL"
)

Set of constants representing the allowable values for FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum

func GetFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnumValues

func GetFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnumValues() []FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum

GetFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnumValues Enumerates the set of values for FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum

func GetMappingFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum

func GetMappingFetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum(val string) (FetchProtectedDatabaseConfigurationDetailsConfigurationTypeEnum, bool)

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

type FetchProtectedDatabaseConfigurationRequest

type FetchProtectedDatabaseConfigurationRequest struct {

	// The protected database OCID.
	ProtectedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"protectedDatabaseId"`

	// Which configuration to get
	FetchProtectedDatabaseConfigurationDetails `contributesTo:"body"`

	// Unique identifier for the request.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

FetchProtectedDatabaseConfigurationRequest wrapper for the FetchProtectedDatabaseConfiguration operation

See also

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

func (FetchProtectedDatabaseConfigurationRequest) BinaryRequestBody

BinaryRequestBody implements the OCIRequest interface

func (FetchProtectedDatabaseConfigurationRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (FetchProtectedDatabaseConfigurationRequest) RetryPolicy

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

func (FetchProtectedDatabaseConfigurationRequest) String

func (FetchProtectedDatabaseConfigurationRequest) ValidateEnumValue

func (request FetchProtectedDatabaseConfigurationRequest) 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 FetchProtectedDatabaseConfigurationResponse

type FetchProtectedDatabaseConfigurationResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The io.ReadCloser instance
	Content io.ReadCloser `presentIn:"body" encoding:"binary"`

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

FetchProtectedDatabaseConfigurationResponse wrapper for the FetchProtectedDatabaseConfiguration operation

func (FetchProtectedDatabaseConfigurationResponse) HTTPResponse

HTTPResponse implements the OCIResponse interface

func (FetchProtectedDatabaseConfigurationResponse) String

type GetProtectedDatabaseRequest

type GetProtectedDatabaseRequest struct {

	// The protected database OCID.
	ProtectedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"protectedDatabaseId"`

	// Unique identifier for the request.
	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
}

GetProtectedDatabaseRequest wrapper for the GetProtectedDatabase operation

See also

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

func (GetProtectedDatabaseRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetProtectedDatabaseRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetProtectedDatabaseRequest) RetryPolicy

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

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

func (GetProtectedDatabaseRequest) String

func (request GetProtectedDatabaseRequest) String() string

func (GetProtectedDatabaseRequest) ValidateEnumValue

func (request GetProtectedDatabaseRequest) 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 GetProtectedDatabaseResponse

type GetProtectedDatabaseResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The ProtectedDatabase instance
	ProtectedDatabase `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"`
}

GetProtectedDatabaseResponse wrapper for the GetProtectedDatabase operation

func (GetProtectedDatabaseResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetProtectedDatabaseResponse) String

func (response GetProtectedDatabaseResponse) String() string

type GetProtectionPolicyRequest

type GetProtectionPolicyRequest struct {

	// The protection policy OCID.
	ProtectionPolicyId *string `mandatory:"true" contributesTo:"path" name:"protectionPolicyId"`

	// Unique identifier for the request.
	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
}

GetProtectionPolicyRequest wrapper for the GetProtectionPolicy operation

See also

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

func (GetProtectionPolicyRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetProtectionPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetProtectionPolicyRequest) RetryPolicy

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

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

func (GetProtectionPolicyRequest) String

func (request GetProtectionPolicyRequest) String() string

func (GetProtectionPolicyRequest) ValidateEnumValue

func (request GetProtectionPolicyRequest) 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 GetProtectionPolicyResponse

type GetProtectionPolicyResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The ProtectionPolicy instance
	ProtectionPolicy `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"`
}

GetProtectionPolicyResponse wrapper for the GetProtectionPolicy operation

func (GetProtectionPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetProtectionPolicyResponse) String

func (response GetProtectionPolicyResponse) String() string

type GetRecoveryServiceSubnetRequest

type GetRecoveryServiceSubnetRequest struct {

	// The recovery service subnet OCID.
	RecoveryServiceSubnetId *string `mandatory:"true" contributesTo:"path" name:"recoveryServiceSubnetId"`

	// Unique identifier for the request.
	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
}

GetRecoveryServiceSubnetRequest wrapper for the GetRecoveryServiceSubnet operation

See also

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

func (GetRecoveryServiceSubnetRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetRecoveryServiceSubnetRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetRecoveryServiceSubnetRequest) RetryPolicy

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

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

func (GetRecoveryServiceSubnetRequest) String

func (request GetRecoveryServiceSubnetRequest) String() string

func (GetRecoveryServiceSubnetRequest) ValidateEnumValue

func (request GetRecoveryServiceSubnetRequest) 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 GetRecoveryServiceSubnetResponse

type GetRecoveryServiceSubnetResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// The RecoveryServiceSubnet instance
	RecoveryServiceSubnet `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"`
}

GetRecoveryServiceSubnetResponse wrapper for the GetRecoveryServiceSubnet operation

func (GetRecoveryServiceSubnetResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetRecoveryServiceSubnetResponse) String

func (response GetRecoveryServiceSubnetResponse) String() string

type GetWorkRequestRequest

type GetWorkRequestRequest struct {

	// The OCID of the work request.
	WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`

	// Unique identifier for the request.
	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
}

GetWorkRequestRequest wrapper for the GetWorkRequest operation

See also

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

func (GetWorkRequestRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetWorkRequestRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetWorkRequestRequest) RetryPolicy

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

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

func (GetWorkRequestRequest) String

func (request GetWorkRequestRequest) String() string

func (GetWorkRequestRequest) ValidateEnumValue

func (request GetWorkRequestRequest) 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 GetWorkRequestResponse

type GetWorkRequestResponse struct {

	// The underlying http response
	RawResponse *http.Response

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

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

	// A decimal number representing the number of seconds the client should wait before polling this endpoint again.
	RetryAfter *int `presentIn:"header" name:"retry-after"`
}

GetWorkRequestResponse wrapper for the GetWorkRequest operation

func (GetWorkRequestResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetWorkRequestResponse) String

func (response GetWorkRequestResponse) String() string

type HealthEnum

type HealthEnum string

HealthEnum Enum with underlying type: string

const (
	HealthProtected HealthEnum = "PROTECTED"
	HealthWarning   HealthEnum = "WARNING"
	HealthAlert     HealthEnum = "ALERT"
)

Set of constants representing the allowable values for HealthEnum

func GetHealthEnumValues

func GetHealthEnumValues() []HealthEnum

GetHealthEnumValues Enumerates the set of values for HealthEnum

func GetMappingHealthEnum

func GetMappingHealthEnum(val string) (HealthEnum, bool)

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

type LifecycleStateEnum

type LifecycleStateEnum string

LifecycleStateEnum Enum with underlying type: string

const (
	LifecycleStateCreating LifecycleStateEnum = "CREATING"
	LifecycleStateUpdating LifecycleStateEnum = "UPDATING"
	LifecycleStateActive   LifecycleStateEnum = "ACTIVE"
	LifecycleStateDeleting LifecycleStateEnum = "DELETING"
	LifecycleStateDeleted  LifecycleStateEnum = "DELETED"
	LifecycleStateFailed   LifecycleStateEnum = "FAILED"
)

Set of constants representing the allowable values for LifecycleStateEnum

func GetLifecycleStateEnumValues

func GetLifecycleStateEnumValues() []LifecycleStateEnum

GetLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum

func GetMappingLifecycleStateEnum

func GetMappingLifecycleStateEnum(val string) (LifecycleStateEnum, bool)

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

type ListProtectedDatabasesLifecycleStateEnum

type ListProtectedDatabasesLifecycleStateEnum string

ListProtectedDatabasesLifecycleStateEnum Enum with underlying type: string

const (
	ListProtectedDatabasesLifecycleStateCreating ListProtectedDatabasesLifecycleStateEnum = "CREATING"
	ListProtectedDatabasesLifecycleStateUpdating ListProtectedDatabasesLifecycleStateEnum = "UPDATING"
	ListProtectedDatabasesLifecycleStateActive   ListProtectedDatabasesLifecycleStateEnum = "ACTIVE"
	ListProtectedDatabasesLifecycleStateDeleting ListProtectedDatabasesLifecycleStateEnum = "DELETING"
	ListProtectedDatabasesLifecycleStateDeleted  ListProtectedDatabasesLifecycleStateEnum = "DELETED"
	ListProtectedDatabasesLifecycleStateFailed   ListProtectedDatabasesLifecycleStateEnum = "FAILED"
)

Set of constants representing the allowable values for ListProtectedDatabasesLifecycleStateEnum

func GetListProtectedDatabasesLifecycleStateEnumValues

func GetListProtectedDatabasesLifecycleStateEnumValues() []ListProtectedDatabasesLifecycleStateEnum

GetListProtectedDatabasesLifecycleStateEnumValues Enumerates the set of values for ListProtectedDatabasesLifecycleStateEnum

func GetMappingListProtectedDatabasesLifecycleStateEnum

func GetMappingListProtectedDatabasesLifecycleStateEnum(val string) (ListProtectedDatabasesLifecycleStateEnum, bool)

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

type ListProtectedDatabasesRequest

type ListProtectedDatabasesRequest struct {

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

	// A filter to return only the resources that match the specified lifecycle state.
	LifecycleState ListProtectedDatabasesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

	// A filter to return only resources that match the entire 'displayname' given.
	DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

	// The protected database OCID.
	Id *string `mandatory:"false" contributesTo:"query" name:"id"`

	// The protection policy OCID.
	ProtectionPolicyId *string `mandatory:"false" contributesTo:"query" name:"protectionPolicyId"`

	// The recovery service subnet OCID.
	RecoveryServiceSubnetId *string `mandatory:"false" contributesTo:"query" name:"recoveryServiceSubnetId"`

	// The maximum number of items to return per page.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

	// The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order.
	// Allowed values are:
	//   - TIMECREATED
	//   - DISPLAYNAME
	SortBy ListProtectedDatabasesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

	// Unique identifier for the request.
	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
}

ListProtectedDatabasesRequest wrapper for the ListProtectedDatabases operation

See also

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

func (ListProtectedDatabasesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListProtectedDatabasesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListProtectedDatabasesRequest) RetryPolicy

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

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

func (ListProtectedDatabasesRequest) String

func (request ListProtectedDatabasesRequest) String() string

func (ListProtectedDatabasesRequest) ValidateEnumValue

func (request ListProtectedDatabasesRequest) 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 ListProtectedDatabasesResponse

type ListProtectedDatabasesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of ProtectedDatabaseCollection instances
	ProtectedDatabaseCollection `presentIn:"body"`

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

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListProtectedDatabasesResponse wrapper for the ListProtectedDatabases operation

func (ListProtectedDatabasesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListProtectedDatabasesResponse) String

func (response ListProtectedDatabasesResponse) String() string

type ListProtectedDatabasesSortByEnum

type ListProtectedDatabasesSortByEnum string

ListProtectedDatabasesSortByEnum Enum with underlying type: string

const (
	ListProtectedDatabasesSortByTimecreated ListProtectedDatabasesSortByEnum = "timeCreated"
	ListProtectedDatabasesSortByDisplayname ListProtectedDatabasesSortByEnum = "displayName"
)

Set of constants representing the allowable values for ListProtectedDatabasesSortByEnum

func GetListProtectedDatabasesSortByEnumValues

func GetListProtectedDatabasesSortByEnumValues() []ListProtectedDatabasesSortByEnum

GetListProtectedDatabasesSortByEnumValues Enumerates the set of values for ListProtectedDatabasesSortByEnum

func GetMappingListProtectedDatabasesSortByEnum

func GetMappingListProtectedDatabasesSortByEnum(val string) (ListProtectedDatabasesSortByEnum, bool)

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

type ListProtectedDatabasesSortOrderEnum

type ListProtectedDatabasesSortOrderEnum string

ListProtectedDatabasesSortOrderEnum Enum with underlying type: string

const (
	ListProtectedDatabasesSortOrderAsc  ListProtectedDatabasesSortOrderEnum = "ASC"
	ListProtectedDatabasesSortOrderDesc ListProtectedDatabasesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListProtectedDatabasesSortOrderEnum

func GetListProtectedDatabasesSortOrderEnumValues

func GetListProtectedDatabasesSortOrderEnumValues() []ListProtectedDatabasesSortOrderEnum

GetListProtectedDatabasesSortOrderEnumValues Enumerates the set of values for ListProtectedDatabasesSortOrderEnum

func GetMappingListProtectedDatabasesSortOrderEnum

func GetMappingListProtectedDatabasesSortOrderEnum(val string) (ListProtectedDatabasesSortOrderEnum, bool)

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

type ListProtectionPoliciesLifecycleStateEnum

type ListProtectionPoliciesLifecycleStateEnum string

ListProtectionPoliciesLifecycleStateEnum Enum with underlying type: string

const (
	ListProtectionPoliciesLifecycleStateCreating ListProtectionPoliciesLifecycleStateEnum = "CREATING"
	ListProtectionPoliciesLifecycleStateUpdating ListProtectionPoliciesLifecycleStateEnum = "UPDATING"
	ListProtectionPoliciesLifecycleStateActive   ListProtectionPoliciesLifecycleStateEnum = "ACTIVE"
	ListProtectionPoliciesLifecycleStateDeleting ListProtectionPoliciesLifecycleStateEnum = "DELETING"
	ListProtectionPoliciesLifecycleStateDeleted  ListProtectionPoliciesLifecycleStateEnum = "DELETED"
	ListProtectionPoliciesLifecycleStateFailed   ListProtectionPoliciesLifecycleStateEnum = "FAILED"
)

Set of constants representing the allowable values for ListProtectionPoliciesLifecycleStateEnum

func GetListProtectionPoliciesLifecycleStateEnumValues

func GetListProtectionPoliciesLifecycleStateEnumValues() []ListProtectionPoliciesLifecycleStateEnum

GetListProtectionPoliciesLifecycleStateEnumValues Enumerates the set of values for ListProtectionPoliciesLifecycleStateEnum

func GetMappingListProtectionPoliciesLifecycleStateEnum

func GetMappingListProtectionPoliciesLifecycleStateEnum(val string) (ListProtectionPoliciesLifecycleStateEnum, bool)

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

type ListProtectionPoliciesOwnerEnum

type ListProtectionPoliciesOwnerEnum string

ListProtectionPoliciesOwnerEnum Enum with underlying type: string

const (
	ListProtectionPoliciesOwnerOracle   ListProtectionPoliciesOwnerEnum = "oracle"
	ListProtectionPoliciesOwnerCustomer ListProtectionPoliciesOwnerEnum = "customer"
)

Set of constants representing the allowable values for ListProtectionPoliciesOwnerEnum

func GetListProtectionPoliciesOwnerEnumValues

func GetListProtectionPoliciesOwnerEnumValues() []ListProtectionPoliciesOwnerEnum

GetListProtectionPoliciesOwnerEnumValues Enumerates the set of values for ListProtectionPoliciesOwnerEnum

func GetMappingListProtectionPoliciesOwnerEnum

func GetMappingListProtectionPoliciesOwnerEnum(val string) (ListProtectionPoliciesOwnerEnum, bool)

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

type ListProtectionPoliciesRequest

type ListProtectionPoliciesRequest struct {

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

	// A filter to return only resources their lifecycleState matches the given lifecycleState.
	LifecycleState ListProtectionPoliciesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

	// A filter to return only resources that match the entire 'displayname' given.
	DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

	// The protection policy OCID.
	ProtectionPolicyId *string `mandatory:"false" contributesTo:"query" name:"protectionPolicyId"`

	// A filter to return only the policies that match the owner as 'Customer' or 'Oracle'.
	Owner ListProtectionPoliciesOwnerEnum `mandatory:"false" contributesTo:"query" name:"owner" omitEmpty:"true"`

	// The maximum number of items to return. Specify a value greater than 4.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

	// The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order.
	// Allowed values are:
	//   - TIMECREATED
	//   - DISPLAYNAME
	SortBy ListProtectionPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

	// Unique identifier for the request.
	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
}

ListProtectionPoliciesRequest wrapper for the ListProtectionPolicies operation

See also

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

func (ListProtectionPoliciesRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListProtectionPoliciesRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListProtectionPoliciesRequest) RetryPolicy

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

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

func (ListProtectionPoliciesRequest) String

func (request ListProtectionPoliciesRequest) String() string

func (ListProtectionPoliciesRequest) ValidateEnumValue

func (request ListProtectionPoliciesRequest) 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 ListProtectionPoliciesResponse

type ListProtectionPoliciesResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of ProtectionPolicyCollection instances
	ProtectionPolicyCollection `presentIn:"body"`

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

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListProtectionPoliciesResponse wrapper for the ListProtectionPolicies operation

func (ListProtectionPoliciesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListProtectionPoliciesResponse) String

func (response ListProtectionPoliciesResponse) String() string

type ListProtectionPoliciesSortByEnum

type ListProtectionPoliciesSortByEnum string

ListProtectionPoliciesSortByEnum Enum with underlying type: string

const (
	ListProtectionPoliciesSortByTimecreated ListProtectionPoliciesSortByEnum = "timeCreated"
	ListProtectionPoliciesSortByDisplayname ListProtectionPoliciesSortByEnum = "displayName"
)

Set of constants representing the allowable values for ListProtectionPoliciesSortByEnum

func GetListProtectionPoliciesSortByEnumValues

func GetListProtectionPoliciesSortByEnumValues() []ListProtectionPoliciesSortByEnum

GetListProtectionPoliciesSortByEnumValues Enumerates the set of values for ListProtectionPoliciesSortByEnum

func GetMappingListProtectionPoliciesSortByEnum

func GetMappingListProtectionPoliciesSortByEnum(val string) (ListProtectionPoliciesSortByEnum, bool)

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

type ListProtectionPoliciesSortOrderEnum

type ListProtectionPoliciesSortOrderEnum string

ListProtectionPoliciesSortOrderEnum Enum with underlying type: string

const (
	ListProtectionPoliciesSortOrderAsc  ListProtectionPoliciesSortOrderEnum = "ASC"
	ListProtectionPoliciesSortOrderDesc ListProtectionPoliciesSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListProtectionPoliciesSortOrderEnum

func GetListProtectionPoliciesSortOrderEnumValues

func GetListProtectionPoliciesSortOrderEnumValues() []ListProtectionPoliciesSortOrderEnum

GetListProtectionPoliciesSortOrderEnumValues Enumerates the set of values for ListProtectionPoliciesSortOrderEnum

func GetMappingListProtectionPoliciesSortOrderEnum

func GetMappingListProtectionPoliciesSortOrderEnum(val string) (ListProtectionPoliciesSortOrderEnum, bool)

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

type ListRecoveryServiceSubnetsLifecycleStateEnum

type ListRecoveryServiceSubnetsLifecycleStateEnum string

ListRecoveryServiceSubnetsLifecycleStateEnum Enum with underlying type: string

const (
	ListRecoveryServiceSubnetsLifecycleStateCreating ListRecoveryServiceSubnetsLifecycleStateEnum = "CREATING"
	ListRecoveryServiceSubnetsLifecycleStateUpdating ListRecoveryServiceSubnetsLifecycleStateEnum = "UPDATING"
	ListRecoveryServiceSubnetsLifecycleStateActive   ListRecoveryServiceSubnetsLifecycleStateEnum = "ACTIVE"
	ListRecoveryServiceSubnetsLifecycleStateDeleting ListRecoveryServiceSubnetsLifecycleStateEnum = "DELETING"
	ListRecoveryServiceSubnetsLifecycleStateDeleted  ListRecoveryServiceSubnetsLifecycleStateEnum = "DELETED"
	ListRecoveryServiceSubnetsLifecycleStateFailed   ListRecoveryServiceSubnetsLifecycleStateEnum = "FAILED"
)

Set of constants representing the allowable values for ListRecoveryServiceSubnetsLifecycleStateEnum

func GetListRecoveryServiceSubnetsLifecycleStateEnumValues

func GetListRecoveryServiceSubnetsLifecycleStateEnumValues() []ListRecoveryServiceSubnetsLifecycleStateEnum

GetListRecoveryServiceSubnetsLifecycleStateEnumValues Enumerates the set of values for ListRecoveryServiceSubnetsLifecycleStateEnum

func GetMappingListRecoveryServiceSubnetsLifecycleStateEnum

func GetMappingListRecoveryServiceSubnetsLifecycleStateEnum(val string) (ListRecoveryServiceSubnetsLifecycleStateEnum, bool)

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

type ListRecoveryServiceSubnetsRequest

type ListRecoveryServiceSubnetsRequest struct {

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

	// A filter to return only the resources that match the specified lifecycle state.
	// Allowed values are:
	//   - CREATING
	//   - UPDATING
	//   - ACTIVE
	//   - DELETING
	//   - DELETED
	//   - FAILED
	LifecycleState ListRecoveryServiceSubnetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

	// A filter to return only resources that match the entire 'displayname' given.
	DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`

	// The recovery service subnet OCID.
	Id *string `mandatory:"false" contributesTo:"query" name:"id"`

	// The OCID of the virtual cloud network (VCN) associated with the recovery service subnet.
	VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"`

	// The maximum number of items to return per page.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

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

	// The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order.
	// Allowed values are:
	//   - TIMECREATED
	//   - DISPLAYNAME
	SortBy ListRecoveryServiceSubnetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

	// Unique identifier for the request.
	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
}

ListRecoveryServiceSubnetsRequest wrapper for the ListRecoveryServiceSubnets operation

See also

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

func (ListRecoveryServiceSubnetsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListRecoveryServiceSubnetsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListRecoveryServiceSubnetsRequest) RetryPolicy

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

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

func (ListRecoveryServiceSubnetsRequest) String

func (request ListRecoveryServiceSubnetsRequest) String() string

func (ListRecoveryServiceSubnetsRequest) ValidateEnumValue

func (request ListRecoveryServiceSubnetsRequest) 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 ListRecoveryServiceSubnetsResponse

type ListRecoveryServiceSubnetsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of RecoveryServiceSubnetCollection instances
	RecoveryServiceSubnetCollection `presentIn:"body"`

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

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListRecoveryServiceSubnetsResponse wrapper for the ListRecoveryServiceSubnets operation

func (ListRecoveryServiceSubnetsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListRecoveryServiceSubnetsResponse) String

func (response ListRecoveryServiceSubnetsResponse) String() string

type ListRecoveryServiceSubnetsSortByEnum

type ListRecoveryServiceSubnetsSortByEnum string

ListRecoveryServiceSubnetsSortByEnum Enum with underlying type: string

const (
	ListRecoveryServiceSubnetsSortByTimecreated ListRecoveryServiceSubnetsSortByEnum = "timeCreated"
	ListRecoveryServiceSubnetsSortByDisplayname ListRecoveryServiceSubnetsSortByEnum = "displayName"
)

Set of constants representing the allowable values for ListRecoveryServiceSubnetsSortByEnum

func GetListRecoveryServiceSubnetsSortByEnumValues

func GetListRecoveryServiceSubnetsSortByEnumValues() []ListRecoveryServiceSubnetsSortByEnum

GetListRecoveryServiceSubnetsSortByEnumValues Enumerates the set of values for ListRecoveryServiceSubnetsSortByEnum

func GetMappingListRecoveryServiceSubnetsSortByEnum

func GetMappingListRecoveryServiceSubnetsSortByEnum(val string) (ListRecoveryServiceSubnetsSortByEnum, bool)

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

type ListRecoveryServiceSubnetsSortOrderEnum

type ListRecoveryServiceSubnetsSortOrderEnum string

ListRecoveryServiceSubnetsSortOrderEnum Enum with underlying type: string

const (
	ListRecoveryServiceSubnetsSortOrderAsc  ListRecoveryServiceSubnetsSortOrderEnum = "ASC"
	ListRecoveryServiceSubnetsSortOrderDesc ListRecoveryServiceSubnetsSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListRecoveryServiceSubnetsSortOrderEnum

func GetListRecoveryServiceSubnetsSortOrderEnumValues

func GetListRecoveryServiceSubnetsSortOrderEnumValues() []ListRecoveryServiceSubnetsSortOrderEnum

GetListRecoveryServiceSubnetsSortOrderEnumValues Enumerates the set of values for ListRecoveryServiceSubnetsSortOrderEnum

func GetMappingListRecoveryServiceSubnetsSortOrderEnum

func GetMappingListRecoveryServiceSubnetsSortOrderEnum(val string) (ListRecoveryServiceSubnetsSortOrderEnum, bool)

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

type ListWorkRequestErrorsRequest

type ListWorkRequestErrorsRequest struct {

	// The OCID of the work request.
	WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`

	// Unique identifier for the request.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The maximum number of items to return per page.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
	SortBy ListWorkRequestErrorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

	// The sort order to use, either ascending (ASC) or descending (DESC).
	// Allowed values are:
	//   - ASC
	//   - DESC
	SortOrder ListWorkRequestErrorsSortOrderEnum `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
}

ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation

See also

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

func (ListWorkRequestErrorsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestErrorsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestErrorsRequest) RetryPolicy

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

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

func (ListWorkRequestErrorsRequest) String

func (request ListWorkRequestErrorsRequest) String() string

func (ListWorkRequestErrorsRequest) ValidateEnumValue

func (request ListWorkRequestErrorsRequest) 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 ListWorkRequestErrorsResponse

type ListWorkRequestErrorsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of WorkRequestErrorCollection instances
	WorkRequestErrorCollection `presentIn:"body"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	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"`
}

ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation

func (ListWorkRequestErrorsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestErrorsResponse) String

func (response ListWorkRequestErrorsResponse) String() string

type ListWorkRequestErrorsSortByEnum

type ListWorkRequestErrorsSortByEnum string

ListWorkRequestErrorsSortByEnum Enum with underlying type: string

const (
	ListWorkRequestErrorsSortByTimecreated ListWorkRequestErrorsSortByEnum = "timeCreated"
)

Set of constants representing the allowable values for ListWorkRequestErrorsSortByEnum

func GetListWorkRequestErrorsSortByEnumValues

func GetListWorkRequestErrorsSortByEnumValues() []ListWorkRequestErrorsSortByEnum

GetListWorkRequestErrorsSortByEnumValues Enumerates the set of values for ListWorkRequestErrorsSortByEnum

func GetMappingListWorkRequestErrorsSortByEnum

func GetMappingListWorkRequestErrorsSortByEnum(val string) (ListWorkRequestErrorsSortByEnum, bool)

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

type ListWorkRequestErrorsSortOrderEnum

type ListWorkRequestErrorsSortOrderEnum string

ListWorkRequestErrorsSortOrderEnum Enum with underlying type: string

const (
	ListWorkRequestErrorsSortOrderAsc  ListWorkRequestErrorsSortOrderEnum = "ASC"
	ListWorkRequestErrorsSortOrderDesc ListWorkRequestErrorsSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListWorkRequestErrorsSortOrderEnum

func GetListWorkRequestErrorsSortOrderEnumValues

func GetListWorkRequestErrorsSortOrderEnumValues() []ListWorkRequestErrorsSortOrderEnum

GetListWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListWorkRequestErrorsSortOrderEnum

func GetMappingListWorkRequestErrorsSortOrderEnum

func GetMappingListWorkRequestErrorsSortOrderEnum(val string) (ListWorkRequestErrorsSortOrderEnum, bool)

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

type ListWorkRequestLogsRequest

type ListWorkRequestLogsRequest struct {

	// The OCID of the work request.
	WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`

	// Unique identifier for the request.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The maximum number of items to return per page.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

	// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
	SortBy ListWorkRequestLogsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

	// The sort order to use, either ascending (ASC) or descending (DESC).
	// Allowed values are:
	//   - ASC
	//   - DESC
	SortOrder ListWorkRequestLogsSortOrderEnum `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
}

ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation

See also

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

func (ListWorkRequestLogsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestLogsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestLogsRequest) RetryPolicy

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

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

func (ListWorkRequestLogsRequest) String

func (request ListWorkRequestLogsRequest) String() string

func (ListWorkRequestLogsRequest) ValidateEnumValue

func (request ListWorkRequestLogsRequest) 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 ListWorkRequestLogsResponse

type ListWorkRequestLogsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of WorkRequestLogEntryCollection instances
	WorkRequestLogEntryCollection `presentIn:"body"`

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	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"`
}

ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation

func (ListWorkRequestLogsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestLogsResponse) String

func (response ListWorkRequestLogsResponse) String() string

type ListWorkRequestLogsSortByEnum

type ListWorkRequestLogsSortByEnum string

ListWorkRequestLogsSortByEnum Enum with underlying type: string

const (
	ListWorkRequestLogsSortByTimecreated ListWorkRequestLogsSortByEnum = "timeCreated"
)

Set of constants representing the allowable values for ListWorkRequestLogsSortByEnum

func GetListWorkRequestLogsSortByEnumValues

func GetListWorkRequestLogsSortByEnumValues() []ListWorkRequestLogsSortByEnum

GetListWorkRequestLogsSortByEnumValues Enumerates the set of values for ListWorkRequestLogsSortByEnum

func GetMappingListWorkRequestLogsSortByEnum

func GetMappingListWorkRequestLogsSortByEnum(val string) (ListWorkRequestLogsSortByEnum, bool)

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

type ListWorkRequestLogsSortOrderEnum

type ListWorkRequestLogsSortOrderEnum string

ListWorkRequestLogsSortOrderEnum Enum with underlying type: string

const (
	ListWorkRequestLogsSortOrderAsc  ListWorkRequestLogsSortOrderEnum = "ASC"
	ListWorkRequestLogsSortOrderDesc ListWorkRequestLogsSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListWorkRequestLogsSortOrderEnum

func GetListWorkRequestLogsSortOrderEnumValues

func GetListWorkRequestLogsSortOrderEnumValues() []ListWorkRequestLogsSortOrderEnum

GetListWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListWorkRequestLogsSortOrderEnum

func GetMappingListWorkRequestLogsSortOrderEnum

func GetMappingListWorkRequestLogsSortOrderEnum(val string) (ListWorkRequestLogsSortOrderEnum, bool)

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

type ListWorkRequestsRequest

type ListWorkRequestsRequest struct {

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

	// Unique Oracle-assigned identifier of the work request.
	WorkRequestId *string `mandatory:"false" contributesTo:"query" name:"workRequestId"`

	// A filter to return only resources their lifecycleState matches the given OperationStatus.
	Status ListWorkRequestsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`

	// The ID of the resource affected by the work request.
	ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"`

	// Unique identifier for the request.
	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

	// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
	Page *string `mandatory:"false" contributesTo:"query" name:"page"`

	// The maximum number of items to return per page.
	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

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

	// The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
	SortBy ListWorkRequestsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" 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
}

ListWorkRequestsRequest wrapper for the ListWorkRequests operation

See also

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

func (ListWorkRequestsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestsRequest) RetryPolicy

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

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

func (ListWorkRequestsRequest) String

func (request ListWorkRequestsRequest) String() string

func (ListWorkRequestsRequest) ValidateEnumValue

func (request ListWorkRequestsRequest) 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 ListWorkRequestsResponse

type ListWorkRequestsResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// A list of WorkRequestSummaryCollection instances
	WorkRequestSummaryCollection `presentIn:"body"`

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

	// For pagination of a list of items. When paging through a list, if this header appears in the response,
	// then a partial list might have been returned. Include this value as the `page` parameter for the
	// subsequent GET request to get the next batch of items.
	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

ListWorkRequestsResponse wrapper for the ListWorkRequests operation

func (ListWorkRequestsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestsResponse) String

func (response ListWorkRequestsResponse) String() string

type ListWorkRequestsSortByEnum

type ListWorkRequestsSortByEnum string

ListWorkRequestsSortByEnum Enum with underlying type: string

const (
	ListWorkRequestsSortByTimeaccepted ListWorkRequestsSortByEnum = "timeAccepted"
)

Set of constants representing the allowable values for ListWorkRequestsSortByEnum

func GetListWorkRequestsSortByEnumValues

func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum

GetListWorkRequestsSortByEnumValues Enumerates the set of values for ListWorkRequestsSortByEnum

func GetMappingListWorkRequestsSortByEnum

func GetMappingListWorkRequestsSortByEnum(val string) (ListWorkRequestsSortByEnum, bool)

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

type ListWorkRequestsSortOrderEnum

type ListWorkRequestsSortOrderEnum string

ListWorkRequestsSortOrderEnum Enum with underlying type: string

const (
	ListWorkRequestsSortOrderAsc  ListWorkRequestsSortOrderEnum = "ASC"
	ListWorkRequestsSortOrderDesc ListWorkRequestsSortOrderEnum = "DESC"
)

Set of constants representing the allowable values for ListWorkRequestsSortOrderEnum

func GetListWorkRequestsSortOrderEnumValues

func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum

GetListWorkRequestsSortOrderEnumValues Enumerates the set of values for ListWorkRequestsSortOrderEnum

func GetMappingListWorkRequestsSortOrderEnum

func GetMappingListWorkRequestsSortOrderEnum(val string) (ListWorkRequestsSortOrderEnum, bool)

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

type ListWorkRequestsStatusEnum

type ListWorkRequestsStatusEnum string

ListWorkRequestsStatusEnum Enum with underlying type: string

const (
	ListWorkRequestsStatusAccepted   ListWorkRequestsStatusEnum = "ACCEPTED"
	ListWorkRequestsStatusInProgress ListWorkRequestsStatusEnum = "IN_PROGRESS"
	ListWorkRequestsStatusFailed     ListWorkRequestsStatusEnum = "FAILED"
	ListWorkRequestsStatusSucceeded  ListWorkRequestsStatusEnum = "SUCCEEDED"
	ListWorkRequestsStatusCanceling  ListWorkRequestsStatusEnum = "CANCELING"
	ListWorkRequestsStatusCanceled   ListWorkRequestsStatusEnum = "CANCELED"
)

Set of constants representing the allowable values for ListWorkRequestsStatusEnum

func GetListWorkRequestsStatusEnumValues

func GetListWorkRequestsStatusEnumValues() []ListWorkRequestsStatusEnum

GetListWorkRequestsStatusEnumValues Enumerates the set of values for ListWorkRequestsStatusEnum

func GetMappingListWorkRequestsStatusEnum

func GetMappingListWorkRequestsStatusEnum(val string) (ListWorkRequestsStatusEnum, bool)

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

type Metrics

type Metrics struct {

	// Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
	BackupSpaceUsedInGBs *float32 `mandatory:"false" json:"backupSpaceUsedInGBs"`

	// The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
	BackupSpaceEstimateInGBs *float32 `mandatory:"false" json:"backupSpaceEstimateInGBs"`

	// This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available.
	// This is the time we received the last backup or last redo-log shipped.
	UnprotectedWindowInSeconds *float32 `mandatory:"false" json:"unprotectedWindowInSeconds"`

	// The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
	DbSizeInGBs *float32 `mandatory:"false" json:"dbSizeInGBs"`

	// The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.
	// Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
	IsRedoLogsEnabled *bool `mandatory:"false" json:"isRedoLogsEnabled"`

	// The maximum number of days to retain backups for a protected database.
	RetentionPeriodInDays *float32 `mandatory:"false" json:"retentionPeriodInDays"`

	// Number of seconds backups are currently retained for this database.
	CurrentRetentionPeriodInSeconds *float32 `mandatory:"false" json:"currentRetentionPeriodInSeconds"`
}

Metrics Backup performance and storage utilization metrics for the protected database.

func (Metrics) String

func (m Metrics) String() string

func (Metrics) ValidateEnumValue

func (m Metrics) 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 MetricsSummary

type MetricsSummary struct {

	// Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
	BackupSpaceUsedInGBs *float32 `mandatory:"false" json:"backupSpaceUsedInGBs"`

	// The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
	BackupSpaceEstimateInGBs *float32 `mandatory:"false" json:"backupSpaceEstimateInGBs"`

	// This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available.
	// This is the time we received the last backup or last redo-log shipped.
	UnprotectedWindowInSeconds *float32 `mandatory:"false" json:"unprotectedWindowInSeconds"`

	// The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
	DbSizeInGBs *float32 `mandatory:"false" json:"dbSizeInGBs"`

	// The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.
	// Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
	IsRedoLogsEnabled *bool `mandatory:"false" json:"isRedoLogsEnabled"`

	// The maximum number of days to retain backups for a protected database.
	RetentionPeriodInDays *float32 `mandatory:"false" json:"retentionPeriodInDays"`

	// Number of seconds backups are currently retained for this database.
	CurrentRetentionPeriodInSeconds *float32 `mandatory:"false" json:"currentRetentionPeriodInSeconds"`
}

MetricsSummary Backup performance and storage utilization metrics for the Protected Database.

func (MetricsSummary) String

func (m MetricsSummary) String() string

func (MetricsSummary) ValidateEnumValue

func (m MetricsSummary) 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 OperationStatusEnum

type OperationStatusEnum string

OperationStatusEnum Enum with underlying type: string

const (
	OperationStatusAccepted   OperationStatusEnum = "ACCEPTED"
	OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS"
	OperationStatusFailed     OperationStatusEnum = "FAILED"
	OperationStatusSucceeded  OperationStatusEnum = "SUCCEEDED"
	OperationStatusCanceling  OperationStatusEnum = "CANCELING"
	OperationStatusCanceled   OperationStatusEnum = "CANCELED"
)

Set of constants representing the allowable values for OperationStatusEnum

func GetMappingOperationStatusEnum

func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)

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

func GetOperationStatusEnumValues

func GetOperationStatusEnumValues() []OperationStatusEnum

GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum

type OperationTypeEnum

type OperationTypeEnum string

OperationTypeEnum Enum with underlying type: string

const (
	OperationTypeCreateProtectedDatabase     OperationTypeEnum = "CREATE_PROTECTED_DATABASE"
	OperationTypeUpdateProtectedDatabase     OperationTypeEnum = "UPDATE_PROTECTED_DATABASE"
	OperationTypeDeleteProtectedDatabase     OperationTypeEnum = "DELETE_PROTECTED_DATABASE"
	OperationTypeMoveProtectedDatabase       OperationTypeEnum = "MOVE_PROTECTED_DATABASE"
	OperationTypeCreateProtectionPolicy      OperationTypeEnum = "CREATE_PROTECTION_POLICY"
	OperationTypeUpdateProtectionPolicy      OperationTypeEnum = "UPDATE_PROTECTION_POLICY"
	OperationTypeDeleteProtectionPolicy      OperationTypeEnum = "DELETE_PROTECTION_POLICY"
	OperationTypeMoveProtectionPolicy        OperationTypeEnum = "MOVE_PROTECTION_POLICY"
	OperationTypeCreateRecoveryServiceSubnet OperationTypeEnum = "CREATE_RECOVERY_SERVICE_SUBNET"
	OperationTypeUpdateRecoveryServiceSubnet OperationTypeEnum = "UPDATE_RECOVERY_SERVICE_SUBNET"
	OperationTypeDeleteRecoveryServiceSubnet OperationTypeEnum = "DELETE_RECOVERY_SERVICE_SUBNET"
	OperationTypeMoveRecoveryServiceSubnet   OperationTypeEnum = "MOVE_RECOVERY_SERVICE_SUBNET"
)

Set of constants representing the allowable values for OperationTypeEnum

func GetMappingOperationTypeEnum

func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)

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

func GetOperationTypeEnumValues

func GetOperationTypeEnumValues() []OperationTypeEnum

GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum

type ProtectedDatabase

type ProtectedDatabase struct {

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

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

	// The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
	DbUniqueName *string `mandatory:"true" json:"dbUniqueName"`

	// The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
	VpcUserName *string `mandatory:"true" json:"vpcUserName"`

	// The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
	DatabaseSize DatabaseSizesEnum `mandatory:"true" json:"databaseSize"`

	// The OCID of the protection policy associated with the protected database.
	ProtectionPolicyId *string `mandatory:"true" json:"protectionPolicyId"`

	// List of recovery service subnet resources associated with the protected database.
	RecoveryServiceSubnets []RecoveryServiceSubnetDetails `mandatory:"true" json:"recoveryServiceSubnets"`

	// The protected database name. You can change the displayName. Avoid entering confidential information.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// The OCID of the protected database.
	DatabaseId *string `mandatory:"false" json:"databaseId"`

	// The size of the database in GBs, in gigabytes.
	DatabaseSizeInGBs *int `mandatory:"false" json:"databaseSizeInGBs"`

	// The percentage of data changes that exist in the database between successive incremental backups.
	ChangeRate *float64 `mandatory:"false" json:"changeRate"`

	// The compression ratio of the protected database. The compression ratio represents the ratio of compressed block size to expanded block size.
	CompressionRatio *float64 `mandatory:"false" json:"compressionRatio"`

	// The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.
	// Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional
	// configuration is needed on client side.
	IsRedoLogsShipped *bool `mandatory:"false" json:"isRedoLogsShipped"`

	// An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The current state of the Protected Database.
	LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// Indicates the protection status of the database. Allowed values are:
	//  - HEALTHY
	//  - WARNING
	//  - ALERT
	// A 'HEALTHY' status indicates that Recovery Service can ensure database recovery to any point in time within the entire recovery window. The potential data loss exposure since the last backup is:
	//  - Less than 10 seconds, if Real-time data protection is enabled
	//  - Less than 70 minutes if Real-time data protection is disabled
	// A 'WARNING' status indicates that Recovery Service can ensure database recovery within the current recovery window - 1 day. The potential data loss exposure since the last backup is:
	//  - Greater than 10 seconds, if Real-time data protection is enabled
	//  - Greater than 60 minutes, if if Real-time data protection is disabled
	// An 'ALERT' status indicates that Recovery Service cannot recover the database within the current recovery window.
	Health HealthEnum `mandatory:"false" json:"health,omitempty"`

	// Indicates whether the protected database is created by Recovery Service or created manually.
	// Set to <b>TRUE</b> for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource.
	// Set to <b>FALSE</b> for a user-defined protected database.
	IsReadOnlyResource *bool `mandatory:"false" json:"isReadOnlyResource"`

	// Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
	LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

	// A message describing the current health of the protected database.
	HealthDetails *string `mandatory:"false" json:"healthDetails"`

	Metrics *Metrics `mandatory:"false" json:"metrics"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. For more information, see Resource Tags (https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

ProtectedDatabase A protected database is an Oracle Cloud Database whose backups are managed by Oracle Database Autonomous Recovery Service. Each protected database requires a recovery service subnet and a protection policy to use Recovery Service as the backup destination for centralized backup and recovery

func (ProtectedDatabase) String

func (m ProtectedDatabase) String() string

func (ProtectedDatabase) ValidateEnumValue

func (m ProtectedDatabase) 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 ProtectedDatabaseCollection

type ProtectedDatabaseCollection struct {

	// List of protected databases.
	Items []ProtectedDatabaseSummary `mandatory:"true" json:"items"`
}

ProtectedDatabaseCollection Results of a protected database search operation. The results contain protected database summary and metadata information.

func (ProtectedDatabaseCollection) String

func (ProtectedDatabaseCollection) ValidateEnumValue

func (m ProtectedDatabaseCollection) 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 ProtectedDatabaseSummary

type ProtectedDatabaseSummary struct {

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

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

	// The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
	DbUniqueName *string `mandatory:"true" json:"dbUniqueName"`

	// The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
	VpcUserName *string `mandatory:"true" json:"vpcUserName"`

	// The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
	DatabaseSize DatabaseSizesEnum `mandatory:"true" json:"databaseSize"`

	// The OCID of the protection policy associated with the protected database.
	ProtectionPolicyId *string `mandatory:"true" json:"protectionPolicyId"`

	// The protected database name. You can change the displayName. Avoid entering confidential information.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// List of recovery service subnet resources associated with the protected database.
	RecoveryServiceSubnets []RecoveryServiceSubnetDetails `mandatory:"false" json:"recoveryServiceSubnets"`

	// The OCID of the protected database.
	DatabaseId *string `mandatory:"false" json:"databaseId"`

	// An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The current state of the Protected Database.
	LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// The health of the Protected Database.
	Health HealthEnum `mandatory:"false" json:"health,omitempty"`

	// Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
	LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

	// A message describing the current health of the protected database.
	HealthDetails *string `mandatory:"false" json:"healthDetails"`

	// Indicates whether the protected database is created by Recovery Service or created manually.
	// Set to <b>TRUE</b> for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource.
	// Set to <b>FALSE</b> for a user-defined protected database.
	IsReadOnlyResource *bool `mandatory:"false" json:"isReadOnlyResource"`

	Metrics *MetricsSummary `mandatory:"false" json:"metrics"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. For more information, see Resource Tags (https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

ProtectedDatabaseSummary A protected database is an Oracle Cloud Database whose backups are managed by Oracle Database Autonomous Recovery Service. Each protected database requires a recovery service subnet and a protection policy to use Recovery Service as the backup destination for centralized backup and recovery. To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). For information about access control and compartments, see Overview of the Identity Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm).

func (ProtectedDatabaseSummary) String

func (m ProtectedDatabaseSummary) String() string

func (ProtectedDatabaseSummary) ValidateEnumValue

func (m ProtectedDatabaseSummary) 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 ProtectionPolicy

type ProtectionPolicy struct {

	// The protection policy OCID.
	Id *string `mandatory:"true" json:"id"`

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

	// The maximum number of days to retain backups for a protected database. Specify a period ranging from a minimum 14 days to a maximum 95 days. For example, specify the value 55 if you want to retain backups for 55 days.
	BackupRetentionPeriodInDays *int `mandatory:"true" json:"backupRetentionPeriodInDays"`

	// Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
	IsPredefinedPolicy *bool `mandatory:"true" json:"isPredefinedPolicy"`

	// A user provided name for the protection policy.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// An RFC3339 formatted datetime string that indicates the created time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// An RFC3339 formatted datetime string that indicates the updated time for the protection policy. For example: '2020-05-22T21:10:29.600Z'.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The current state of the protection policy. Allowed values are:
	//   - CREATING
	//   - UPDATING
	//   - ACTIVE
	//   - DELETING
	//   - DELETED
	//   - FAILED
	LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
	LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. For more information, see Resource Tags (https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

ProtectionPolicy The details of a protection policy.A policy defines the exact number of days to retain protected database backups created by Recovery Service. Each protected database must be associated with one protection policy. You can use Oracle-defined protection policies or create custom policies to suit your internal backup storage regulation demands.

func (ProtectionPolicy) String

func (m ProtectionPolicy) String() string

func (ProtectionPolicy) ValidateEnumValue

func (m ProtectionPolicy) 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 ProtectionPolicyCollection

type ProtectionPolicyCollection struct {

	// List of ProtectionPolicies.
	Items []ProtectionPolicySummary `mandatory:"true" json:"items"`
}

ProtectionPolicyCollection Results of a Protection Policy search. Contains both Protection Policy Summary items and other information, such as metadata.

func (ProtectionPolicyCollection) String

func (ProtectionPolicyCollection) ValidateEnumValue

func (m ProtectionPolicyCollection) 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 ProtectionPolicySummary

type ProtectionPolicySummary struct {

	// The protection policy OCID.
	Id *string `mandatory:"true" json:"id"`

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

	// The maximum number of days to retain backups for a protected database.
	BackupRetentionPeriodInDays *int `mandatory:"true" json:"backupRetentionPeriodInDays"`

	// Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
	IsPredefinedPolicy *bool `mandatory:"true" json:"isPredefinedPolicy"`

	// A user provided name for the protection policy.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// The time the Protection Policy was created. An RFC3339 formatted datetime string
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// The time the Protection Policy was updated. An RFC3339 formatted datetime string
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The current state of the Protection Policy.
	LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
	LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. For more information, see Resource Tags (https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

ProtectionPolicySummary Recovery Service enables policy driven backup storage management. To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). For information about access control and compartments, see Overview of the Identity Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm).

func (ProtectionPolicySummary) String

func (m ProtectionPolicySummary) String() string

func (ProtectionPolicySummary) ValidateEnumValue

func (m ProtectionPolicySummary) 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 RecoveryServiceSubnet

type RecoveryServiceSubnet struct {

	// The recovery service subnet OCID.
	Id *string `mandatory:"true" json:"id"`

	// The compartment OCID.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// VCN Identifier.
	VcnId *string `mandatory:"true" json:"vcnId"`

	// The OCID of the subnet used as the recovery service subnet.
	SubnetId *string `mandatory:"true" json:"subnetId"`

	// A user-provided name for the recovery service subnet.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The current state of the recovery service subnet.
	// Allowed values are:
	//   - CREATING
	//   - UPDATING
	//   - ACTIVE
	//   - DELETING
	//   - DELETED
	//   - FAILED
	LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
	LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. For more information, see Resource Tags (https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

RecoveryServiceSubnet The details of a recovery service subnet. Recovery service subnets allows Recovery Service to access protected databases in each VCN. Each recovery service subnet uses a single private endpoint on a subnet of your choice within a VCN. The private endpoint need not be on the same subnet as the Oracle Cloud Database, although, it must be on a subnet that can communicate with the Oracle Cloud Database.

func (RecoveryServiceSubnet) String

func (m RecoveryServiceSubnet) String() string

func (RecoveryServiceSubnet) ValidateEnumValue

func (m RecoveryServiceSubnet) 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 RecoveryServiceSubnetCollection

type RecoveryServiceSubnetCollection struct {

	// List of recovery service subnet resources.
	Items []RecoveryServiceSubnetSummary `mandatory:"true" json:"items"`
}

RecoveryServiceSubnetCollection Results of a recovery service subnet search operation. The results contain recovery service subnet summary and metadata information.

func (RecoveryServiceSubnetCollection) String

func (RecoveryServiceSubnetCollection) ValidateEnumValue

func (m RecoveryServiceSubnetCollection) 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 RecoveryServiceSubnetDetails

type RecoveryServiceSubnetDetails struct {

	// Recovery Service Subnet Identifier.
	RecoveryServiceSubnetId *string `mandatory:"true" json:"recoveryServiceSubnetId"`

	// The current state of the Recovery Service Subnet.
	LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
}

RecoveryServiceSubnetDetails Details of the Recovery Service Subnet.

func (RecoveryServiceSubnetDetails) String

func (RecoveryServiceSubnetDetails) ValidateEnumValue

func (m RecoveryServiceSubnetDetails) 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 RecoveryServiceSubnetInput

type RecoveryServiceSubnetInput struct {

	// The recovery service subnet OCID.
	RecoveryServiceSubnetId *string `mandatory:"true" json:"recoveryServiceSubnetId"`
}

RecoveryServiceSubnetInput Parameters to retrieve information about a specific recovery service subnet.

func (RecoveryServiceSubnetInput) String

func (RecoveryServiceSubnetInput) ValidateEnumValue

func (m RecoveryServiceSubnetInput) 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 RecoveryServiceSubnetSummary

type RecoveryServiceSubnetSummary struct {

	// The recovery service subnet OCID.
	Id *string `mandatory:"true" json:"id"`

	// The compartment OCID.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The OCID of the virtual cloud network (VCN) associated with the recovery service subnet. You can create a single recovery service subnet per VCN.
	VcnId *string `mandatory:"true" json:"vcnId"`

	// The OCID of the subnet associated with the recovery service subnet. You can create a single backup network per virtual cloud network (VCN).
	SubnetId *string `mandatory:"true" json:"subnetId"`

	// A user-provided name for the recovery service subnet.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
	TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

	// An RFC3339 formatted datetime string that indicates the last updated time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'.
	TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

	// The current state of the recovery service subnet.
	// Allowed values are:
	//   - CREATING
	//   - UPDATING
	//   - ACTIVE
	//   - DELETING
	//   - DELETED
	//   - FAILED
	LifecycleState LifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`

	// Detailed description about the current lifecycle state of the recovery service subnet. For example, it can be used to provide actionable information for a resource in a Failed state
	LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

	// Usage of system tag keys. These predefined keys are scoped to namespaces.
	// Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. For more information, see Resource Tags (https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
	SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
}

RecoveryServiceSubnetSummary Each Recovery Service subnet uses a single private endpoint on a subnet of your choice within a VCN. The private endpoint need not be on the same subnet as the Oracle Cloud Database, although, it must be on a subnet that can communicate with the Oracle Cloud Database. To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies. For information about access control and compartments, see Overview of the Identity Service (https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm).

func (RecoveryServiceSubnetSummary) String

func (RecoveryServiceSubnetSummary) ValidateEnumValue

func (m RecoveryServiceSubnetSummary) 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 SortOrderEnum

type SortOrderEnum string

SortOrderEnum Enum with underlying type: string

const (
	SortOrderAsc  SortOrderEnum = "ASC"
	SortOrderDesc SortOrderEnum = "DESC"
)

Set of constants representing the allowable values for SortOrderEnum

func GetMappingSortOrderEnum

func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)

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

func GetSortOrderEnumValues

func GetSortOrderEnumValues() []SortOrderEnum

GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum

type UpdateProtectedDatabaseDetails

type UpdateProtectedDatabaseDetails struct {

	// The protected database name. You can change the displayName. Avoid entering confidential information.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// The size of the database is allowed to be decreased. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
	DatabaseSize DatabaseSizesEnum `mandatory:"false" json:"databaseSize,omitempty"`

	// The size of the database, in gigabytes.
	DatabaseSizeInGBs *int `mandatory:"false" json:"databaseSizeInGBs"`

	// Password credential which can be used to connect to Protected Database.
	// It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters.
	// The special characters must be underscore (_), number sign (#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
	// Password must not be same as current passsword.
	Password *string `mandatory:"false" json:"password"`

	// The OCID of the protection policy associated with the protected database.
	ProtectionPolicyId *string `mandatory:"false" json:"protectionPolicyId"`

	// List of recovery service subnet resources associated with the protected database.
	RecoveryServiceSubnets []RecoveryServiceSubnetInput `mandatory:"false" json:"recoveryServiceSubnets"`

	// The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.
	// Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional
	// configuration is needed on client side.
	IsRedoLogsShipped *bool `mandatory:"false" json:"isRedoLogsShipped"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

UpdateProtectedDatabaseDetails Describes the parameters required to update a protected database.

func (UpdateProtectedDatabaseDetails) String

func (UpdateProtectedDatabaseDetails) ValidateEnumValue

func (m UpdateProtectedDatabaseDetails) 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 UpdateProtectedDatabaseRequest

type UpdateProtectedDatabaseRequest struct {

	// The protected database OCID.
	ProtectedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"protectedDatabaseId"`

	// Describes the parameters required to update a protected database.
	UpdateProtectedDatabaseDetails `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.
	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
}

UpdateProtectedDatabaseRequest wrapper for the UpdateProtectedDatabase operation

See also

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

func (UpdateProtectedDatabaseRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateProtectedDatabaseRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateProtectedDatabaseRequest) RetryPolicy

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

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

func (UpdateProtectedDatabaseRequest) String

func (request UpdateProtectedDatabaseRequest) String() string

func (UpdateProtectedDatabaseRequest) ValidateEnumValue

func (request UpdateProtectedDatabaseRequest) 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 UpdateProtectedDatabaseResponse

type UpdateProtectedDatabaseResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

UpdateProtectedDatabaseResponse wrapper for the UpdateProtectedDatabase operation

func (UpdateProtectedDatabaseResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateProtectedDatabaseResponse) String

func (response UpdateProtectedDatabaseResponse) String() string

type UpdateProtectionPolicyDetails

type UpdateProtectionPolicyDetails struct {

	// A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// The maximum number of days to retain backups for a protected database.
	BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

UpdateProtectionPolicyDetails The information to be updated.

func (UpdateProtectionPolicyDetails) String

func (UpdateProtectionPolicyDetails) ValidateEnumValue

func (m UpdateProtectionPolicyDetails) 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 UpdateProtectionPolicyRequest

type UpdateProtectionPolicyRequest struct {

	// The protection policy OCID.
	ProtectionPolicyId *string `mandatory:"true" contributesTo:"path" name:"protectionPolicyId"`

	// The information to be updated.
	UpdateProtectionPolicyDetails `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.
	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
}

UpdateProtectionPolicyRequest wrapper for the UpdateProtectionPolicy operation

See also

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

func (UpdateProtectionPolicyRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateProtectionPolicyRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateProtectionPolicyRequest) RetryPolicy

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

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

func (UpdateProtectionPolicyRequest) String

func (request UpdateProtectionPolicyRequest) String() string

func (UpdateProtectionPolicyRequest) ValidateEnumValue

func (request UpdateProtectionPolicyRequest) 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 UpdateProtectionPolicyResponse

type UpdateProtectionPolicyResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

UpdateProtectionPolicyResponse wrapper for the UpdateProtectionPolicy operation

func (UpdateProtectionPolicyResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateProtectionPolicyResponse) String

func (response UpdateProtectionPolicyResponse) String() string

type UpdateRecoveryServiceSubnetDetails

type UpdateRecoveryServiceSubnetDetails struct {

	// A user-provided name for the recovery service subnet. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
	DisplayName *string `mandatory:"false" json:"displayName"`

	// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
	// Example: `{"bar-key": "value"}`
	FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

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

UpdateRecoveryServiceSubnetDetails Describes the parameters required to update a recovery service subnet.

func (UpdateRecoveryServiceSubnetDetails) String

func (UpdateRecoveryServiceSubnetDetails) ValidateEnumValue

func (m UpdateRecoveryServiceSubnetDetails) 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 UpdateRecoveryServiceSubnetRequest

type UpdateRecoveryServiceSubnetRequest struct {

	// The recovery service subnet OCID.
	RecoveryServiceSubnetId *string `mandatory:"true" contributesTo:"path" name:"recoveryServiceSubnetId"`

	// Describes the parameters required to update a recovery service subnet.
	UpdateRecoveryServiceSubnetDetails `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.
	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
}

UpdateRecoveryServiceSubnetRequest wrapper for the UpdateRecoveryServiceSubnet operation

See also

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

func (UpdateRecoveryServiceSubnetRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateRecoveryServiceSubnetRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateRecoveryServiceSubnetRequest) RetryPolicy

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

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

func (UpdateRecoveryServiceSubnetRequest) String

func (request UpdateRecoveryServiceSubnetRequest) String() string

func (UpdateRecoveryServiceSubnetRequest) ValidateEnumValue

func (request UpdateRecoveryServiceSubnetRequest) 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 UpdateRecoveryServiceSubnetResponse

type UpdateRecoveryServiceSubnetResponse struct {

	// The underlying http response
	RawResponse *http.Response

	// Unique Oracle-assigned identifier of the work request.
	OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

UpdateRecoveryServiceSubnetResponse wrapper for the UpdateRecoveryServiceSubnet operation

func (UpdateRecoveryServiceSubnetResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateRecoveryServiceSubnetResponse) String

func (response UpdateRecoveryServiceSubnetResponse) String() string

type WorkRequest

type WorkRequest struct {

	// Type of the work request
	OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`

	// Status of current work request.
	Status OperationStatusEnum `mandatory:"true" json:"status"`

	// The id of the work request.
	Id *string `mandatory:"true" json:"id"`

	// The ocid of the compartment that contains the work request. Work requests should be scoped to
	// the same compartment as the resource the work request affects. If the work request affects multiple resources,
	// and those resources are not in the same compartment, it is up to the service team to pick the primary
	// resource whose compartment should be used
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The resources affected by this work request.
	Resources []WorkRequestResource `mandatory:"true" json:"resources"`

	// Percentage of the request completed.
	PercentComplete *float32 `mandatory:"true" json:"percentComplete"`

	// The date and time the request was created, as described in
	// RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29.
	TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`

	// The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339),
	// section 14.29.
	TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`

	// The date and time  the work request reached a terminal state, either FAILED or SUCCEEDED, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
	TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}

WorkRequest A description of workrequest status

func (WorkRequest) String

func (m WorkRequest) String() string

func (WorkRequest) ValidateEnumValue

func (m WorkRequest) 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 WorkRequestError

type WorkRequestError struct {

	// A machine-usable code for the error that occured. Error codes are listed on
	// (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm)
	Code *string `mandatory:"true" json:"code"`

	// A human readable description of the issue encountered.
	Message *string `mandatory:"true" json:"message"`

	// The time the error occured. An RFC3339 formatted datetime string.
	Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

WorkRequestError An error encountered while executing a work request.

func (WorkRequestError) String

func (m WorkRequestError) String() string

func (WorkRequestError) ValidateEnumValue

func (m WorkRequestError) 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 WorkRequestErrorCollection

type WorkRequestErrorCollection struct {

	// List of workRequestError objects.
	Items []WorkRequestError `mandatory:"true" json:"items"`
}

WorkRequestErrorCollection Results of a workRequestError search. Contains both WorkRequestError items and other information, such as metadata.

func (WorkRequestErrorCollection) String

func (WorkRequestErrorCollection) ValidateEnumValue

func (m WorkRequestErrorCollection) 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 WorkRequestLogEntry

type WorkRequestLogEntry struct {

	// Human-readable log message.
	Message *string `mandatory:"true" json:"message"`

	// The time the log message was written. An RFC3339 formatted datetime string
	Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

WorkRequestLogEntry A log message from the execution of a work request.

func (WorkRequestLogEntry) String

func (m WorkRequestLogEntry) String() string

func (WorkRequestLogEntry) ValidateEnumValue

func (m WorkRequestLogEntry) 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 WorkRequestLogEntryCollection

type WorkRequestLogEntryCollection struct {

	// List of workRequestLogEntries.
	Items []WorkRequestLogEntry `mandatory:"true" json:"items"`
}

WorkRequestLogEntryCollection Results of a workRequestLog search. Contains both workRequestLog items and other information, such as metadata.

func (WorkRequestLogEntryCollection) String

func (WorkRequestLogEntryCollection) ValidateEnumValue

func (m WorkRequestLogEntryCollection) 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 WorkRequestResource

type WorkRequestResource struct {

	// The resource type the work request affects.
	EntityType *string `mandatory:"true" json:"entityType"`

	// The way in which this resource is affected by the work tracked in the work request.
	// A resource being created, updated, or deleted will remain in the IN_PROGRESS state until
	// work is complete for that resource at which point it will transition to CREATED, UPDATED,
	// or DELETED, respectively.
	ActionType ActionTypeEnum `mandatory:"true" json:"actionType"`

	// The identifier of the resource the work request affects.
	Identifier *string `mandatory:"true" json:"identifier"`

	// The URI path that the user can do a GET on to access the resource metadata
	EntityUri *string `mandatory:"false" json:"entityUri"`
}

WorkRequestResource A resource created or operated on by a work request.

func (WorkRequestResource) String

func (m WorkRequestResource) String() string

func (WorkRequestResource) ValidateEnumValue

func (m WorkRequestResource) 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 WorkRequestSummary

type WorkRequestSummary struct {

	// Type of the work request
	OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`

	// The status of the current work request.
	Status OperationStatusEnum `mandatory:"true" json:"status"`

	// The ID of the work request.
	Id *string `mandatory:"true" json:"id"`

	// The ocid of the compartment that contains the work request. Work requests should be scoped to
	// the same compartment as the resource the work request affects. If the work request affects multiple resources,
	// and those resources are not in the same compartment, it is up to the service team to pick the primary
	// resource whose compartment should be used.
	CompartmentId *string `mandatory:"true" json:"compartmentId"`

	// The resources affected by this work request.
	Resources []WorkRequestResource `mandatory:"true" json:"resources"`

	// The completed percentage of the operation tracked by the work request.
	PercentComplete *float32 `mandatory:"true" json:"percentComplete"`

	// The date and time the request was accepted, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. The precision for this time object is in milliseconds.
	TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`

	// The date and time the work request transitioned from ACCEPTED to IN_PROGRESS, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. The precision for this time object is in milliseconds.
	TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`

	// The date and time the work request reached a terminal state, either FAILED or SUCCEEDED, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. The precision for this time object is in milliseconds.
	TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}

WorkRequestSummary A summary of the status of a work request.

func (WorkRequestSummary) String

func (m WorkRequestSummary) String() string

func (WorkRequestSummary) ValidateEnumValue

func (m WorkRequestSummary) 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 WorkRequestSummaryCollection

type WorkRequestSummaryCollection struct {

	// List of workRequestSummary objects.
	Items []WorkRequestSummary `mandatory:"true" json:"items"`
}

WorkRequestSummaryCollection Results of a workRequest search. Contains both WorkRequest items and other information, such as metadata.

func (WorkRequestSummaryCollection) String

func (WorkRequestSummaryCollection) ValidateEnumValue

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

Source Files

Jump to

Keyboard shortcuts

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