...

Package optimizer

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

Overview ▾

Index ▾

type Action
    func (m Action) String() string
type ActionTypeEnum
    func GetActionTypeEnumValues() []ActionTypeEnum
type BulkApplyRecommendationsDetails
    func (m BulkApplyRecommendationsDetails) String() string
type BulkApplyRecommendationsRequest
    func (request BulkApplyRecommendationsRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request BulkApplyRecommendationsRequest) RetryPolicy() *common.RetryPolicy
    func (request BulkApplyRecommendationsRequest) String() string
type BulkApplyRecommendationsResponse
    func (response BulkApplyRecommendationsResponse) HTTPResponse() *http.Response
    func (response BulkApplyRecommendationsResponse) String() string
type BulkApplyResourceAction
    func (m BulkApplyResourceAction) String() string
type Category
    func (m Category) String() string
type CategoryCollection
    func (m CategoryCollection) String() string
type CategorySummary
    func (m CategorySummary) String() string
type CreateProfileDetails
    func (m CreateProfileDetails) String() string
type CreateProfileRequest
    func (request CreateProfileRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request CreateProfileRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateProfileRequest) String() string
type CreateProfileResponse
    func (response CreateProfileResponse) HTTPResponse() *http.Response
    func (response CreateProfileResponse) String() string
type DeleteProfileRequest
    func (request DeleteProfileRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request DeleteProfileRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteProfileRequest) String() string
type DeleteProfileResponse
    func (response DeleteProfileResponse) HTTPResponse() *http.Response
    func (response DeleteProfileResponse) String() string
type EnrollmentStatus
    func (m EnrollmentStatus) String() string
type EnrollmentStatusCollection
    func (m EnrollmentStatusCollection) String() string
type EnrollmentStatusSummary
    func (m EnrollmentStatusSummary) String() string
type GetCategoryRequest
    func (request GetCategoryRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request GetCategoryRequest) RetryPolicy() *common.RetryPolicy
    func (request GetCategoryRequest) String() string
type GetCategoryResponse
    func (response GetCategoryResponse) HTTPResponse() *http.Response
    func (response GetCategoryResponse) String() string
type GetEnrollmentStatusRequest
    func (request GetEnrollmentStatusRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request GetEnrollmentStatusRequest) RetryPolicy() *common.RetryPolicy
    func (request GetEnrollmentStatusRequest) String() string
type GetEnrollmentStatusResponse
    func (response GetEnrollmentStatusResponse) HTTPResponse() *http.Response
    func (response GetEnrollmentStatusResponse) String() string
type GetProfileRequest
    func (request GetProfileRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request GetProfileRequest) RetryPolicy() *common.RetryPolicy
    func (request GetProfileRequest) String() string
type GetProfileResponse
    func (response GetProfileResponse) HTTPResponse() *http.Response
    func (response GetProfileResponse) String() string
type GetRecommendationRequest
    func (request GetRecommendationRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request GetRecommendationRequest) RetryPolicy() *common.RetryPolicy
    func (request GetRecommendationRequest) String() string
type GetRecommendationResponse
    func (response GetRecommendationResponse) HTTPResponse() *http.Response
    func (response GetRecommendationResponse) String() string
type GetResourceActionRequest
    func (request GetResourceActionRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request GetResourceActionRequest) RetryPolicy() *common.RetryPolicy
    func (request GetResourceActionRequest) String() string
type GetResourceActionResponse
    func (response GetResourceActionResponse) HTTPResponse() *http.Response
    func (response GetResourceActionResponse) String() string
type GetWorkRequestRequest
    func (request GetWorkRequestRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
    func (request GetWorkRequestRequest) String() string
type GetWorkRequestResponse
    func (response GetWorkRequestResponse) HTTPResponse() *http.Response
    func (response GetWorkRequestResponse) String() string
type HistoryCollection
    func (m HistoryCollection) String() string
type HistorySummary
    func (m HistorySummary) String() string
type ImportanceEnum
    func GetImportanceEnumValues() []ImportanceEnum
type LevelConfiguration
    func (m LevelConfiguration) String() string
type LevelsConfiguration
    func (m LevelsConfiguration) String() string
type LifecycleStateEnum
    func GetLifecycleStateEnumValues() []LifecycleStateEnum
type ListCategoriesLifecycleStateEnum
    func GetListCategoriesLifecycleStateEnumValues() []ListCategoriesLifecycleStateEnum
type ListCategoriesRequest
    func (request ListCategoriesRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListCategoriesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListCategoriesRequest) String() string
type ListCategoriesResponse
    func (response ListCategoriesResponse) HTTPResponse() *http.Response
    func (response ListCategoriesResponse) String() string
type ListCategoriesSortByEnum
    func GetListCategoriesSortByEnumValues() []ListCategoriesSortByEnum
type ListCategoriesSortOrderEnum
    func GetListCategoriesSortOrderEnumValues() []ListCategoriesSortOrderEnum
type ListEnrollmentStatusesLifecycleStateEnum
    func GetListEnrollmentStatusesLifecycleStateEnumValues() []ListEnrollmentStatusesLifecycleStateEnum
type ListEnrollmentStatusesRequest
    func (request ListEnrollmentStatusesRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListEnrollmentStatusesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListEnrollmentStatusesRequest) String() string
type ListEnrollmentStatusesResponse
    func (response ListEnrollmentStatusesResponse) HTTPResponse() *http.Response
    func (response ListEnrollmentStatusesResponse) String() string
type ListEnrollmentStatusesSortByEnum
    func GetListEnrollmentStatusesSortByEnumValues() []ListEnrollmentStatusesSortByEnum
type ListEnrollmentStatusesSortOrderEnum
    func GetListEnrollmentStatusesSortOrderEnumValues() []ListEnrollmentStatusesSortOrderEnum
type ListEnrollmentStatusesStatusEnum
    func GetListEnrollmentStatusesStatusEnumValues() []ListEnrollmentStatusesStatusEnum
type ListHistoriesLifecycleStateEnum
    func GetListHistoriesLifecycleStateEnumValues() []ListHistoriesLifecycleStateEnum
type ListHistoriesRequest
    func (request ListHistoriesRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListHistoriesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListHistoriesRequest) String() string
type ListHistoriesResponse
    func (response ListHistoriesResponse) HTTPResponse() *http.Response
    func (response ListHistoriesResponse) String() string
type ListHistoriesSortByEnum
    func GetListHistoriesSortByEnumValues() []ListHistoriesSortByEnum
type ListHistoriesSortOrderEnum
    func GetListHistoriesSortOrderEnumValues() []ListHistoriesSortOrderEnum
type ListHistoriesStatusEnum
    func GetListHistoriesStatusEnumValues() []ListHistoriesStatusEnum
type ListProfilesLifecycleStateEnum
    func GetListProfilesLifecycleStateEnumValues() []ListProfilesLifecycleStateEnum
type ListProfilesRequest
    func (request ListProfilesRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListProfilesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListProfilesRequest) String() string
type ListProfilesResponse
    func (response ListProfilesResponse) HTTPResponse() *http.Response
    func (response ListProfilesResponse) String() string
type ListProfilesSortByEnum
    func GetListProfilesSortByEnumValues() []ListProfilesSortByEnum
type ListProfilesSortOrderEnum
    func GetListProfilesSortOrderEnumValues() []ListProfilesSortOrderEnum
type ListRecommendationStrategiesRequest
    func (request ListRecommendationStrategiesRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListRecommendationStrategiesRequest) RetryPolicy() *common.RetryPolicy
    func (request ListRecommendationStrategiesRequest) String() string
type ListRecommendationStrategiesResponse
    func (response ListRecommendationStrategiesResponse) HTTPResponse() *http.Response
    func (response ListRecommendationStrategiesResponse) String() string
type ListRecommendationStrategiesSortByEnum
    func GetListRecommendationStrategiesSortByEnumValues() []ListRecommendationStrategiesSortByEnum
type ListRecommendationStrategiesSortOrderEnum
    func GetListRecommendationStrategiesSortOrderEnumValues() []ListRecommendationStrategiesSortOrderEnum
type ListRecommendationsLifecycleStateEnum
    func GetListRecommendationsLifecycleStateEnumValues() []ListRecommendationsLifecycleStateEnum
type ListRecommendationsRequest
    func (request ListRecommendationsRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListRecommendationsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListRecommendationsRequest) String() string
type ListRecommendationsResponse
    func (response ListRecommendationsResponse) HTTPResponse() *http.Response
    func (response ListRecommendationsResponse) String() string
type ListRecommendationsSortByEnum
    func GetListRecommendationsSortByEnumValues() []ListRecommendationsSortByEnum
type ListRecommendationsSortOrderEnum
    func GetListRecommendationsSortOrderEnumValues() []ListRecommendationsSortOrderEnum
type ListRecommendationsStatusEnum
    func GetListRecommendationsStatusEnumValues() []ListRecommendationsStatusEnum
type ListResourceActionsLifecycleStateEnum
    func GetListResourceActionsLifecycleStateEnumValues() []ListResourceActionsLifecycleStateEnum
type ListResourceActionsRequest
    func (request ListResourceActionsRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListResourceActionsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListResourceActionsRequest) String() string
type ListResourceActionsResponse
    func (response ListResourceActionsResponse) HTTPResponse() *http.Response
    func (response ListResourceActionsResponse) String() string
type ListResourceActionsSortByEnum
    func GetListResourceActionsSortByEnumValues() []ListResourceActionsSortByEnum
type ListResourceActionsSortOrderEnum
    func GetListResourceActionsSortOrderEnumValues() []ListResourceActionsSortOrderEnum
type ListResourceActionsStatusEnum
    func GetListResourceActionsStatusEnumValues() []ListResourceActionsStatusEnum
type ListWorkRequestErrorsRequest
    func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestErrorsRequest) String() string
type ListWorkRequestErrorsResponse
    func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestErrorsResponse) String() string
type ListWorkRequestLogsRequest
    func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestLogsRequest) String() string
type ListWorkRequestLogsResponse
    func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestLogsResponse) String() string
type ListWorkRequestsRequest
    func (request ListWorkRequestsRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestsRequest) String() string
type ListWorkRequestsResponse
    func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestsResponse) String() string
type OperationStatusEnum
    func GetOperationStatusEnumValues() []OperationStatusEnum
type OperationTypeEnum
    func GetOperationTypeEnumValues() []OperationTypeEnum
type OptimizerClient
    func NewOptimizerClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OptimizerClient, err error)
    func NewOptimizerClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OptimizerClient, err error)
    func (client OptimizerClient) BulkApplyRecommendations(ctx context.Context, request BulkApplyRecommendationsRequest) (response BulkApplyRecommendationsResponse, err error)
    func (client *OptimizerClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client OptimizerClient) CreateProfile(ctx context.Context, request CreateProfileRequest) (response CreateProfileResponse, err error)
    func (client OptimizerClient) DeleteProfile(ctx context.Context, request DeleteProfileRequest) (response DeleteProfileResponse, err error)
    func (client OptimizerClient) GetCategory(ctx context.Context, request GetCategoryRequest) (response GetCategoryResponse, err error)
    func (client OptimizerClient) GetEnrollmentStatus(ctx context.Context, request GetEnrollmentStatusRequest) (response GetEnrollmentStatusResponse, err error)
    func (client OptimizerClient) GetProfile(ctx context.Context, request GetProfileRequest) (response GetProfileResponse, err error)
    func (client OptimizerClient) GetRecommendation(ctx context.Context, request GetRecommendationRequest) (response GetRecommendationResponse, err error)
    func (client OptimizerClient) GetResourceAction(ctx context.Context, request GetResourceActionRequest) (response GetResourceActionResponse, err error)
    func (client OptimizerClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
    func (client OptimizerClient) ListCategories(ctx context.Context, request ListCategoriesRequest) (response ListCategoriesResponse, err error)
    func (client OptimizerClient) ListEnrollmentStatuses(ctx context.Context, request ListEnrollmentStatusesRequest) (response ListEnrollmentStatusesResponse, err error)
    func (client OptimizerClient) ListHistories(ctx context.Context, request ListHistoriesRequest) (response ListHistoriesResponse, err error)
    func (client OptimizerClient) ListProfiles(ctx context.Context, request ListProfilesRequest) (response ListProfilesResponse, err error)
    func (client OptimizerClient) ListRecommendationStrategies(ctx context.Context, request ListRecommendationStrategiesRequest) (response ListRecommendationStrategiesResponse, err error)
    func (client OptimizerClient) ListRecommendations(ctx context.Context, request ListRecommendationsRequest) (response ListRecommendationsResponse, err error)
    func (client OptimizerClient) ListResourceActions(ctx context.Context, request ListResourceActionsRequest) (response ListResourceActionsResponse, err error)
    func (client OptimizerClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
    func (client OptimizerClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
    func (client OptimizerClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
    func (client *OptimizerClient) SetRegion(region string)
    func (client OptimizerClient) UpdateEnrollmentStatus(ctx context.Context, request UpdateEnrollmentStatusRequest) (response UpdateEnrollmentStatusResponse, err error)
    func (client OptimizerClient) UpdateProfile(ctx context.Context, request UpdateProfileRequest) (response UpdateProfileResponse, err error)
    func (client OptimizerClient) UpdateRecommendation(ctx context.Context, request UpdateRecommendationRequest) (response UpdateRecommendationResponse, err error)
    func (client OptimizerClient) UpdateResourceAction(ctx context.Context, request UpdateResourceActionRequest) (response UpdateResourceActionResponse, err error)
type OptimizerEnrollmentStatusEnum
    func GetOptimizerEnrollmentStatusEnumValues() []OptimizerEnrollmentStatusEnum
type Profile
    func (m Profile) String() string
type ProfileCollection
    func (m ProfileCollection) String() string
type ProfileSummary
    func (m ProfileSummary) String() string
type Recommendation
    func (m Recommendation) String() string
type RecommendationCollection
    func (m RecommendationCollection) String() string
type RecommendationCount
    func (m RecommendationCount) String() string
type RecommendationStrategyCollection
    func (m RecommendationStrategyCollection) String() string
type RecommendationStrategySummary
    func (m RecommendationStrategySummary) String() string
type RecommendationSummary
    func (m RecommendationSummary) String() string
type ResourceAction
    func (m ResourceAction) String() string
type ResourceActionCollection
    func (m ResourceActionCollection) String() string
type ResourceActionSummary
    func (m ResourceActionSummary) String() string
type ResourceCount
    func (m ResourceCount) String() string
type SortOrderEnum
    func GetSortOrderEnumValues() []SortOrderEnum
type StatusEnum
    func GetStatusEnumValues() []StatusEnum
type Strategy
    func (m Strategy) String() string
type StrategyParameter
    func (m StrategyParameter) String() string
type StrategyParameterTypeEnum
    func GetStrategyParameterTypeEnumValues() []StrategyParameterTypeEnum
type SupportedLevel
    func (m SupportedLevel) String() string
type SupportedLevels
    func (m SupportedLevels) String() string
type TagValueTypeEnum
    func GetTagValueTypeEnumValues() []TagValueTypeEnum
type TargetCompartments
    func (m TargetCompartments) String() string
type TargetTag
    func (m TargetTag) String() string
type TargetTags
    func (m TargetTags) String() string
type UpdateEnrollmentStatusDetails
    func (m UpdateEnrollmentStatusDetails) String() string
type UpdateEnrollmentStatusRequest
    func (request UpdateEnrollmentStatusRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request UpdateEnrollmentStatusRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateEnrollmentStatusRequest) String() string
type UpdateEnrollmentStatusResponse
    func (response UpdateEnrollmentStatusResponse) HTTPResponse() *http.Response
    func (response UpdateEnrollmentStatusResponse) String() string
type UpdateProfileDetails
    func (m UpdateProfileDetails) String() string
type UpdateProfileRequest
    func (request UpdateProfileRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request UpdateProfileRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateProfileRequest) String() string
type UpdateProfileResponse
    func (response UpdateProfileResponse) HTTPResponse() *http.Response
    func (response UpdateProfileResponse) String() string
type UpdateRecommendationDetails
    func (m UpdateRecommendationDetails) String() string
type UpdateRecommendationRequest
    func (request UpdateRecommendationRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request UpdateRecommendationRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateRecommendationRequest) String() string
type UpdateRecommendationResponse
    func (response UpdateRecommendationResponse) HTTPResponse() *http.Response
    func (response UpdateRecommendationResponse) String() string
type UpdateResourceActionDetails
    func (m UpdateResourceActionDetails) String() string
type UpdateResourceActionRequest
    func (request UpdateResourceActionRequest) HTTPRequest(method, path string) (http.Request, error)
    func (request UpdateResourceActionRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateResourceActionRequest) String() string
type UpdateResourceActionResponse
    func (response UpdateResourceActionResponse) HTTPResponse() *http.Response
    func (response UpdateResourceActionResponse) String() string
type WorkRequest
    func (m WorkRequest) String() string
type WorkRequestActionTypeEnum
    func GetWorkRequestActionTypeEnumValues() []WorkRequestActionTypeEnum
type WorkRequestCollection
    func (m WorkRequestCollection) String() string
type WorkRequestError
    func (m WorkRequestError) String() string
type WorkRequestErrorCollection
    func (m WorkRequestErrorCollection) String() string
type WorkRequestLogEntry
    func (m WorkRequestLogEntry) String() string
type WorkRequestLogEntryCollection
    func (m WorkRequestLogEntryCollection) String() string
type WorkRequestResource
    func (m WorkRequestResource) String() string

Package files

action.go action_type.go bulk_apply_recommendations_details.go bulk_apply_recommendations_request_response.go bulk_apply_resource_action.go category.go category_collection.go category_summary.go create_profile_details.go create_profile_request_response.go delete_profile_request_response.go enrollment_status.go enrollment_status_collection.go enrollment_status_summary.go get_category_request_response.go get_enrollment_status_request_response.go get_profile_request_response.go get_recommendation_request_response.go get_resource_action_request_response.go get_work_request_request_response.go history_collection.go history_summary.go importance.go level_configuration.go levels_configuration.go lifecycle_state.go list_categories_request_response.go list_enrollment_statuses_request_response.go list_histories_request_response.go list_profiles_request_response.go list_recommendation_strategies_request_response.go list_recommendations_request_response.go list_resource_actions_request_response.go list_work_request_errors_request_response.go list_work_request_logs_request_response.go list_work_requests_request_response.go operation_status.go operation_type.go optimizer_client.go optimizer_enrollment_status.go profile.go profile_collection.go profile_summary.go recommendation.go recommendation_collection.go recommendation_count.go recommendation_strategy_collection.go recommendation_strategy_summary.go recommendation_summary.go resource_action.go resource_action_collection.go resource_action_summary.go resource_count.go sort_order.go status.go strategy.go strategy_parameter.go strategy_parameter_type.go supported_level.go supported_levels.go tag_value_type.go target_compartments.go target_tag.go target_tags.go update_enrollment_status_details.go update_enrollment_status_request_response.go update_profile_details.go update_profile_request_response.go update_recommendation_details.go update_recommendation_request_response.go update_resource_action_details.go update_resource_action_request_response.go work_request.go work_request_action_type.go work_request_collection.go work_request_error.go work_request_error_collection.go work_request_log_entry.go work_request_log_entry_collection.go work_request_resource.go

type Action

Action Details about the recommended action.

type Action struct {

    // The status of the resource action.
    Type ActionTypeEnum `mandatory:"true" json:"type"`

    // Text describing the recommended action.
    Description *string `mandatory:"true" json:"description"`

    // The URL path to documentation that explains how to perform the action.
    Url *string `mandatory:"true" json:"url"`
}

func (Action) String

func (m Action) String() string

type ActionTypeEnum

ActionTypeEnum Enum with underlying type: string

type ActionTypeEnum string

Set of constants representing the allowable values for ActionTypeEnum

const (
    ActionTypeKbArticle ActionTypeEnum = "KB_ARTICLE"
)

func GetActionTypeEnumValues

func GetActionTypeEnumValues() []ActionTypeEnum

GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum

type BulkApplyRecommendationsDetails

BulkApplyRecommendationsDetails Details about bulk recommendation actions.

type BulkApplyRecommendationsDetails struct {

    // The current status of the recommendation.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The unique OCIDs of the resource actions that recommendations are applied to.
    // This field is deprecated.
    ResourceActionIds []string `mandatory:"false" json:"resourceActionIds"`

    // The unique resource actions that recommendations are applied to.
    Actions []BulkApplyResourceAction `mandatory:"false" json:"actions"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the resource action will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`
}

func (BulkApplyRecommendationsDetails) String

func (m BulkApplyRecommendationsDetails) String() string

type BulkApplyRecommendationsRequest

BulkApplyRecommendationsRequest wrapper for the BulkApplyRecommendations operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/BulkApplyRecommendations.go.html to see an example of how to use BulkApplyRecommendationsRequest.

type BulkApplyRecommendationsRequest struct {

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"true" contributesTo:"path" name:"recommendationId"`

    // Details about bulk recommendation actions.
    BulkApplyRecommendationsDetails `contributesTo:"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 `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

func (BulkApplyRecommendationsRequest) HTTPRequest

func (request BulkApplyRecommendationsRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (BulkApplyRecommendationsRequest) RetryPolicy

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

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

func (BulkApplyRecommendationsRequest) String

func (request BulkApplyRecommendationsRequest) String() string

type BulkApplyRecommendationsResponse

BulkApplyRecommendationsResponse wrapper for the BulkApplyRecommendations operation

type BulkApplyRecommendationsResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

    // Unique Oracle-assigned identifier for the asynchronous request.
    // You can use this to query status of the asynchronous operation.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
}

func (BulkApplyRecommendationsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (BulkApplyRecommendationsResponse) String

func (response BulkApplyRecommendationsResponse) String() string

type BulkApplyResourceAction

BulkApplyResourceAction The resource action that a recommendation will be applied to.

type BulkApplyResourceAction struct {

    // The unique OCIDs of the resource actions that recommendations are applied to.
    ResourceActionId *string `mandatory:"true" json:"resourceActionId"`

    // The current status of the recommendation.
    Status StatusEnum `mandatory:"false" json:"status,omitempty"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the resource action will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`

    // Additional parameter key-value pairs defining the resource action.
    // For example:
    // `{"timeAmount": 15, "timeUnit": "seconds"}`
    Parameters map[string]interface{} `mandatory:"false" json:"parameters"`

    // The name of the strategy.
    StrategyName *string `mandatory:"false" json:"strategyName"`
}

func (BulkApplyResourceAction) String

func (m BulkApplyResourceAction) String() string

type Category

Category The metadata associated with the category.

type Category struct {

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

    // The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The name assigned to the category. Avoid entering confidential information.
    Name *string `mandatory:"true" json:"name"`

    // Text describing the category. Avoid entering confidential information.
    Description *string `mandatory:"true" json:"description"`

    // An array of `RecommendationCount` objects grouped by the level of importance assigned to the recommendation.
    RecommendationCounts []RecommendationCount `mandatory:"true" json:"recommendationCounts"`

    // An array of `ResourceCount` objects grouped by the status of the recommendation.
    ResourceCounts []ResourceCount `mandatory:"true" json:"resourceCounts"`

    // The category's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The estimated cost savings, in dollars, for the category.
    EstimatedCostSaving *float64 `mandatory:"true" json:"estimatedCostSaving"`

    // The date and time the category details were created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The date and time the category details were last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
}

func (Category) String

func (m Category) String() string

type CategoryCollection

CategoryCollection A list of categories that match filter criteria, if any. Results contain `CategorySummary` objects.

type CategoryCollection struct {

    // A collection of category summaries.
    Items []CategorySummary `mandatory:"true" json:"items"`
}

func (CategoryCollection) String

func (m CategoryCollection) String() string

type CategorySummary

CategorySummary The metadata associated with the category summary.

type CategorySummary struct {

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

    // The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The name assigned to the category. Avoid entering confidential information.
    Name *string `mandatory:"true" json:"name"`

    // Text describing the category. Avoid entering confidential information.
    Description *string `mandatory:"true" json:"description"`

    // An array of `RecommendationCount` objects grouped by the level of importance assigned to each recommendation.
    RecommendationCounts []RecommendationCount `mandatory:"true" json:"recommendationCounts"`

    // An array of `ResourceCount` objects grouped by the status of each recommendation.
    ResourceCounts []ResourceCount `mandatory:"true" json:"resourceCounts"`

    // The category's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The estimated cost savings, in dollars, for the category.
    EstimatedCostSaving *float64 `mandatory:"true" json:"estimatedCostSaving"`

    // The date and time the category details were created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The date and time the category details were last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
}

func (CategorySummary) String

func (m CategorySummary) String() string

type CreateProfileDetails

CreateProfileDetails Details for creating a profile.

type CreateProfileDetails struct {

    // The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The name assigned to the profile. Avoid entering confidential information.
    Name *string `mandatory:"true" json:"name"`

    // Text describing the profile. Avoid entering confidential information.
    Description *string `mandatory:"true" json:"description"`

    LevelsConfiguration *LevelsConfiguration `mandatory:"true" json:"levelsConfiguration"`

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

    // Simple key-value pair applied without any predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    TargetCompartments *TargetCompartments `mandatory:"false" json:"targetCompartments"`

    TargetTags *TargetTags `mandatory:"false" json:"targetTags"`
}

func (CreateProfileDetails) String

func (m CreateProfileDetails) String() string

type CreateProfileRequest

CreateProfileRequest wrapper for the CreateProfile operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/CreateProfile.go.html to see an example of how to use CreateProfileRequest.

type CreateProfileRequest struct {

    // Details for creating the profile.
    CreateProfileDetails `contributesTo:"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 `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

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

func (CreateProfileRequest) HTTPRequest

func (request CreateProfileRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (CreateProfileRequest) RetryPolicy

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

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

func (CreateProfileRequest) String

func (request CreateProfileRequest) String() string

type CreateProfileResponse

CreateProfileResponse wrapper for the CreateProfile operation

type CreateProfileResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (CreateProfileResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateProfileResponse) String

func (response CreateProfileResponse) String() string

type DeleteProfileRequest

DeleteProfileRequest wrapper for the DeleteProfile operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/DeleteProfile.go.html to see an example of how to use DeleteProfileRequest.

type DeleteProfileRequest struct {

    // The unique OCID of the profile.
    ProfileId *string `mandatory:"true" contributesTo:"path" name:"profileId"`

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

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

func (DeleteProfileRequest) HTTPRequest

func (request DeleteProfileRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (DeleteProfileRequest) RetryPolicy

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

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

func (DeleteProfileRequest) String

func (request DeleteProfileRequest) String() string

type DeleteProfileResponse

DeleteProfileResponse wrapper for the DeleteProfile operation

type DeleteProfileResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

func (DeleteProfileResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteProfileResponse) String

func (response DeleteProfileResponse) String() string

type EnrollmentStatus

EnrollmentStatus The metadata associated with the enrollment status.

type EnrollmentStatus struct {

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

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

    // The enrollment status' current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The current Cloud Advisor enrollment status.
    Status OptimizerEnrollmentStatusEnum `mandatory:"true" json:"status"`

    // The reason for the enrollment status of the tenancy.
    StatusReason *string `mandatory:"false" json:"statusReason"`

    // The date and time the enrollment status was created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // The date and time the enrollment status was last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}

func (EnrollmentStatus) String

func (m EnrollmentStatus) String() string

type EnrollmentStatusCollection

EnrollmentStatusCollection A list of enrollment statuses that match filter criteria, if any. Results contain `EnrollmentStatusSummary` objects.

type EnrollmentStatusCollection struct {

    // A collection of enrollment status summaries.
    Items []EnrollmentStatusSummary `mandatory:"true" json:"items"`
}

func (EnrollmentStatusCollection) String

func (m EnrollmentStatusCollection) String() string

type EnrollmentStatusSummary

EnrollmentStatusSummary The metadata associated with the enrollment status summary.

type EnrollmentStatusSummary struct {

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

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

    // The enrollment status' current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The current Cloud Advisor enrollment status.
    Status OptimizerEnrollmentStatusEnum `mandatory:"true" json:"status"`

    // The reason for the enrollment status of the tenancy.
    StatusReason *string `mandatory:"false" json:"statusReason"`

    // The date and time the enrollment status was created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // The date and time the enrollment status was last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}

func (EnrollmentStatusSummary) String

func (m EnrollmentStatusSummary) String() string

type GetCategoryRequest

GetCategoryRequest wrapper for the GetCategory operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/GetCategory.go.html to see an example of how to use GetCategoryRequest.

type GetCategoryRequest struct {

    // The unique OCID associated with the category.
    CategoryId *string `mandatory:"true" contributesTo:"path" name:"categoryId"`

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

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

func (GetCategoryRequest) HTTPRequest

func (request GetCategoryRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetCategoryRequest) RetryPolicy

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

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

func (GetCategoryRequest) String

func (request GetCategoryRequest) String() string

type GetCategoryResponse

GetCategoryResponse wrapper for the GetCategory operation

type GetCategoryResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

func (GetCategoryResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetCategoryResponse) String

func (response GetCategoryResponse) String() string

type GetEnrollmentStatusRequest

GetEnrollmentStatusRequest wrapper for the GetEnrollmentStatus operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/GetEnrollmentStatus.go.html to see an example of how to use GetEnrollmentStatusRequest.

type GetEnrollmentStatusRequest struct {

    // The unique OCID associated with the enrollment status.
    EnrollmentStatusId *string `mandatory:"true" contributesTo:"path" name:"enrollmentStatusId"`

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

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

func (GetEnrollmentStatusRequest) HTTPRequest

func (request GetEnrollmentStatusRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetEnrollmentStatusRequest) RetryPolicy

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

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

func (GetEnrollmentStatusRequest) String

func (request GetEnrollmentStatusRequest) String() string

type GetEnrollmentStatusResponse

GetEnrollmentStatusResponse wrapper for the GetEnrollmentStatus operation

type GetEnrollmentStatusResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (GetEnrollmentStatusResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetEnrollmentStatusResponse) String

func (response GetEnrollmentStatusResponse) String() string

type GetProfileRequest

GetProfileRequest wrapper for the GetProfile operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/GetProfile.go.html to see an example of how to use GetProfileRequest.

type GetProfileRequest struct {

    // The unique OCID of the profile.
    ProfileId *string `mandatory:"true" contributesTo:"path" name:"profileId"`

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

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

func (GetProfileRequest) HTTPRequest

func (request GetProfileRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetProfileRequest) RetryPolicy

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

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

func (GetProfileRequest) String

func (request GetProfileRequest) String() string

type GetProfileResponse

GetProfileResponse wrapper for the GetProfile operation

type GetProfileResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (GetProfileResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetProfileResponse) String

func (response GetProfileResponse) String() string

type GetRecommendationRequest

GetRecommendationRequest wrapper for the GetRecommendation operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/GetRecommendation.go.html to see an example of how to use GetRecommendationRequest.

type GetRecommendationRequest struct {

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"true" contributesTo:"path" name:"recommendationId"`

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

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

func (GetRecommendationRequest) HTTPRequest

func (request GetRecommendationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetRecommendationRequest) RetryPolicy

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

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

func (GetRecommendationRequest) String

func (request GetRecommendationRequest) String() string

type GetRecommendationResponse

GetRecommendationResponse wrapper for the GetRecommendation operation

type GetRecommendationResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (GetRecommendationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetRecommendationResponse) String

func (response GetRecommendationResponse) String() string

type GetResourceActionRequest

GetResourceActionRequest wrapper for the GetResourceAction operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/GetResourceAction.go.html to see an example of how to use GetResourceActionRequest.

type GetResourceActionRequest struct {

    // The unique OCID associated with the resource action.
    ResourceActionId *string `mandatory:"true" contributesTo:"path" name:"resourceActionId"`

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

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

func (GetResourceActionRequest) HTTPRequest

func (request GetResourceActionRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (GetResourceActionRequest) RetryPolicy

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

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

func (GetResourceActionRequest) String

func (request GetResourceActionRequest) String() string

type GetResourceActionResponse

GetResourceActionResponse wrapper for the GetResourceAction operation

type GetResourceActionResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (GetResourceActionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetResourceActionResponse) String

func (response GetResourceActionResponse) String() string

type GetWorkRequestRequest

GetWorkRequestRequest wrapper for the GetWorkRequest operation

See also

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

type GetWorkRequestRequest struct {

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

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

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

func (GetWorkRequestRequest) HTTPRequest

func (request GetWorkRequestRequest) HTTPRequest(method, path 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

type GetWorkRequestResponse

GetWorkRequestResponse wrapper for the GetWorkRequest operation

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 *float32 `presentIn:"header" name:"retry-after"`
}

func (GetWorkRequestResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetWorkRequestResponse) String

func (response GetWorkRequestResponse) String() string

type HistoryCollection

HistoryCollection A list containing the recommendation history items that match filter criteria, if any. Results contain `HistorySummary` objects.

type HistoryCollection struct {

    // A collection of history summaries.
    Items []HistorySummary `mandatory:"true" json:"items"`
}

func (HistoryCollection) String

func (m HistoryCollection) String() string

type HistorySummary

HistorySummary The metadata associated with the recommendation history and its related resources.

type HistorySummary struct {

    // The unique OCID associated with the recommendation history.
    Id *string `mandatory:"true" json:"id"`

    // The name assigned to the resource.
    Name *string `mandatory:"true" json:"name"`

    // The kind of resource.
    ResourceType *string `mandatory:"true" json:"resourceType"`

    // The unique OCID associated with the category.
    CategoryId *string `mandatory:"true" json:"categoryId"`

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"true" json:"recommendationId"`

    // The name assigned to the recommendation.
    RecommendationName *string `mandatory:"true" json:"recommendationName"`

    // The unique OCID associated with the resource.
    ResourceId *string `mandatory:"true" json:"resourceId"`

    // The unique OCID associated with the resource action.
    ResourceActionId *string `mandatory:"true" json:"resourceActionId"`

    Action *Action `mandatory:"true" json:"action"`

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

    // The name assigned to the compartment.
    CompartmentName *string `mandatory:"true" json:"compartmentName"`

    // The recommendation history's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The estimated cost savings, in dollars, for the resource action.
    EstimatedCostSaving *float64 `mandatory:"true" json:"estimatedCostSaving"`

    // The current status of the resource action.
    Status StatusEnum `mandatory:"true" json:"status"`

    // Custom metadata key/value pairs for the resource action.
    //  **Metadata Example**
    //       "metadata" : {
    //          "cpuRecommendedShape": "VM.Standard1.1",
    //          "computeMemoryUtilization": "26.05734124418388",
    //          "currentShape": "VM.Standard1.2",
    //          "instanceRecommendedShape": "VM.Standard1.1",
    //          "computeCpuUtilization": "7.930035319720132",
    //          "memoryRecommendedShape": "None"
    //       }
    Metadata map[string]string `mandatory:"false" json:"metadata"`

    // Additional metadata key/value pairs that you provide.
    // They serve the same purpose and functionality as fields in the `metadata` object.
    // They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` fields are string/string maps only).
    // For example:
    // `{"CurrentShape": {"name":"VM.Standard2.16"}, "RecommendedShape": {"name":"VM.Standard2.8"}}`
    ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"`

    // The date and time the recommendation history was created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
}

func (HistorySummary) String

func (m HistorySummary) String() string

type ImportanceEnum

ImportanceEnum Enum with underlying type: string

type ImportanceEnum string

Set of constants representing the allowable values for ImportanceEnum

const (
    ImportanceCritical ImportanceEnum = "CRITICAL"
    ImportanceHigh     ImportanceEnum = "HIGH"
    ImportanceModerate ImportanceEnum = "MODERATE"
    ImportanceLow      ImportanceEnum = "LOW"
    ImportanceMinor    ImportanceEnum = "MINOR"
)

func GetImportanceEnumValues

func GetImportanceEnumValues() []ImportanceEnum

GetImportanceEnumValues Enumerates the set of values for ImportanceEnum

type LevelConfiguration

LevelConfiguration Details about the configuration level for the recommendation.

type LevelConfiguration struct {

    // The unique OCID of the recommendation.
    RecommendationId *string `mandatory:"false" json:"recommendationId"`

    // The pre-defined profile level.
    Level *string `mandatory:"false" json:"level"`
}

func (LevelConfiguration) String

func (m LevelConfiguration) String() string

type LevelsConfiguration

LevelsConfiguration A list of configuration levels for each recommendation.

type LevelsConfiguration struct {

    // The array of configuration levels.
    Items []LevelConfiguration `mandatory:"false" json:"items"`
}

func (LevelsConfiguration) String

func (m LevelsConfiguration) String() string

type LifecycleStateEnum

LifecycleStateEnum Enum with underlying type: string

type LifecycleStateEnum string

Set of constants representing the allowable values for LifecycleStateEnum

const (
    LifecycleStateActive    LifecycleStateEnum = "ACTIVE"
    LifecycleStateFailed    LifecycleStateEnum = "FAILED"
    LifecycleStateInactive  LifecycleStateEnum = "INACTIVE"
    LifecycleStateAttaching LifecycleStateEnum = "ATTACHING"
    LifecycleStateDetaching LifecycleStateEnum = "DETACHING"
    LifecycleStateDeleting  LifecycleStateEnum = "DELETING"
    LifecycleStateDeleted   LifecycleStateEnum = "DELETED"
    LifecycleStateUpdating  LifecycleStateEnum = "UPDATING"
    LifecycleStateCreating  LifecycleStateEnum = "CREATING"
)

func GetLifecycleStateEnumValues

func GetLifecycleStateEnumValues() []LifecycleStateEnum

GetLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum

type ListCategoriesLifecycleStateEnum

ListCategoriesLifecycleStateEnum Enum with underlying type: string

type ListCategoriesLifecycleStateEnum string

Set of constants representing the allowable values for ListCategoriesLifecycleStateEnum

const (
    ListCategoriesLifecycleStateActive    ListCategoriesLifecycleStateEnum = "ACTIVE"
    ListCategoriesLifecycleStateFailed    ListCategoriesLifecycleStateEnum = "FAILED"
    ListCategoriesLifecycleStateInactive  ListCategoriesLifecycleStateEnum = "INACTIVE"
    ListCategoriesLifecycleStateAttaching ListCategoriesLifecycleStateEnum = "ATTACHING"
    ListCategoriesLifecycleStateDetaching ListCategoriesLifecycleStateEnum = "DETACHING"
    ListCategoriesLifecycleStateDeleting  ListCategoriesLifecycleStateEnum = "DELETING"
    ListCategoriesLifecycleStateDeleted   ListCategoriesLifecycleStateEnum = "DELETED"
    ListCategoriesLifecycleStateUpdating  ListCategoriesLifecycleStateEnum = "UPDATING"
    ListCategoriesLifecycleStateCreating  ListCategoriesLifecycleStateEnum = "CREATING"
)

func GetListCategoriesLifecycleStateEnumValues

func GetListCategoriesLifecycleStateEnumValues() []ListCategoriesLifecycleStateEnum

GetListCategoriesLifecycleStateEnumValues Enumerates the set of values for ListCategoriesLifecycleStateEnum

type ListCategoriesRequest

ListCategoriesRequest wrapper for the ListCategories operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/ListCategories.go.html to see an example of how to use ListCategoriesRequest.

type ListCategoriesRequest struct {

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

    // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
    // Can only be set to true when performing ListCompartments on the tenancy (root compartment).
    CompartmentIdInSubtree *bool `mandatory:"true" contributesTo:"query" name:"compartmentIdInSubtree"`

    // Optional. A filter that returns results that match the name specified.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListCategoriesSortOrderEnum `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 NAME is ascending. The NAME sort order is case sensitive.
    SortBy ListCategoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // A filter that returns results that match the lifecycle state specified.
    LifecycleState ListCategoriesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

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

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

func (ListCategoriesRequest) HTTPRequest

func (request ListCategoriesRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListCategoriesRequest) RetryPolicy

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

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

func (ListCategoriesRequest) String

func (request ListCategoriesRequest) String() string

type ListCategoriesResponse

ListCategoriesResponse wrapper for the ListCategories operation

type ListCategoriesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of CategoryCollection instances
    CategoryCollection `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"`

    // For list pagination. When this header appears in the response, previous pages of results exist.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
}

func (ListCategoriesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListCategoriesResponse) String

func (response ListCategoriesResponse) String() string

type ListCategoriesSortByEnum

ListCategoriesSortByEnum Enum with underlying type: string

type ListCategoriesSortByEnum string

Set of constants representing the allowable values for ListCategoriesSortByEnum

const (
    ListCategoriesSortByName        ListCategoriesSortByEnum = "NAME"
    ListCategoriesSortByTimecreated ListCategoriesSortByEnum = "TIMECREATED"
)

func GetListCategoriesSortByEnumValues

func GetListCategoriesSortByEnumValues() []ListCategoriesSortByEnum

GetListCategoriesSortByEnumValues Enumerates the set of values for ListCategoriesSortByEnum

type ListCategoriesSortOrderEnum

ListCategoriesSortOrderEnum Enum with underlying type: string

type ListCategoriesSortOrderEnum string

Set of constants representing the allowable values for ListCategoriesSortOrderEnum

const (
    ListCategoriesSortOrderAsc  ListCategoriesSortOrderEnum = "ASC"
    ListCategoriesSortOrderDesc ListCategoriesSortOrderEnum = "DESC"
)

func GetListCategoriesSortOrderEnumValues

func GetListCategoriesSortOrderEnumValues() []ListCategoriesSortOrderEnum

GetListCategoriesSortOrderEnumValues Enumerates the set of values for ListCategoriesSortOrderEnum

type ListEnrollmentStatusesLifecycleStateEnum

ListEnrollmentStatusesLifecycleStateEnum Enum with underlying type: string

type ListEnrollmentStatusesLifecycleStateEnum string

Set of constants representing the allowable values for ListEnrollmentStatusesLifecycleStateEnum

const (
    ListEnrollmentStatusesLifecycleStateActive    ListEnrollmentStatusesLifecycleStateEnum = "ACTIVE"
    ListEnrollmentStatusesLifecycleStateFailed    ListEnrollmentStatusesLifecycleStateEnum = "FAILED"
    ListEnrollmentStatusesLifecycleStateInactive  ListEnrollmentStatusesLifecycleStateEnum = "INACTIVE"
    ListEnrollmentStatusesLifecycleStateAttaching ListEnrollmentStatusesLifecycleStateEnum = "ATTACHING"
    ListEnrollmentStatusesLifecycleStateDetaching ListEnrollmentStatusesLifecycleStateEnum = "DETACHING"
    ListEnrollmentStatusesLifecycleStateDeleting  ListEnrollmentStatusesLifecycleStateEnum = "DELETING"
    ListEnrollmentStatusesLifecycleStateDeleted   ListEnrollmentStatusesLifecycleStateEnum = "DELETED"
    ListEnrollmentStatusesLifecycleStateUpdating  ListEnrollmentStatusesLifecycleStateEnum = "UPDATING"
    ListEnrollmentStatusesLifecycleStateCreating  ListEnrollmentStatusesLifecycleStateEnum = "CREATING"
)

func GetListEnrollmentStatusesLifecycleStateEnumValues

func GetListEnrollmentStatusesLifecycleStateEnumValues() []ListEnrollmentStatusesLifecycleStateEnum

GetListEnrollmentStatusesLifecycleStateEnumValues Enumerates the set of values for ListEnrollmentStatusesLifecycleStateEnum

type ListEnrollmentStatusesRequest

ListEnrollmentStatusesRequest wrapper for the ListEnrollmentStatuses operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/ListEnrollmentStatuses.go.html to see an example of how to use ListEnrollmentStatusesRequest.

type ListEnrollmentStatusesRequest struct {

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

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListEnrollmentStatusesSortOrderEnum `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 NAME is ascending. The NAME sort order is case sensitive.
    SortBy ListEnrollmentStatusesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // A filter that returns results that match the lifecycle state specified.
    LifecycleState ListEnrollmentStatusesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

    // A filter that returns results that match the Cloud Advisor enrollment status specified.
    Status ListEnrollmentStatusesStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`

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

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

func (ListEnrollmentStatusesRequest) HTTPRequest

func (request ListEnrollmentStatusesRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListEnrollmentStatusesRequest) RetryPolicy

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

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

func (ListEnrollmentStatusesRequest) String

func (request ListEnrollmentStatusesRequest) String() string

type ListEnrollmentStatusesResponse

ListEnrollmentStatusesResponse wrapper for the ListEnrollmentStatuses operation

type ListEnrollmentStatusesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of EnrollmentStatusCollection instances
    EnrollmentStatusCollection `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"`

    // For list pagination. When this header appears in the response, previous pages of results exist.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
}

func (ListEnrollmentStatusesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListEnrollmentStatusesResponse) String

func (response ListEnrollmentStatusesResponse) String() string

type ListEnrollmentStatusesSortByEnum

ListEnrollmentStatusesSortByEnum Enum with underlying type: string

type ListEnrollmentStatusesSortByEnum string

Set of constants representing the allowable values for ListEnrollmentStatusesSortByEnum

const (
    ListEnrollmentStatusesSortByName        ListEnrollmentStatusesSortByEnum = "NAME"
    ListEnrollmentStatusesSortByTimecreated ListEnrollmentStatusesSortByEnum = "TIMECREATED"
)

func GetListEnrollmentStatusesSortByEnumValues

func GetListEnrollmentStatusesSortByEnumValues() []ListEnrollmentStatusesSortByEnum

GetListEnrollmentStatusesSortByEnumValues Enumerates the set of values for ListEnrollmentStatusesSortByEnum

type ListEnrollmentStatusesSortOrderEnum

ListEnrollmentStatusesSortOrderEnum Enum with underlying type: string

type ListEnrollmentStatusesSortOrderEnum string

Set of constants representing the allowable values for ListEnrollmentStatusesSortOrderEnum

const (
    ListEnrollmentStatusesSortOrderAsc  ListEnrollmentStatusesSortOrderEnum = "ASC"
    ListEnrollmentStatusesSortOrderDesc ListEnrollmentStatusesSortOrderEnum = "DESC"
)

func GetListEnrollmentStatusesSortOrderEnumValues

func GetListEnrollmentStatusesSortOrderEnumValues() []ListEnrollmentStatusesSortOrderEnum

GetListEnrollmentStatusesSortOrderEnumValues Enumerates the set of values for ListEnrollmentStatusesSortOrderEnum

type ListEnrollmentStatusesStatusEnum

ListEnrollmentStatusesStatusEnum Enum with underlying type: string

type ListEnrollmentStatusesStatusEnum string

Set of constants representing the allowable values for ListEnrollmentStatusesStatusEnum

const (
    ListEnrollmentStatusesStatusActive   ListEnrollmentStatusesStatusEnum = "ACTIVE"
    ListEnrollmentStatusesStatusInactive ListEnrollmentStatusesStatusEnum = "INACTIVE"
)

func GetListEnrollmentStatusesStatusEnumValues

func GetListEnrollmentStatusesStatusEnumValues() []ListEnrollmentStatusesStatusEnum

GetListEnrollmentStatusesStatusEnumValues Enumerates the set of values for ListEnrollmentStatusesStatusEnum

type ListHistoriesLifecycleStateEnum

ListHistoriesLifecycleStateEnum Enum with underlying type: string

type ListHistoriesLifecycleStateEnum string

Set of constants representing the allowable values for ListHistoriesLifecycleStateEnum

const (
    ListHistoriesLifecycleStateActive    ListHistoriesLifecycleStateEnum = "ACTIVE"
    ListHistoriesLifecycleStateFailed    ListHistoriesLifecycleStateEnum = "FAILED"
    ListHistoriesLifecycleStateInactive  ListHistoriesLifecycleStateEnum = "INACTIVE"
    ListHistoriesLifecycleStateAttaching ListHistoriesLifecycleStateEnum = "ATTACHING"
    ListHistoriesLifecycleStateDetaching ListHistoriesLifecycleStateEnum = "DETACHING"
    ListHistoriesLifecycleStateDeleting  ListHistoriesLifecycleStateEnum = "DELETING"
    ListHistoriesLifecycleStateDeleted   ListHistoriesLifecycleStateEnum = "DELETED"
    ListHistoriesLifecycleStateUpdating  ListHistoriesLifecycleStateEnum = "UPDATING"
    ListHistoriesLifecycleStateCreating  ListHistoriesLifecycleStateEnum = "CREATING"
)

func GetListHistoriesLifecycleStateEnumValues

func GetListHistoriesLifecycleStateEnumValues() []ListHistoriesLifecycleStateEnum

GetListHistoriesLifecycleStateEnumValues Enumerates the set of values for ListHistoriesLifecycleStateEnum

type ListHistoriesRequest

ListHistoriesRequest wrapper for the ListHistories operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/ListHistories.go.html to see an example of how to use ListHistoriesRequest.

type ListHistoriesRequest struct {

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

    // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
    // Can only be set to true when performing ListCompartments on the tenancy (root compartment).
    CompartmentIdInSubtree *bool `mandatory:"true" contributesTo:"query" name:"compartmentIdInSubtree"`

    // Optional. A filter that returns results that match the name specified.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // Optional. A filter that returns results that match the recommendation name specified.
    RecommendationName *string `mandatory:"false" contributesTo:"query" name:"recommendationName"`

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"false" contributesTo:"query" name:"recommendationId"`

    // Optional. A filter that returns results that match the resource type specified.
    ResourceType *string `mandatory:"false" contributesTo:"query" name:"resourceType"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListHistoriesSortOrderEnum `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 NAME is ascending. The NAME sort order is case sensitive.
    SortBy ListHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // A filter that returns results that match the lifecycle state specified.
    LifecycleState ListHistoriesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

    // A filter that returns recommendations that match the status specified.
    Status ListHistoriesStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`

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

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

func (ListHistoriesRequest) HTTPRequest

func (request ListHistoriesRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListHistoriesRequest) RetryPolicy

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

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

func (ListHistoriesRequest) String

func (request ListHistoriesRequest) String() string

type ListHistoriesResponse

ListHistoriesResponse wrapper for the ListHistories operation

type ListHistoriesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of HistoryCollection instances
    HistoryCollection `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"`

    // For list pagination. When this header appears in the response, previous pages of results exist.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
}

func (ListHistoriesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListHistoriesResponse) String

func (response ListHistoriesResponse) String() string

type ListHistoriesSortByEnum

ListHistoriesSortByEnum Enum with underlying type: string

type ListHistoriesSortByEnum string

Set of constants representing the allowable values for ListHistoriesSortByEnum

const (
    ListHistoriesSortByName        ListHistoriesSortByEnum = "NAME"
    ListHistoriesSortByTimecreated ListHistoriesSortByEnum = "TIMECREATED"
)

func GetListHistoriesSortByEnumValues

func GetListHistoriesSortByEnumValues() []ListHistoriesSortByEnum

GetListHistoriesSortByEnumValues Enumerates the set of values for ListHistoriesSortByEnum

type ListHistoriesSortOrderEnum

ListHistoriesSortOrderEnum Enum with underlying type: string

type ListHistoriesSortOrderEnum string

Set of constants representing the allowable values for ListHistoriesSortOrderEnum

const (
    ListHistoriesSortOrderAsc  ListHistoriesSortOrderEnum = "ASC"
    ListHistoriesSortOrderDesc ListHistoriesSortOrderEnum = "DESC"
)

func GetListHistoriesSortOrderEnumValues

func GetListHistoriesSortOrderEnumValues() []ListHistoriesSortOrderEnum

GetListHistoriesSortOrderEnumValues Enumerates the set of values for ListHistoriesSortOrderEnum

type ListHistoriesStatusEnum

ListHistoriesStatusEnum Enum with underlying type: string

type ListHistoriesStatusEnum string

Set of constants representing the allowable values for ListHistoriesStatusEnum

const (
    ListHistoriesStatusPending     ListHistoriesStatusEnum = "PENDING"
    ListHistoriesStatusDismissed   ListHistoriesStatusEnum = "DISMISSED"
    ListHistoriesStatusPostponed   ListHistoriesStatusEnum = "POSTPONED"
    ListHistoriesStatusImplemented ListHistoriesStatusEnum = "IMPLEMENTED"
)

func GetListHistoriesStatusEnumValues

func GetListHistoriesStatusEnumValues() []ListHistoriesStatusEnum

GetListHistoriesStatusEnumValues Enumerates the set of values for ListHistoriesStatusEnum

type ListProfilesLifecycleStateEnum

ListProfilesLifecycleStateEnum Enum with underlying type: string

type ListProfilesLifecycleStateEnum string

Set of constants representing the allowable values for ListProfilesLifecycleStateEnum

const (
    ListProfilesLifecycleStateActive    ListProfilesLifecycleStateEnum = "ACTIVE"
    ListProfilesLifecycleStateFailed    ListProfilesLifecycleStateEnum = "FAILED"
    ListProfilesLifecycleStateInactive  ListProfilesLifecycleStateEnum = "INACTIVE"
    ListProfilesLifecycleStateAttaching ListProfilesLifecycleStateEnum = "ATTACHING"
    ListProfilesLifecycleStateDetaching ListProfilesLifecycleStateEnum = "DETACHING"
    ListProfilesLifecycleStateDeleting  ListProfilesLifecycleStateEnum = "DELETING"
    ListProfilesLifecycleStateDeleted   ListProfilesLifecycleStateEnum = "DELETED"
    ListProfilesLifecycleStateUpdating  ListProfilesLifecycleStateEnum = "UPDATING"
    ListProfilesLifecycleStateCreating  ListProfilesLifecycleStateEnum = "CREATING"
)

func GetListProfilesLifecycleStateEnumValues

func GetListProfilesLifecycleStateEnumValues() []ListProfilesLifecycleStateEnum

GetListProfilesLifecycleStateEnumValues Enumerates the set of values for ListProfilesLifecycleStateEnum

type ListProfilesRequest

ListProfilesRequest wrapper for the ListProfiles operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/ListProfiles.go.html to see an example of how to use ListProfilesRequest.

type ListProfilesRequest struct {

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

    // Optional. A filter that returns results that match the name specified.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListProfilesSortOrderEnum `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 NAME is ascending. The NAME sort order is case sensitive.
    SortBy ListProfilesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // A filter that returns results that match the lifecycle state specified.
    LifecycleState ListProfilesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

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

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

func (ListProfilesRequest) HTTPRequest

func (request ListProfilesRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListProfilesRequest) RetryPolicy

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

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

func (ListProfilesRequest) String

func (request ListProfilesRequest) String() string

type ListProfilesResponse

ListProfilesResponse wrapper for the ListProfiles operation

type ListProfilesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of ProfileCollection instances
    ProfileCollection `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"`

    // For list pagination. When this header appears in the response, previous pages of results exist.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
}

func (ListProfilesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListProfilesResponse) String

func (response ListProfilesResponse) String() string

type ListProfilesSortByEnum

ListProfilesSortByEnum Enum with underlying type: string

type ListProfilesSortByEnum string

Set of constants representing the allowable values for ListProfilesSortByEnum

const (
    ListProfilesSortByName        ListProfilesSortByEnum = "NAME"
    ListProfilesSortByTimecreated ListProfilesSortByEnum = "TIMECREATED"
)

func GetListProfilesSortByEnumValues

func GetListProfilesSortByEnumValues() []ListProfilesSortByEnum

GetListProfilesSortByEnumValues Enumerates the set of values for ListProfilesSortByEnum

type ListProfilesSortOrderEnum

ListProfilesSortOrderEnum Enum with underlying type: string

type ListProfilesSortOrderEnum string

Set of constants representing the allowable values for ListProfilesSortOrderEnum

const (
    ListProfilesSortOrderAsc  ListProfilesSortOrderEnum = "ASC"
    ListProfilesSortOrderDesc ListProfilesSortOrderEnum = "DESC"
)

func GetListProfilesSortOrderEnumValues

func GetListProfilesSortOrderEnumValues() []ListProfilesSortOrderEnum

GetListProfilesSortOrderEnumValues Enumerates the set of values for ListProfilesSortOrderEnum

type ListRecommendationStrategiesRequest

ListRecommendationStrategiesRequest wrapper for the ListRecommendationStrategies operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/ListRecommendationStrategies.go.html to see an example of how to use ListRecommendationStrategiesRequest.

type ListRecommendationStrategiesRequest struct {

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

    // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
    // Can only be set to true when performing ListCompartments on the tenancy (root compartment).
    CompartmentIdInSubtree *bool `mandatory:"true" contributesTo:"query" name:"compartmentIdInSubtree"`

    // Optional. A filter that returns results that match the name specified.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // Optional. A filter that returns results that match the recommendation name specified.
    RecommendationName *string `mandatory:"false" contributesTo:"query" name:"recommendationName"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListRecommendationStrategiesSortOrderEnum `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 NAME is ascending. The NAME sort order is case sensitive.
    SortBy ListRecommendationStrategiesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

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

func (ListRecommendationStrategiesRequest) HTTPRequest

func (request ListRecommendationStrategiesRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListRecommendationStrategiesRequest) RetryPolicy

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

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

func (ListRecommendationStrategiesRequest) String

func (request ListRecommendationStrategiesRequest) String() string

type ListRecommendationStrategiesResponse

ListRecommendationStrategiesResponse wrapper for the ListRecommendationStrategies operation

type ListRecommendationStrategiesResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of RecommendationStrategyCollection instances
    RecommendationStrategyCollection `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"`

    // For list pagination. When this header appears in the response, previous pages of results exist.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
}

func (ListRecommendationStrategiesResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListRecommendationStrategiesResponse) String

func (response ListRecommendationStrategiesResponse) String() string

type ListRecommendationStrategiesSortByEnum

ListRecommendationStrategiesSortByEnum Enum with underlying type: string

type ListRecommendationStrategiesSortByEnum string

Set of constants representing the allowable values for ListRecommendationStrategiesSortByEnum

const (
    ListRecommendationStrategiesSortByName        ListRecommendationStrategiesSortByEnum = "NAME"
    ListRecommendationStrategiesSortByTimecreated ListRecommendationStrategiesSortByEnum = "TIMECREATED"
)

func GetListRecommendationStrategiesSortByEnumValues

func GetListRecommendationStrategiesSortByEnumValues() []ListRecommendationStrategiesSortByEnum

GetListRecommendationStrategiesSortByEnumValues Enumerates the set of values for ListRecommendationStrategiesSortByEnum

type ListRecommendationStrategiesSortOrderEnum

ListRecommendationStrategiesSortOrderEnum Enum with underlying type: string

type ListRecommendationStrategiesSortOrderEnum string

Set of constants representing the allowable values for ListRecommendationStrategiesSortOrderEnum

const (
    ListRecommendationStrategiesSortOrderAsc  ListRecommendationStrategiesSortOrderEnum = "ASC"
    ListRecommendationStrategiesSortOrderDesc ListRecommendationStrategiesSortOrderEnum = "DESC"
)

func GetListRecommendationStrategiesSortOrderEnumValues

func GetListRecommendationStrategiesSortOrderEnumValues() []ListRecommendationStrategiesSortOrderEnum

GetListRecommendationStrategiesSortOrderEnumValues Enumerates the set of values for ListRecommendationStrategiesSortOrderEnum

type ListRecommendationsLifecycleStateEnum

ListRecommendationsLifecycleStateEnum Enum with underlying type: string

type ListRecommendationsLifecycleStateEnum string

Set of constants representing the allowable values for ListRecommendationsLifecycleStateEnum

const (
    ListRecommendationsLifecycleStateActive    ListRecommendationsLifecycleStateEnum = "ACTIVE"
    ListRecommendationsLifecycleStateFailed    ListRecommendationsLifecycleStateEnum = "FAILED"
    ListRecommendationsLifecycleStateInactive  ListRecommendationsLifecycleStateEnum = "INACTIVE"
    ListRecommendationsLifecycleStateAttaching ListRecommendationsLifecycleStateEnum = "ATTACHING"
    ListRecommendationsLifecycleStateDetaching ListRecommendationsLifecycleStateEnum = "DETACHING"
    ListRecommendationsLifecycleStateDeleting  ListRecommendationsLifecycleStateEnum = "DELETING"
    ListRecommendationsLifecycleStateDeleted   ListRecommendationsLifecycleStateEnum = "DELETED"
    ListRecommendationsLifecycleStateUpdating  ListRecommendationsLifecycleStateEnum = "UPDATING"
    ListRecommendationsLifecycleStateCreating  ListRecommendationsLifecycleStateEnum = "CREATING"
)

func GetListRecommendationsLifecycleStateEnumValues

func GetListRecommendationsLifecycleStateEnumValues() []ListRecommendationsLifecycleStateEnum

GetListRecommendationsLifecycleStateEnumValues Enumerates the set of values for ListRecommendationsLifecycleStateEnum

type ListRecommendationsRequest

ListRecommendationsRequest wrapper for the ListRecommendations operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/ListRecommendations.go.html to see an example of how to use ListRecommendationsRequest.

type ListRecommendationsRequest struct {

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

    // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
    // Can only be set to true when performing ListCompartments on the tenancy (root compartment).
    CompartmentIdInSubtree *bool `mandatory:"true" contributesTo:"query" name:"compartmentIdInSubtree"`

    // The unique OCID associated with the category.
    CategoryId *string `mandatory:"true" contributesTo:"query" name:"categoryId"`

    // Optional. A filter that returns results that match the name specified.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListRecommendationsSortOrderEnum `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 NAME is ascending. The NAME sort order is case sensitive.
    SortBy ListRecommendationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // A filter that returns results that match the lifecycle state specified.
    LifecycleState ListRecommendationsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

    // A filter that returns recommendations that match the status specified.
    Status ListRecommendationsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`

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

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

func (ListRecommendationsRequest) HTTPRequest

func (request ListRecommendationsRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListRecommendationsRequest) RetryPolicy

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

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

func (ListRecommendationsRequest) String

func (request ListRecommendationsRequest) String() string

type ListRecommendationsResponse

ListRecommendationsResponse wrapper for the ListRecommendations operation

type ListRecommendationsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of RecommendationCollection instances
    RecommendationCollection `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"`

    // For list pagination. When this header appears in the response, previous pages of results exist.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
}

func (ListRecommendationsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListRecommendationsResponse) String

func (response ListRecommendationsResponse) String() string

type ListRecommendationsSortByEnum

ListRecommendationsSortByEnum Enum with underlying type: string

type ListRecommendationsSortByEnum string

Set of constants representing the allowable values for ListRecommendationsSortByEnum

const (
    ListRecommendationsSortByName        ListRecommendationsSortByEnum = "NAME"
    ListRecommendationsSortByTimecreated ListRecommendationsSortByEnum = "TIMECREATED"
)

func GetListRecommendationsSortByEnumValues

func GetListRecommendationsSortByEnumValues() []ListRecommendationsSortByEnum

GetListRecommendationsSortByEnumValues Enumerates the set of values for ListRecommendationsSortByEnum

type ListRecommendationsSortOrderEnum

ListRecommendationsSortOrderEnum Enum with underlying type: string

type ListRecommendationsSortOrderEnum string

Set of constants representing the allowable values for ListRecommendationsSortOrderEnum

const (
    ListRecommendationsSortOrderAsc  ListRecommendationsSortOrderEnum = "ASC"
    ListRecommendationsSortOrderDesc ListRecommendationsSortOrderEnum = "DESC"
)

func GetListRecommendationsSortOrderEnumValues

func GetListRecommendationsSortOrderEnumValues() []ListRecommendationsSortOrderEnum

GetListRecommendationsSortOrderEnumValues Enumerates the set of values for ListRecommendationsSortOrderEnum

type ListRecommendationsStatusEnum

ListRecommendationsStatusEnum Enum with underlying type: string

type ListRecommendationsStatusEnum string

Set of constants representing the allowable values for ListRecommendationsStatusEnum

const (
    ListRecommendationsStatusPending     ListRecommendationsStatusEnum = "PENDING"
    ListRecommendationsStatusDismissed   ListRecommendationsStatusEnum = "DISMISSED"
    ListRecommendationsStatusPostponed   ListRecommendationsStatusEnum = "POSTPONED"
    ListRecommendationsStatusImplemented ListRecommendationsStatusEnum = "IMPLEMENTED"
)

func GetListRecommendationsStatusEnumValues

func GetListRecommendationsStatusEnumValues() []ListRecommendationsStatusEnum

GetListRecommendationsStatusEnumValues Enumerates the set of values for ListRecommendationsStatusEnum

type ListResourceActionsLifecycleStateEnum

ListResourceActionsLifecycleStateEnum Enum with underlying type: string

type ListResourceActionsLifecycleStateEnum string

Set of constants representing the allowable values for ListResourceActionsLifecycleStateEnum

const (
    ListResourceActionsLifecycleStateActive    ListResourceActionsLifecycleStateEnum = "ACTIVE"
    ListResourceActionsLifecycleStateFailed    ListResourceActionsLifecycleStateEnum = "FAILED"
    ListResourceActionsLifecycleStateInactive  ListResourceActionsLifecycleStateEnum = "INACTIVE"
    ListResourceActionsLifecycleStateAttaching ListResourceActionsLifecycleStateEnum = "ATTACHING"
    ListResourceActionsLifecycleStateDetaching ListResourceActionsLifecycleStateEnum = "DETACHING"
    ListResourceActionsLifecycleStateDeleting  ListResourceActionsLifecycleStateEnum = "DELETING"
    ListResourceActionsLifecycleStateDeleted   ListResourceActionsLifecycleStateEnum = "DELETED"
    ListResourceActionsLifecycleStateUpdating  ListResourceActionsLifecycleStateEnum = "UPDATING"
    ListResourceActionsLifecycleStateCreating  ListResourceActionsLifecycleStateEnum = "CREATING"
)

func GetListResourceActionsLifecycleStateEnumValues

func GetListResourceActionsLifecycleStateEnumValues() []ListResourceActionsLifecycleStateEnum

GetListResourceActionsLifecycleStateEnumValues Enumerates the set of values for ListResourceActionsLifecycleStateEnum

type ListResourceActionsRequest

ListResourceActionsRequest wrapper for the ListResourceActions operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/ListResourceActions.go.html to see an example of how to use ListResourceActionsRequest.

type ListResourceActionsRequest struct {

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

    // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
    // Can only be set to true when performing ListCompartments on the tenancy (root compartment).
    CompartmentIdInSubtree *bool `mandatory:"true" contributesTo:"query" name:"compartmentIdInSubtree"`

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"true" contributesTo:"query" name:"recommendationId"`

    // Optional. A filter that returns results that match the name specified.
    Name *string `mandatory:"false" contributesTo:"query" name:"name"`

    // Optional. A filter that returns results that match the resource type specified.
    ResourceType *string `mandatory:"false" contributesTo:"query" name:"resourceType"`

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

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

    // The sort order to use, either ascending (`ASC`) or descending (`DESC`).
    SortOrder ListResourceActionsSortOrderEnum `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 NAME is ascending. The NAME sort order is case sensitive.
    SortBy ListResourceActionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

    // A filter that returns results that match the lifecycle state specified.
    LifecycleState ListResourceActionsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

    // A filter that returns recommendations that match the status specified.
    Status ListResourceActionsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`

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

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

func (ListResourceActionsRequest) HTTPRequest

func (request ListResourceActionsRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (ListResourceActionsRequest) RetryPolicy

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

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

func (ListResourceActionsRequest) String

func (request ListResourceActionsRequest) String() string

type ListResourceActionsResponse

ListResourceActionsResponse wrapper for the ListResourceActions operation

type ListResourceActionsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of ResourceActionCollection instances
    ResourceActionCollection `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"`

    // For list pagination. When this header appears in the response, previous pages of results exist.
    // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"`
}

func (ListResourceActionsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListResourceActionsResponse) String

func (response ListResourceActionsResponse) String() string

type ListResourceActionsSortByEnum

ListResourceActionsSortByEnum Enum with underlying type: string

type ListResourceActionsSortByEnum string

Set of constants representing the allowable values for ListResourceActionsSortByEnum

const (
    ListResourceActionsSortByName        ListResourceActionsSortByEnum = "NAME"
    ListResourceActionsSortByTimecreated ListResourceActionsSortByEnum = "TIMECREATED"
)

func GetListResourceActionsSortByEnumValues

func GetListResourceActionsSortByEnumValues() []ListResourceActionsSortByEnum

GetListResourceActionsSortByEnumValues Enumerates the set of values for ListResourceActionsSortByEnum

type ListResourceActionsSortOrderEnum

ListResourceActionsSortOrderEnum Enum with underlying type: string

type ListResourceActionsSortOrderEnum string

Set of constants representing the allowable values for ListResourceActionsSortOrderEnum

const (
    ListResourceActionsSortOrderAsc  ListResourceActionsSortOrderEnum = "ASC"
    ListResourceActionsSortOrderDesc ListResourceActionsSortOrderEnum = "DESC"
)

func GetListResourceActionsSortOrderEnumValues

func GetListResourceActionsSortOrderEnumValues() []ListResourceActionsSortOrderEnum

GetListResourceActionsSortOrderEnumValues Enumerates the set of values for ListResourceActionsSortOrderEnum

type ListResourceActionsStatusEnum

ListResourceActionsStatusEnum Enum with underlying type: string

type ListResourceActionsStatusEnum string

Set of constants representing the allowable values for ListResourceActionsStatusEnum

const (
    ListResourceActionsStatusPending     ListResourceActionsStatusEnum = "PENDING"
    ListResourceActionsStatusDismissed   ListResourceActionsStatusEnum = "DISMISSED"
    ListResourceActionsStatusPostponed   ListResourceActionsStatusEnum = "POSTPONED"
    ListResourceActionsStatusImplemented ListResourceActionsStatusEnum = "IMPLEMENTED"
)

func GetListResourceActionsStatusEnumValues

func GetListResourceActionsStatusEnumValues() []ListResourceActionsStatusEnum

GetListResourceActionsStatusEnumValues Enumerates the set of values for ListResourceActionsStatusEnum

type ListWorkRequestErrorsRequest

ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation

See also

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

type ListWorkRequestErrorsRequest struct {

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

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

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

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

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

func (ListWorkRequestErrorsRequest) HTTPRequest

func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path 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

type ListWorkRequestErrorsResponse

ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation

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

func (ListWorkRequestErrorsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestErrorsResponse) String

func (response ListWorkRequestErrorsResponse) String() string

type ListWorkRequestLogsRequest

ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation

See also

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

type ListWorkRequestLogsRequest struct {

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

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

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

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

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

func (ListWorkRequestLogsRequest) HTTPRequest

func (request ListWorkRequestLogsRequest) HTTPRequest(method, path 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

type ListWorkRequestLogsResponse

ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation

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

func (ListWorkRequestLogsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestLogsResponse) String

func (response ListWorkRequestLogsResponse) String() string

type ListWorkRequestsRequest

ListWorkRequestsRequest wrapper for the ListWorkRequests operation

See also

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

type ListWorkRequestsRequest struct {

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

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

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

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

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

func (ListWorkRequestsRequest) HTTPRequest

func (request ListWorkRequestsRequest) HTTPRequest(method, path 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

type ListWorkRequestsResponse

ListWorkRequestsResponse wrapper for the ListWorkRequests operation

type ListWorkRequestsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of WorkRequestCollection instances
    WorkRequestCollection `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"`
}

func (ListWorkRequestsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListWorkRequestsResponse) String

func (response ListWorkRequestsResponse) String() string

type OperationStatusEnum

OperationStatusEnum Enum with underlying type: string

type OperationStatusEnum string

Set of constants representing the allowable values for OperationStatusEnum

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

func GetOperationStatusEnumValues

func GetOperationStatusEnumValues() []OperationStatusEnum

GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum

type OperationTypeEnum

OperationTypeEnum Enum with underlying type: string

type OperationTypeEnum string

Set of constants representing the allowable values for OperationTypeEnum

const (
    OperationTypeBulkApplyRecommendations OperationTypeEnum = "BULK_APPLY_RECOMMENDATIONS"
)

func GetOperationTypeEnumValues

func GetOperationTypeEnumValues() []OperationTypeEnum

GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum

type OptimizerClient

OptimizerClient a client for Optimizer

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

func NewOptimizerClientWithConfigurationProvider

func NewOptimizerClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OptimizerClient, err error)

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

func NewOptimizerClientWithOboToken

func NewOptimizerClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OptimizerClient, err error)

NewOptimizerClientWithOboToken Creates a new default Optimizer 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 (OptimizerClient) BulkApplyRecommendations

func (client OptimizerClient) BulkApplyRecommendations(ctx context.Context, request BulkApplyRecommendationsRequest) (response BulkApplyRecommendationsResponse, err error)

BulkApplyRecommendations Applies the specified recommendations to the resources.

See also

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

func (*OptimizerClient) ConfigurationProvider

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

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

func (OptimizerClient) CreateProfile

func (client OptimizerClient) CreateProfile(ctx context.Context, request CreateProfileRequest) (response CreateProfileResponse, err error)

CreateProfile Creates a new profile.

See also

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

func (OptimizerClient) DeleteProfile

func (client OptimizerClient) DeleteProfile(ctx context.Context, request DeleteProfileRequest) (response DeleteProfileResponse, err error)

DeleteProfile Deletes the specified profile. Uses the profile's OCID to determine which profile to delete.

See also

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

func (OptimizerClient) GetCategory

func (client OptimizerClient) GetCategory(ctx context.Context, request GetCategoryRequest) (response GetCategoryResponse, err error)

GetCategory Gets the category that corresponds to the specified OCID.

See also

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

func (OptimizerClient) GetEnrollmentStatus

func (client OptimizerClient) GetEnrollmentStatus(ctx context.Context, request GetEnrollmentStatusRequest) (response GetEnrollmentStatusResponse, err error)

GetEnrollmentStatus Gets the Cloud Advisor enrollment status.

See also

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

func (OptimizerClient) GetProfile

func (client OptimizerClient) GetProfile(ctx context.Context, request GetProfileRequest) (response GetProfileResponse, err error)

GetProfile Gets the specified profile's information. Uses the profile's OCID to determine which profile to retrieve.

See also

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

func (OptimizerClient) GetRecommendation

func (client OptimizerClient) GetRecommendation(ctx context.Context, request GetRecommendationRequest) (response GetRecommendationResponse, err error)

GetRecommendation Gets the recommendation for the specified OCID.

See also

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

func (OptimizerClient) GetResourceAction

func (client OptimizerClient) GetResourceAction(ctx context.Context, request GetResourceActionRequest) (response GetResourceActionResponse, err error)

GetResourceAction Gets the resource action that corresponds to the specified OCID.

See also

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

func (OptimizerClient) GetWorkRequest

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

GetWorkRequest Gets the status of the work request associated with the specified ID.

See also

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

func (OptimizerClient) ListCategories

func (client OptimizerClient) ListCategories(ctx context.Context, request ListCategoriesRequest) (response ListCategoriesResponse, err error)

ListCategories Lists the supported Cloud Advisor categories.

See also

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

func (OptimizerClient) ListEnrollmentStatuses

func (client OptimizerClient) ListEnrollmentStatuses(ctx context.Context, request ListEnrollmentStatusesRequest) (response ListEnrollmentStatusesResponse, err error)

ListEnrollmentStatuses Lists the Cloud Advisor enrollment statuses.

See also

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

func (OptimizerClient) ListHistories

func (client OptimizerClient) ListHistories(ctx context.Context, request ListHistoriesRequest) (response ListHistoriesResponse, err error)

ListHistories Lists changes to the recommendations based on user activity. For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.

See also

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

func (OptimizerClient) ListProfiles

func (client OptimizerClient) ListProfiles(ctx context.Context, request ListProfilesRequest) (response ListProfilesResponse, err error)

ListProfiles Lists the existing profiles.

See also

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

func (OptimizerClient) ListRecommendationStrategies

func (client OptimizerClient) ListRecommendationStrategies(ctx context.Context, request ListRecommendationStrategiesRequest) (response ListRecommendationStrategiesResponse, err error)

ListRecommendationStrategies Lists the existing strategies.

See also

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

func (OptimizerClient) ListRecommendations

func (client OptimizerClient) ListRecommendations(ctx context.Context, request ListRecommendationsRequest) (response ListRecommendationsResponse, err error)

ListRecommendations Lists the Cloud Advisor recommendations that are currently supported in the specified category.

See also

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

func (OptimizerClient) ListResourceActions

func (client OptimizerClient) ListResourceActions(ctx context.Context, request ListResourceActionsRequest) (response ListResourceActionsResponse, err error)

ListResourceActions Lists the Cloud Advisor resource actions that are supported by the specified recommendation.

See also

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

func (OptimizerClient) ListWorkRequestErrors

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

ListWorkRequestErrors Lists errors associated with the specified work request.

See also

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

func (OptimizerClient) ListWorkRequestLogs

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

ListWorkRequestLogs Lists the logs associated with the specified work request.

See also

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

func (OptimizerClient) ListWorkRequests

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

ListWorkRequests Lists the work requests in the tenancy. The tenancy is the root compartment.

See also

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

func (*OptimizerClient) SetRegion

func (client *OptimizerClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (OptimizerClient) UpdateEnrollmentStatus

func (client OptimizerClient) UpdateEnrollmentStatus(ctx context.Context, request UpdateEnrollmentStatusRequest) (response UpdateEnrollmentStatusResponse, err error)

UpdateEnrollmentStatus Updates the enrollment status of the tenancy.

See also

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

func (OptimizerClient) UpdateProfile

func (client OptimizerClient) UpdateProfile(ctx context.Context, request UpdateProfileRequest) (response UpdateProfileResponse, err error)

UpdateProfile Updates the specified profile. Uses the profile's OCID to determine which profile to update.

See also

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

func (OptimizerClient) UpdateRecommendation

func (client OptimizerClient) UpdateRecommendation(ctx context.Context, request UpdateRecommendationRequest) (response UpdateRecommendationResponse, err error)

UpdateRecommendation Updates the recommendation that corresponds to the specified OCID. Use this operation to implement the following actions:

* Postpone recommendation
* Dismiss recommendation
* Reactivate recommendation

See also

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

func (OptimizerClient) UpdateResourceAction

func (client OptimizerClient) UpdateResourceAction(ctx context.Context, request UpdateResourceActionRequest) (response UpdateResourceActionResponse, err error)

UpdateResourceAction Updates the resource action that corresponds to the specified OCID. Use this operation to implement the following actions:

* Postpone resource action
* Ignore resource action
* Reactivate resource action

See also

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

type OptimizerEnrollmentStatusEnum

OptimizerEnrollmentStatusEnum Enum with underlying type: string

type OptimizerEnrollmentStatusEnum string

Set of constants representing the allowable values for OptimizerEnrollmentStatusEnum

const (
    OptimizerEnrollmentStatusActive   OptimizerEnrollmentStatusEnum = "ACTIVE"
    OptimizerEnrollmentStatusInactive OptimizerEnrollmentStatusEnum = "INACTIVE"
)

func GetOptimizerEnrollmentStatusEnumValues

func GetOptimizerEnrollmentStatusEnumValues() []OptimizerEnrollmentStatusEnum

GetOptimizerEnrollmentStatusEnumValues Enumerates the set of values for OptimizerEnrollmentStatusEnum

type Profile

Profile The metadata associated with the profile.

type Profile struct {

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

    // The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The name assigned to the profile. Avoid entering confidential information.
    Name *string `mandatory:"true" json:"name"`

    // Text describing the profile. Avoid entering confidential information.
    Description *string `mandatory:"true" json:"description"`

    // The profile's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The date and time the profile was created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The date and time the profile was last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`

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

    // Simple key-value pair applied without any predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    LevelsConfiguration *LevelsConfiguration `mandatory:"false" json:"levelsConfiguration"`

    TargetCompartments *TargetCompartments `mandatory:"false" json:"targetCompartments"`

    TargetTags *TargetTags `mandatory:"false" json:"targetTags"`
}

func (Profile) String

func (m Profile) String() string

type ProfileCollection

ProfileCollection A list of profiles that match filter criteria, if any. Results contain `ProfileSummary` objects.

type ProfileCollection struct {

    // A collection of profile summaries.
    Items []ProfileSummary `mandatory:"true" json:"items"`
}

func (ProfileCollection) String

func (m ProfileCollection) String() string

type ProfileSummary

ProfileSummary The metadata associated with the profile summary.

type ProfileSummary struct {

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

    // The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The name assigned to the profile.
    Name *string `mandatory:"true" json:"name"`

    // Text describing the profile.
    Description *string `mandatory:"true" json:"description"`

    // The profile's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The date and time the profile was created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The date and time the profile was last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`

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

    // Simple key-value pair applied without any predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    LevelsConfiguration *LevelsConfiguration `mandatory:"false" json:"levelsConfiguration"`

    TargetCompartments *TargetCompartments `mandatory:"false" json:"targetCompartments"`

    TargetTags *TargetTags `mandatory:"false" json:"targetTags"`
}

func (ProfileSummary) String

func (m ProfileSummary) String() string

type Recommendation

Recommendation The metadata associated with the recommendation.

type Recommendation struct {

    // The unique OCID associated with the recommendation.
    Id *string `mandatory:"true" json:"id"`

    // The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The unique OCID associated with the category.
    CategoryId *string `mandatory:"true" json:"categoryId"`

    // The name assigned to the recommendation.
    Name *string `mandatory:"true" json:"name"`

    // Text describing the recommendation.
    Description *string `mandatory:"true" json:"description"`

    // The level of importance assigned to the recommendation.
    Importance ImportanceEnum `mandatory:"true" json:"importance"`

    // An array of `ResourceCount` objects grouped by the status of the resource actions.
    ResourceCounts []ResourceCount `mandatory:"true" json:"resourceCounts"`

    // The recommendation's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The estimated cost savings, in dollars, for the recommendation.
    EstimatedCostSaving *float64 `mandatory:"true" json:"estimatedCostSaving"`

    // The current status of the recommendation.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The date and time that the recommendation entered its current status. The format is defined by RFC3339.
    // For example, "The status of the recommendation changed from `pending` to `current(ignored)` on this date and time."
    TimeStatusBegin *common.SDKTime `mandatory:"true" json:"timeStatusBegin"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the recommendation will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`

    // The date and time the recommendation details were created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // The date and time the recommendation details were last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    SupportedLevels *SupportedLevels `mandatory:"false" json:"supportedLevels"`
}

func (Recommendation) String

func (m Recommendation) String() string

type RecommendationCollection

RecommendationCollection A list of recommendations that match filter criteria, if any. Results contain `RecommendationSummary` objects.

type RecommendationCollection struct {

    // A collection of recommendations.
    Items []RecommendationSummary `mandatory:"true" json:"items"`
}

func (RecommendationCollection) String

func (m RecommendationCollection) String() string

type RecommendationCount

RecommendationCount The count of recommendations in a category, grouped by importance.

type RecommendationCount struct {

    // The level of importance assigned to the recommendation.
    Importance ImportanceEnum `mandatory:"true" json:"importance"`

    // The count of recommendations.
    Count *int `mandatory:"true" json:"count"`
}

func (RecommendationCount) String

func (m RecommendationCount) String() string

type RecommendationStrategyCollection

RecommendationStrategyCollection A list of strategies that match filter criteria, if any. Results contain `RecommendationStrategySummary` objects.

type RecommendationStrategyCollection struct {

    // A collection of recommendation strategy summaries.
    Items []RecommendationStrategySummary `mandatory:"true" json:"items"`
}

func (RecommendationStrategyCollection) String

func (m RecommendationStrategyCollection) String() string

type RecommendationStrategySummary

RecommendationStrategySummary The metadata associated with the recommendation strategy.

type RecommendationStrategySummary struct {

    // The display name of the recommendation.
    Name *string `mandatory:"true" json:"name"`

    // The list of strategies used.
    Strategies []Strategy `mandatory:"true" json:"strategies"`
}

func (RecommendationStrategySummary) String

func (m RecommendationStrategySummary) String() string

type RecommendationSummary

RecommendationSummary The metadata associated with the recommendation summary.

type RecommendationSummary struct {

    // The unique OCID associated with the recommendation.
    Id *string `mandatory:"true" json:"id"`

    // The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The unique OCID associated with the category.
    CategoryId *string `mandatory:"true" json:"categoryId"`

    // The name assigned to the recommendation.
    Name *string `mandatory:"true" json:"name"`

    // Text describing the recommendation.
    Description *string `mandatory:"true" json:"description"`

    // The level of importance assigned to the recommendation.
    Importance ImportanceEnum `mandatory:"true" json:"importance"`

    // An array of `ResourceCount` objects grouped by the status of the resource actions.
    ResourceCounts []ResourceCount `mandatory:"true" json:"resourceCounts"`

    // The recommendation's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The estimated cost savings, in dollars, for the recommendation.
    EstimatedCostSaving *float64 `mandatory:"true" json:"estimatedCostSaving"`

    // The current status of the recommendation.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The date and time that the recommendation entered its current status. The format is defined by RFC3339.
    // For example, "The status of the recommendation changed from `pending` to `current(ignored)` on this date and time."
    TimeStatusBegin *common.SDKTime `mandatory:"true" json:"timeStatusBegin"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the recommendation will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`

    // The date and time the recommendation details were created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // The date and time the recommendation details were last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    SupportedLevels *SupportedLevels `mandatory:"false" json:"supportedLevels"`
}

func (RecommendationSummary) String

func (m RecommendationSummary) String() string

type ResourceAction

ResourceAction The metadata associated with the resource action.

type ResourceAction struct {

    // The unique OCID associated with the resource action.
    Id *string `mandatory:"true" json:"id"`

    // The unique OCID associated with the category.
    CategoryId *string `mandatory:"true" json:"categoryId"`

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"true" json:"recommendationId"`

    // The unique OCID associated with the resource.
    ResourceId *string `mandatory:"true" json:"resourceId"`

    // The name assigned to the resource.
    Name *string `mandatory:"true" json:"name"`

    // The kind of resource.
    ResourceType *string `mandatory:"true" json:"resourceType"`

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

    // The name associated with the compartment.
    CompartmentName *string `mandatory:"true" json:"compartmentName"`

    Action *Action `mandatory:"true" json:"action"`

    // The resource action's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The estimated cost savings, in dollars, for the resource action.
    EstimatedCostSaving *float64 `mandatory:"true" json:"estimatedCostSaving"`

    // The current status of the resource action.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The date and time that the resource action entered its current status. The format is defined by RFC3339.
    // For example, "The status of the resource action changed from `pending` to `current(ignored)` on this date and time."
    TimeStatusBegin *common.SDKTime `mandatory:"true" json:"timeStatusBegin"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the resource action will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`

    // Custom metadata key/value pairs for the resource action.
    //  **Metadata Example**
    //       "metadata" : {
    //          "cpuRecommendedShape": "VM.Standard1.1",
    //          "computeMemoryUtilization": "26.05734124418388",
    //          "currentShape": "VM.Standard1.2",
    //          "instanceRecommendedShape": "VM.Standard1.1",
    //          "computeCpuUtilization": "7.930035319720132",
    //          "memoryRecommendedShape": "None"
    //       }
    Metadata map[string]string `mandatory:"false" json:"metadata"`

    // Additional metadata key/value pairs that you provide.
    // They serve the same purpose and functionality as fields in the `metadata` object.
    // They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` fields are string/string maps only).
    // For example:
    // `{"CurrentShape": {"name":"VM.Standard2.16"}, "RecommendedShape": {"name":"VM.Standard2.8"}}`
    ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"`

    // The date and time the resource action details were created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // The date and time the resource action details were last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}

func (ResourceAction) String

func (m ResourceAction) String() string

type ResourceActionCollection

ResourceActionCollection A list of resource actions that match filter criteria, if any. Results contain `ResourceActionSummary` objects.

type ResourceActionCollection struct {

    // A collection of resource actions.
    Items []ResourceActionSummary `mandatory:"true" json:"items"`
}

func (ResourceActionCollection) String

func (m ResourceActionCollection) String() string

type ResourceActionSummary

ResourceActionSummary The metadata associated with the resource action summary.

type ResourceActionSummary struct {

    // The unique OCID associated with the resource action.
    Id *string `mandatory:"true" json:"id"`

    // The unique OCID associated with the category.
    CategoryId *string `mandatory:"true" json:"categoryId"`

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"true" json:"recommendationId"`

    // The unique OCID associated with the resource.
    ResourceId *string `mandatory:"true" json:"resourceId"`

    // The name assigned to the resource.
    Name *string `mandatory:"true" json:"name"`

    // The kind of resource.
    ResourceType *string `mandatory:"true" json:"resourceType"`

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

    // The name associated with the compartment.
    CompartmentName *string `mandatory:"true" json:"compartmentName"`

    Action *Action `mandatory:"true" json:"action"`

    // The resource action's current state.
    LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The estimated cost savings, in dollars, for the resource action.
    EstimatedCostSaving *float64 `mandatory:"true" json:"estimatedCostSaving"`

    // The current status of the resource action.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The date and time that the resource action entered its current status. The format is defined by RFC3339.
    // For example, "The status of the resource action changed from `pending` to `current(ignored)` on this date and time."
    TimeStatusBegin *common.SDKTime `mandatory:"true" json:"timeStatusBegin"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the resource action will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`

    // Custom metadata key/value pairs for the resource action.
    //  **Metadata Example**
    //       "metadata" : {
    //          "cpuRecommendedShape": "VM.Standard1.1",
    //          "computeMemoryUtilization": "26.05734124418388",
    //          "currentShape": "VM.Standard1.2",
    //          "instanceRecommendedShape": "VM.Standard1.1",
    //          "computeCpuUtilization": "7.930035319720132",
    //          "memoryRecommendedShape": "None"
    //       }
    Metadata map[string]string `mandatory:"false" json:"metadata"`

    // Additional metadata key/value pairs that you provide.
    // They serve the same purpose and functionality as fields in the `metadata` object.
    // They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` fields are string/string maps only).
    // For example:
    // `{"CurrentShape": {"name":"VM.Standard2.16"}, "RecommendedShape": {"name":"VM.Standard2.8"}}`
    ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"`

    // The date and time the resource action details were created, in the format defined by RFC3339.
    TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`

    // The date and time the resource action details were last updated, in the format defined by RFC3339.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`
}

func (ResourceActionSummary) String

func (m ResourceActionSummary) String() string

type ResourceCount

ResourceCount The count of resources in a category, grouped by status.

type ResourceCount struct {

    // The recommendation status of the resource.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The count of resources.
    Count *int `mandatory:"true" json:"count"`
}

func (ResourceCount) String

func (m ResourceCount) String() string

type SortOrderEnum

SortOrderEnum Enum with underlying type: string

type SortOrderEnum string

Set of constants representing the allowable values for SortOrderEnum

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

func GetSortOrderEnumValues

func GetSortOrderEnumValues() []SortOrderEnum

GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum

type StatusEnum

StatusEnum Enum with underlying type: string

type StatusEnum string

Set of constants representing the allowable values for StatusEnum

const (
    StatusPending     StatusEnum = "PENDING"
    StatusDismissed   StatusEnum = "DISMISSED"
    StatusPostponed   StatusEnum = "POSTPONED"
    StatusImplemented StatusEnum = "IMPLEMENTED"
)

func GetStatusEnumValues

func GetStatusEnumValues() []StatusEnum

GetStatusEnumValues Enumerates the set of values for StatusEnum

type Strategy

Strategy The metadata associated with the strategy. The strategy is the method used to apply the recommendation.

type Strategy struct {

    // The name of the strategy.
    StrategyName *string `mandatory:"true" json:"strategyName"`

    // Whether this is the default recommendation strategy.
    IsDefault *bool `mandatory:"true" json:"isDefault"`

    // The list of strategies for the parameters.
    ParametersDefinition []StrategyParameter `mandatory:"false" json:"parametersDefinition"`
}

func (Strategy) String

func (m Strategy) String() string

type StrategyParameter

StrategyParameter The metadata associated with the strategy parameter.

type StrategyParameter struct {

    // The name of the strategy parameter.
    Name *string `mandatory:"true" json:"name"`

    // The type of strategy parameter.
    Type StrategyParameterTypeEnum `mandatory:"true" json:"type"`

    // Text describing the strategy parameter.
    Description *string `mandatory:"true" json:"description"`

    // Whether this parameter is required.
    IsRequired *bool `mandatory:"true" json:"isRequired"`

    // A default value used for the strategy parameter.
    DefaultValue *interface{} `mandatory:"false" json:"defaultValue"`

    // The list of possible values used for these strategy parameters.
    PossibleValues []interface{} `mandatory:"false" json:"possibleValues"`
}

func (StrategyParameter) String

func (m StrategyParameter) String() string

type StrategyParameterTypeEnum

StrategyParameterTypeEnum Enum with underlying type: string

type StrategyParameterTypeEnum string

Set of constants representing the allowable values for StrategyParameterTypeEnum

const (
    StrategyParameterTypeString   StrategyParameterTypeEnum = "STRING"
    StrategyParameterTypeBoolean  StrategyParameterTypeEnum = "BOOLEAN"
    StrategyParameterTypeNumber   StrategyParameterTypeEnum = "NUMBER"
    StrategyParameterTypeDatetime StrategyParameterTypeEnum = "DATETIME"
)

func GetStrategyParameterTypeEnumValues

func GetStrategyParameterTypeEnumValues() []StrategyParameterTypeEnum

GetStrategyParameterTypeEnumValues Enumerates the set of values for StrategyParameterTypeEnum

type SupportedLevel

SupportedLevel A system defined profile level supported by the recommendation.

type SupportedLevel struct {

    // The name of the profile level.
    Name *string `mandatory:"false" json:"name"`
}

func (SupportedLevel) String

func (m SupportedLevel) String() string

type SupportedLevels

SupportedLevels Optional. The profile levels supported by a recommendation. For example, profile level values could be `Low`, `Medium`, and `High`. Not all recommendations support this field.

type SupportedLevels struct {

    // The list of supported levels.
    Items []SupportedLevel `mandatory:"false" json:"items"`
}

func (SupportedLevels) String

func (m SupportedLevels) String() string

type TagValueTypeEnum

TagValueTypeEnum Enum with underlying type: string

type TagValueTypeEnum string

Set of constants representing the allowable values for TagValueTypeEnum

const (
    TagValueTypeValue TagValueTypeEnum = "VALUE"
    TagValueTypeAny   TagValueTypeEnum = "ANY"
)

func GetTagValueTypeEnumValues

func GetTagValueTypeEnumValues() []TagValueTypeEnum

GetTagValueTypeEnumValues Enumerates the set of values for TagValueTypeEnum

type TargetCompartments

TargetCompartments Optional. The target compartments supported by a profile override for a recommendation.

type TargetCompartments struct {

    // The list of target compartment OCIDs attached to the current profile override.
    Items []string `mandatory:"true" json:"items"`
}

func (TargetCompartments) String

func (m TargetCompartments) String() string

type TargetTag

TargetTag A target tag with tag namespace, tag definition, tag value type, and tag values attached to the current profile override.

type TargetTag struct {

    // The name of the tag namespace.
    TagNamespaceName *string `mandatory:"true" json:"tagNamespaceName"`

    // The name of the tag definition.
    TagDefinitionName *string `mandatory:"true" json:"tagDefinitionName"`

    // The tag value type.
    TagValueType TagValueTypeEnum `mandatory:"true" json:"tagValueType"`

    // The list of tag values.
    TagValues []string `mandatory:"false" json:"tagValues"`
}

func (TargetTag) String

func (m TargetTag) String() string

type TargetTags

TargetTags Optional. The target tags supported by a profile override for a recommendation.

type TargetTags struct {

    // The list of target tags attached to the current profile override.
    Items []TargetTag `mandatory:"true" json:"items"`
}

func (TargetTags) String

func (m TargetTags) String() string

type UpdateEnrollmentStatusDetails

UpdateEnrollmentStatusDetails The request object for updating the enrollment status details.

type UpdateEnrollmentStatusDetails struct {

    // The Cloud Advisor enrollment status.
    Status OptimizerEnrollmentStatusEnum `mandatory:"true" json:"status"`
}

func (UpdateEnrollmentStatusDetails) String

func (m UpdateEnrollmentStatusDetails) String() string

type UpdateEnrollmentStatusRequest

UpdateEnrollmentStatusRequest wrapper for the UpdateEnrollmentStatus operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/UpdateEnrollmentStatus.go.html to see an example of how to use UpdateEnrollmentStatusRequest.

type UpdateEnrollmentStatusRequest struct {

    // The unique OCID associated with the enrollment status.
    EnrollmentStatusId *string `mandatory:"true" contributesTo:"path" name:"enrollmentStatusId"`

    // The request object for updating the enrollment status.
    UpdateEnrollmentStatusDetails `contributesTo:"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 `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
}

func (UpdateEnrollmentStatusRequest) HTTPRequest

func (request UpdateEnrollmentStatusRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateEnrollmentStatusRequest) RetryPolicy

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

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

func (UpdateEnrollmentStatusRequest) String

func (request UpdateEnrollmentStatusRequest) String() string

type UpdateEnrollmentStatusResponse

UpdateEnrollmentStatusResponse wrapper for the UpdateEnrollmentStatus operation

type UpdateEnrollmentStatusResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (UpdateEnrollmentStatusResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateEnrollmentStatusResponse) String

func (response UpdateEnrollmentStatusResponse) String() string

type UpdateProfileDetails

UpdateProfileDetails Details for updating a profile.

type UpdateProfileDetails struct {

    // Text describing the profile. Avoid entering confidential information.
    Description *string `mandatory:"false" json:"description"`

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

    // Simple key-value pair applied without any predefined name, type, or namespace.
    // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Exists for cross-compatibility only.
    // Example: `{"bar-key": "value"}`
    FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`

    LevelsConfiguration *LevelsConfiguration `mandatory:"false" json:"levelsConfiguration"`

    TargetCompartments *TargetCompartments `mandatory:"false" json:"targetCompartments"`

    TargetTags *TargetTags `mandatory:"false" json:"targetTags"`

    // The name assigned to the profile. Avoid entering confidential information.
    Name *string `mandatory:"false" json:"name"`
}

func (UpdateProfileDetails) String

func (m UpdateProfileDetails) String() string

type UpdateProfileRequest

UpdateProfileRequest wrapper for the UpdateProfile operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/UpdateProfile.go.html to see an example of how to use UpdateProfileRequest.

type UpdateProfileRequest struct {

    // The unique OCID of the profile.
    ProfileId *string `mandatory:"true" contributesTo:"path" name:"profileId"`

    // The profile information to use for the update.
    UpdateProfileDetails `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 Oracle-assigned identifier for the request.
    // If you need to contact Oracle about a particular request, please provide the request ID.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

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

func (UpdateProfileRequest) HTTPRequest

func (request UpdateProfileRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateProfileRequest) RetryPolicy

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

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

func (UpdateProfileRequest) String

func (request UpdateProfileRequest) String() string

type UpdateProfileResponse

UpdateProfileResponse wrapper for the UpdateProfile operation

type UpdateProfileResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (UpdateProfileResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateProfileResponse) String

func (response UpdateProfileResponse) String() string

type UpdateRecommendationDetails

UpdateRecommendationDetails The request object for updating the recommendation details.

type UpdateRecommendationDetails struct {

    // The status of the recommendation.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the recommendation will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`
}

func (UpdateRecommendationDetails) String

func (m UpdateRecommendationDetails) String() string

type UpdateRecommendationRequest

UpdateRecommendationRequest wrapper for the UpdateRecommendation operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/UpdateRecommendation.go.html to see an example of how to use UpdateRecommendationRequest.

type UpdateRecommendationRequest struct {

    // The unique OCID associated with the recommendation.
    RecommendationId *string `mandatory:"true" contributesTo:"path" name:"recommendationId"`

    // The request object for udpating the recommendation details.
    UpdateRecommendationDetails `contributesTo:"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 `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
}

func (UpdateRecommendationRequest) HTTPRequest

func (request UpdateRecommendationRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateRecommendationRequest) RetryPolicy

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

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

func (UpdateRecommendationRequest) String

func (request UpdateRecommendationRequest) String() string

type UpdateRecommendationResponse

UpdateRecommendationResponse wrapper for the UpdateRecommendation operation

type UpdateRecommendationResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (UpdateRecommendationResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateRecommendationResponse) String

func (response UpdateRecommendationResponse) String() string

type UpdateResourceActionDetails

UpdateResourceActionDetails The request object for updating the resource action details.

type UpdateResourceActionDetails struct {

    // The status of the resource action.
    Status StatusEnum `mandatory:"true" json:"status"`

    // The date and time the current status will change. The format is defined by RFC3339.
    // For example, "The current `postponed` status of the resource action will end and change to `pending` on this
    // date and time."
    TimeStatusEnd *common.SDKTime `mandatory:"false" json:"timeStatusEnd"`
}

func (UpdateResourceActionDetails) String

func (m UpdateResourceActionDetails) String() string

type UpdateResourceActionRequest

UpdateResourceActionRequest wrapper for the UpdateResourceAction operation

See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/optimizer/UpdateResourceAction.go.html to see an example of how to use UpdateResourceActionRequest.

type UpdateResourceActionRequest struct {

    // The unique OCID associated with the resource action.
    ResourceActionId *string `mandatory:"true" contributesTo:"path" name:"resourceActionId"`

    // The resource action information to be updated.
    UpdateResourceActionDetails `contributesTo:"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 `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
}

func (UpdateResourceActionRequest) HTTPRequest

func (request UpdateResourceActionRequest) HTTPRequest(method, path string) (http.Request, error)

HTTPRequest implements the OCIRequest interface

func (UpdateResourceActionRequest) RetryPolicy

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

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

func (UpdateResourceActionRequest) String

func (request UpdateResourceActionRequest) String() string

type UpdateResourceActionResponse

UpdateResourceActionResponse wrapper for the UpdateResourceAction operation

type UpdateResourceActionResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

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

func (UpdateResourceActionResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateResourceActionResponse) String

func (response UpdateResourceActionResponse) String() string

type WorkRequest

WorkRequest The asynchronous API request does not take effect immediately. This request spawns an asynchronous workflow to fulfill the request. WorkRequest objects provide visibility for in-progress workflows.

type WorkRequest struct {

    // An enum-like description of the type of work the work request is doing.
    OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`

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

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

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

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

    // How much progress the operation has made.
    PercentComplete *float32 `mandatory:"true" json:"percentComplete"`

    // Date and time the work was accepted, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
    TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`

    // Date and time the work started, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
    TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`

    // Date and time the work completed, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
    TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}

func (WorkRequest) String

func (m WorkRequest) String() string

type WorkRequestActionTypeEnum

WorkRequestActionTypeEnum Enum with underlying type: string

type WorkRequestActionTypeEnum string

Set of constants representing the allowable values for WorkRequestActionTypeEnum

const (
    WorkRequestActionTypeCreated    WorkRequestActionTypeEnum = "CREATED"
    WorkRequestActionTypeUpdated    WorkRequestActionTypeEnum = "UPDATED"
    WorkRequestActionTypeDeleted    WorkRequestActionTypeEnum = "DELETED"
    WorkRequestActionTypeInProgress WorkRequestActionTypeEnum = "IN_PROGRESS"
    WorkRequestActionTypeRelated    WorkRequestActionTypeEnum = "RELATED"
)

func GetWorkRequestActionTypeEnumValues

func GetWorkRequestActionTypeEnumValues() []WorkRequestActionTypeEnum

GetWorkRequestActionTypeEnumValues Enumerates the set of values for WorkRequestActionTypeEnum

type WorkRequestCollection

WorkRequestCollection A list of work requests that match filter criteria, if any. Results contain `WorkRequest` objects.

type WorkRequestCollection struct {

    // A collection of work requests.
    Items []WorkRequest `mandatory:"true" json:"items"`
}

func (WorkRequestCollection) String

func (m WorkRequestCollection) String() string

type WorkRequestError

WorkRequestError Details about errors encountered while executing a work request.

type WorkRequestError struct {

    // A machine-usable code for the error that occured.
    Code *string `mandatory:"true" json:"code"`

    // A human-readable error string.
    Message *string `mandatory:"true" json:"message"`

    // Date and time the error happened, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
    Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

func (WorkRequestError) String

func (m WorkRequestError) String() string

type WorkRequestErrorCollection

WorkRequestErrorCollection A list of work request errors that match filter criteria, if any. Results contain `WorkRequestError` objects.

type WorkRequestErrorCollection struct {

    // A collection of work request errors.
    Items []WorkRequestError `mandatory:"true" json:"items"`
}

func (WorkRequestErrorCollection) String

func (m WorkRequestErrorCollection) String() string

type WorkRequestLogEntry

WorkRequestLogEntry Details about the log entity.

type WorkRequestLogEntry struct {

    // A human-readable error string.
    Message *string `mandatory:"true" json:"message"`

    // Date and time the log was written, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
    Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

func (WorkRequestLogEntry) String

func (m WorkRequestLogEntry) String() string

type WorkRequestLogEntryCollection

WorkRequestLogEntryCollection A list of work request logs that match filter criteria, if any. Results contain `WorkRequestLogEntry` objects.

type WorkRequestLogEntryCollection struct {

    // A collection of work request log entries.
    Items []WorkRequestLogEntry `mandatory:"true" json:"items"`
}

func (WorkRequestLogEntryCollection) String

func (m WorkRequestLogEntryCollection) String() string

type WorkRequestResource

WorkRequestResource Details about the resource entity.

type WorkRequestResource struct {

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

    // The way in which this resource was affected by the work tracked by the work request.
    // A resource being created, updated, or deleted remains in the `IN_PROGRESS` state until
    // work is complete for that resource. At that point, the resource transitions to the `CREATED`, `UPDATED`,
    // or `DELETED` state.
    ActionType WorkRequestActionTypeEnum `mandatory:"true" json:"actionType"`

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

func (WorkRequestResource) String

func (m WorkRequestResource) String() string