...

Package generativeai

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

Overview ▾

Index ▾

func GetActionTypeEnumStringValues() []string
func GetDatasetDatasetTypeEnumStringValues() []string
func GetDedicatedAiClusterCapacityCapacityTypeEnumStringValues() []string
func GetDedicatedAiClusterLifecycleStateEnumStringValues() []string
func GetDedicatedAiClusterTypeEnumStringValues() []string
func GetDedicatedAiClusterUnitShapeEnumStringValues() []string
func GetEndpointLifecycleStateEnumStringValues() []string
func GetListDedicatedAiClustersSortByEnumStringValues() []string
func GetListDedicatedAiClustersSortOrderEnumStringValues() []string
func GetListEndpointsSortByEnumStringValues() []string
func GetListEndpointsSortOrderEnumStringValues() []string
func GetListModelsSortByEnumStringValues() []string
func GetListModelsSortOrderEnumStringValues() []string
func GetListWorkRequestErrorsSortByEnumStringValues() []string
func GetListWorkRequestErrorsSortOrderEnumStringValues() []string
func GetListWorkRequestLogsSortByEnumStringValues() []string
func GetListWorkRequestLogsSortOrderEnumStringValues() []string
func GetListWorkRequestsSortByEnumStringValues() []string
func GetListWorkRequestsSortOrderEnumStringValues() []string
func GetListWorkRequestsStatusEnumStringValues() []string
func GetModelCapabilityEnumStringValues() []string
func GetModelLifecycleStateEnumStringValues() []string
func GetModelMetricsModelMetricsTypeEnumStringValues() []string
func GetModelTypeEnumStringValues() []string
func GetOperationStatusEnumStringValues() []string
func GetOperationTypeEnumStringValues() []string
func GetSortOrderEnumStringValues() []string
func GetTrainingConfigTrainingConfigTypeEnumStringValues() []string
func GetWorkRequestResourceMetadataKeyEnumStringValues() []string
type ActionTypeEnum
    func GetActionTypeEnumValues() []ActionTypeEnum
    func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)
type ChangeDedicatedAiClusterCompartmentDetails
    func (m ChangeDedicatedAiClusterCompartmentDetails) String() string
    func (m ChangeDedicatedAiClusterCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeDedicatedAiClusterCompartmentRequest
    func (request ChangeDedicatedAiClusterCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeDedicatedAiClusterCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeDedicatedAiClusterCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeDedicatedAiClusterCompartmentRequest) String() string
    func (request ChangeDedicatedAiClusterCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeDedicatedAiClusterCompartmentResponse
    func (response ChangeDedicatedAiClusterCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeDedicatedAiClusterCompartmentResponse) String() string
type ChangeEndpointCompartmentDetails
    func (m ChangeEndpointCompartmentDetails) String() string
    func (m ChangeEndpointCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeEndpointCompartmentRequest
    func (request ChangeEndpointCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeEndpointCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeEndpointCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeEndpointCompartmentRequest) String() string
    func (request ChangeEndpointCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeEndpointCompartmentResponse
    func (response ChangeEndpointCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeEndpointCompartmentResponse) String() string
type ChangeModelCompartmentDetails
    func (m ChangeModelCompartmentDetails) String() string
    func (m ChangeModelCompartmentDetails) ValidateEnumValue() (bool, error)
type ChangeModelCompartmentRequest
    func (request ChangeModelCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ChangeModelCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ChangeModelCompartmentRequest) RetryPolicy() *common.RetryPolicy
    func (request ChangeModelCompartmentRequest) String() string
    func (request ChangeModelCompartmentRequest) ValidateEnumValue() (bool, error)
type ChangeModelCompartmentResponse
    func (response ChangeModelCompartmentResponse) HTTPResponse() *http.Response
    func (response ChangeModelCompartmentResponse) String() string
type ContentModerationConfig
    func (m ContentModerationConfig) String() string
    func (m ContentModerationConfig) ValidateEnumValue() (bool, error)
type CreateDedicatedAiClusterDetails
    func (m CreateDedicatedAiClusterDetails) String() string
    func (m CreateDedicatedAiClusterDetails) ValidateEnumValue() (bool, error)
type CreateDedicatedAiClusterRequest
    func (request CreateDedicatedAiClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateDedicatedAiClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateDedicatedAiClusterRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateDedicatedAiClusterRequest) String() string
    func (request CreateDedicatedAiClusterRequest) ValidateEnumValue() (bool, error)
type CreateDedicatedAiClusterResponse
    func (response CreateDedicatedAiClusterResponse) HTTPResponse() *http.Response
    func (response CreateDedicatedAiClusterResponse) String() string
type CreateEndpointDetails
    func (m CreateEndpointDetails) String() string
    func (m CreateEndpointDetails) ValidateEnumValue() (bool, error)
type CreateEndpointRequest
    func (request CreateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateEndpointRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateEndpointRequest) String() string
    func (request CreateEndpointRequest) ValidateEnumValue() (bool, error)
type CreateEndpointResponse
    func (response CreateEndpointResponse) HTTPResponse() *http.Response
    func (response CreateEndpointResponse) String() string
type CreateModelDetails
    func (m CreateModelDetails) String() string
    func (m CreateModelDetails) ValidateEnumValue() (bool, error)
type CreateModelRequest
    func (request CreateModelRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request CreateModelRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request CreateModelRequest) RetryPolicy() *common.RetryPolicy
    func (request CreateModelRequest) String() string
    func (request CreateModelRequest) ValidateEnumValue() (bool, error)
type CreateModelResponse
    func (response CreateModelResponse) HTTPResponse() *http.Response
    func (response CreateModelResponse) String() string
type Dataset
type DatasetDatasetTypeEnum
    func GetDatasetDatasetTypeEnumValues() []DatasetDatasetTypeEnum
    func GetMappingDatasetDatasetTypeEnum(val string) (DatasetDatasetTypeEnum, bool)
type DedicatedAiCluster
    func (m DedicatedAiCluster) String() string
    func (m *DedicatedAiCluster) UnmarshalJSON(data []byte) (e error)
    func (m DedicatedAiCluster) ValidateEnumValue() (bool, error)
type DedicatedAiClusterCapacity
type DedicatedAiClusterCapacityCapacityTypeEnum
    func GetDedicatedAiClusterCapacityCapacityTypeEnumValues() []DedicatedAiClusterCapacityCapacityTypeEnum
    func GetMappingDedicatedAiClusterCapacityCapacityTypeEnum(val string) (DedicatedAiClusterCapacityCapacityTypeEnum, bool)
type DedicatedAiClusterCollection
    func (m DedicatedAiClusterCollection) String() string
    func (m DedicatedAiClusterCollection) ValidateEnumValue() (bool, error)
type DedicatedAiClusterHostingCapacity
    func (m DedicatedAiClusterHostingCapacity) MarshalJSON() (buff []byte, e error)
    func (m DedicatedAiClusterHostingCapacity) String() string
    func (m DedicatedAiClusterHostingCapacity) ValidateEnumValue() (bool, error)
type DedicatedAiClusterLifecycleStateEnum
    func GetDedicatedAiClusterLifecycleStateEnumValues() []DedicatedAiClusterLifecycleStateEnum
    func GetMappingDedicatedAiClusterLifecycleStateEnum(val string) (DedicatedAiClusterLifecycleStateEnum, bool)
type DedicatedAiClusterSummary
    func (m DedicatedAiClusterSummary) String() string
    func (m *DedicatedAiClusterSummary) UnmarshalJSON(data []byte) (e error)
    func (m DedicatedAiClusterSummary) ValidateEnumValue() (bool, error)
type DedicatedAiClusterTypeEnum
    func GetDedicatedAiClusterTypeEnumValues() []DedicatedAiClusterTypeEnum
    func GetMappingDedicatedAiClusterTypeEnum(val string) (DedicatedAiClusterTypeEnum, bool)
type DedicatedAiClusterUnitShapeEnum
    func GetDedicatedAiClusterUnitShapeEnumValues() []DedicatedAiClusterUnitShapeEnum
    func GetMappingDedicatedAiClusterUnitShapeEnum(val string) (DedicatedAiClusterUnitShapeEnum, bool)
type DeleteDedicatedAiClusterRequest
    func (request DeleteDedicatedAiClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteDedicatedAiClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteDedicatedAiClusterRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteDedicatedAiClusterRequest) String() string
    func (request DeleteDedicatedAiClusterRequest) ValidateEnumValue() (bool, error)
type DeleteDedicatedAiClusterResponse
    func (response DeleteDedicatedAiClusterResponse) HTTPResponse() *http.Response
    func (response DeleteDedicatedAiClusterResponse) String() string
type DeleteEndpointRequest
    func (request DeleteEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteEndpointRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteEndpointRequest) String() string
    func (request DeleteEndpointRequest) ValidateEnumValue() (bool, error)
type DeleteEndpointResponse
    func (response DeleteEndpointResponse) HTTPResponse() *http.Response
    func (response DeleteEndpointResponse) String() string
type DeleteModelRequest
    func (request DeleteModelRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request DeleteModelRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request DeleteModelRequest) RetryPolicy() *common.RetryPolicy
    func (request DeleteModelRequest) String() string
    func (request DeleteModelRequest) ValidateEnumValue() (bool, error)
type DeleteModelResponse
    func (response DeleteModelResponse) HTTPResponse() *http.Response
    func (response DeleteModelResponse) String() string
type Endpoint
    func (m Endpoint) String() string
    func (m Endpoint) ValidateEnumValue() (bool, error)
type EndpointCollection
    func (m EndpointCollection) String() string
    func (m EndpointCollection) ValidateEnumValue() (bool, error)
type EndpointLifecycleStateEnum
    func GetEndpointLifecycleStateEnumValues() []EndpointLifecycleStateEnum
    func GetMappingEndpointLifecycleStateEnum(val string) (EndpointLifecycleStateEnum, bool)
type EndpointSummary
    func (m EndpointSummary) String() string
    func (m EndpointSummary) ValidateEnumValue() (bool, error)
type FineTuneDetails
    func (m FineTuneDetails) String() string
    func (m *FineTuneDetails) UnmarshalJSON(data []byte) (e error)
    func (m FineTuneDetails) ValidateEnumValue() (bool, error)
type GenerativeAiClient
    func NewGenerativeAiClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client GenerativeAiClient, err error)
    func NewGenerativeAiClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client GenerativeAiClient, err error)
    func (client GenerativeAiClient) ChangeDedicatedAiClusterCompartment(ctx context.Context, request ChangeDedicatedAiClusterCompartmentRequest) (response ChangeDedicatedAiClusterCompartmentResponse, err error)
    func (client GenerativeAiClient) ChangeEndpointCompartment(ctx context.Context, request ChangeEndpointCompartmentRequest) (response ChangeEndpointCompartmentResponse, err error)
    func (client GenerativeAiClient) ChangeModelCompartment(ctx context.Context, request ChangeModelCompartmentRequest) (response ChangeModelCompartmentResponse, err error)
    func (client *GenerativeAiClient) ConfigurationProvider() *common.ConfigurationProvider
    func (client GenerativeAiClient) CreateDedicatedAiCluster(ctx context.Context, request CreateDedicatedAiClusterRequest) (response CreateDedicatedAiClusterResponse, err error)
    func (client GenerativeAiClient) CreateEndpoint(ctx context.Context, request CreateEndpointRequest) (response CreateEndpointResponse, err error)
    func (client GenerativeAiClient) CreateModel(ctx context.Context, request CreateModelRequest) (response CreateModelResponse, err error)
    func (client GenerativeAiClient) DeleteDedicatedAiCluster(ctx context.Context, request DeleteDedicatedAiClusterRequest) (response DeleteDedicatedAiClusterResponse, err error)
    func (client GenerativeAiClient) DeleteEndpoint(ctx context.Context, request DeleteEndpointRequest) (response DeleteEndpointResponse, err error)
    func (client GenerativeAiClient) DeleteModel(ctx context.Context, request DeleteModelRequest) (response DeleteModelResponse, err error)
    func (client GenerativeAiClient) GetDedicatedAiCluster(ctx context.Context, request GetDedicatedAiClusterRequest) (response GetDedicatedAiClusterResponse, err error)
    func (client GenerativeAiClient) GetEndpoint(ctx context.Context, request GetEndpointRequest) (response GetEndpointResponse, err error)
    func (client GenerativeAiClient) GetModel(ctx context.Context, request GetModelRequest) (response GetModelResponse, err error)
    func (client GenerativeAiClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
    func (client GenerativeAiClient) ListDedicatedAiClusters(ctx context.Context, request ListDedicatedAiClustersRequest) (response ListDedicatedAiClustersResponse, err error)
    func (client GenerativeAiClient) ListEndpoints(ctx context.Context, request ListEndpointsRequest) (response ListEndpointsResponse, err error)
    func (client GenerativeAiClient) ListModels(ctx context.Context, request ListModelsRequest) (response ListModelsResponse, err error)
    func (client GenerativeAiClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
    func (client GenerativeAiClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
    func (client GenerativeAiClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
    func (client *GenerativeAiClient) SetRegion(region string)
    func (client GenerativeAiClient) UpdateDedicatedAiCluster(ctx context.Context, request UpdateDedicatedAiClusterRequest) (response UpdateDedicatedAiClusterResponse, err error)
    func (client GenerativeAiClient) UpdateEndpoint(ctx context.Context, request UpdateEndpointRequest) (response UpdateEndpointResponse, err error)
    func (client GenerativeAiClient) UpdateModel(ctx context.Context, request UpdateModelRequest) (response UpdateModelResponse, err error)
type GetDedicatedAiClusterRequest
    func (request GetDedicatedAiClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetDedicatedAiClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetDedicatedAiClusterRequest) RetryPolicy() *common.RetryPolicy
    func (request GetDedicatedAiClusterRequest) String() string
    func (request GetDedicatedAiClusterRequest) ValidateEnumValue() (bool, error)
type GetDedicatedAiClusterResponse
    func (response GetDedicatedAiClusterResponse) HTTPResponse() *http.Response
    func (response GetDedicatedAiClusterResponse) String() string
type GetEndpointRequest
    func (request GetEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetEndpointRequest) RetryPolicy() *common.RetryPolicy
    func (request GetEndpointRequest) String() string
    func (request GetEndpointRequest) ValidateEnumValue() (bool, error)
type GetEndpointResponse
    func (response GetEndpointResponse) HTTPResponse() *http.Response
    func (response GetEndpointResponse) String() string
type GetModelRequest
    func (request GetModelRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetModelRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetModelRequest) RetryPolicy() *common.RetryPolicy
    func (request GetModelRequest) String() string
    func (request GetModelRequest) ValidateEnumValue() (bool, error)
type GetModelResponse
    func (response GetModelResponse) HTTPResponse() *http.Response
    func (response GetModelResponse) String() string
type GetWorkRequestRequest
    func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
    func (request GetWorkRequestRequest) String() string
    func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)
type GetWorkRequestResponse
    func (response GetWorkRequestResponse) HTTPResponse() *http.Response
    func (response GetWorkRequestResponse) String() string
type ListDedicatedAiClustersRequest
    func (request ListDedicatedAiClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListDedicatedAiClustersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListDedicatedAiClustersRequest) RetryPolicy() *common.RetryPolicy
    func (request ListDedicatedAiClustersRequest) String() string
    func (request ListDedicatedAiClustersRequest) ValidateEnumValue() (bool, error)
type ListDedicatedAiClustersResponse
    func (response ListDedicatedAiClustersResponse) HTTPResponse() *http.Response
    func (response ListDedicatedAiClustersResponse) String() string
type ListDedicatedAiClustersSortByEnum
    func GetListDedicatedAiClustersSortByEnumValues() []ListDedicatedAiClustersSortByEnum
    func GetMappingListDedicatedAiClustersSortByEnum(val string) (ListDedicatedAiClustersSortByEnum, bool)
type ListDedicatedAiClustersSortOrderEnum
    func GetListDedicatedAiClustersSortOrderEnumValues() []ListDedicatedAiClustersSortOrderEnum
    func GetMappingListDedicatedAiClustersSortOrderEnum(val string) (ListDedicatedAiClustersSortOrderEnum, bool)
type ListEndpointsRequest
    func (request ListEndpointsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListEndpointsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListEndpointsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListEndpointsRequest) String() string
    func (request ListEndpointsRequest) ValidateEnumValue() (bool, error)
type ListEndpointsResponse
    func (response ListEndpointsResponse) HTTPResponse() *http.Response
    func (response ListEndpointsResponse) String() string
type ListEndpointsSortByEnum
    func GetListEndpointsSortByEnumValues() []ListEndpointsSortByEnum
    func GetMappingListEndpointsSortByEnum(val string) (ListEndpointsSortByEnum, bool)
type ListEndpointsSortOrderEnum
    func GetListEndpointsSortOrderEnumValues() []ListEndpointsSortOrderEnum
    func GetMappingListEndpointsSortOrderEnum(val string) (ListEndpointsSortOrderEnum, bool)
type ListModelsRequest
    func (request ListModelsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListModelsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListModelsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListModelsRequest) String() string
    func (request ListModelsRequest) ValidateEnumValue() (bool, error)
type ListModelsResponse
    func (response ListModelsResponse) HTTPResponse() *http.Response
    func (response ListModelsResponse) String() string
type ListModelsSortByEnum
    func GetListModelsSortByEnumValues() []ListModelsSortByEnum
    func GetMappingListModelsSortByEnum(val string) (ListModelsSortByEnum, bool)
type ListModelsSortOrderEnum
    func GetListModelsSortOrderEnumValues() []ListModelsSortOrderEnum
    func GetMappingListModelsSortOrderEnum(val string) (ListModelsSortOrderEnum, bool)
type ListWorkRequestErrorsRequest
    func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestErrorsRequest) String() string
    func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error)
type ListWorkRequestErrorsResponse
    func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestErrorsResponse) String() string
type ListWorkRequestErrorsSortByEnum
    func GetListWorkRequestErrorsSortByEnumValues() []ListWorkRequestErrorsSortByEnum
    func GetMappingListWorkRequestErrorsSortByEnum(val string) (ListWorkRequestErrorsSortByEnum, bool)
type ListWorkRequestErrorsSortOrderEnum
    func GetListWorkRequestErrorsSortOrderEnumValues() []ListWorkRequestErrorsSortOrderEnum
    func GetMappingListWorkRequestErrorsSortOrderEnum(val string) (ListWorkRequestErrorsSortOrderEnum, bool)
type ListWorkRequestLogsRequest
    func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestLogsRequest) String() string
    func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error)
type ListWorkRequestLogsResponse
    func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestLogsResponse) String() string
type ListWorkRequestLogsSortByEnum
    func GetListWorkRequestLogsSortByEnumValues() []ListWorkRequestLogsSortByEnum
    func GetMappingListWorkRequestLogsSortByEnum(val string) (ListWorkRequestLogsSortByEnum, bool)
type ListWorkRequestLogsSortOrderEnum
    func GetListWorkRequestLogsSortOrderEnumValues() []ListWorkRequestLogsSortOrderEnum
    func GetMappingListWorkRequestLogsSortOrderEnum(val string) (ListWorkRequestLogsSortOrderEnum, bool)
type ListWorkRequestsRequest
    func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
    func (request ListWorkRequestsRequest) String() string
    func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error)
type ListWorkRequestsResponse
    func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
    func (response ListWorkRequestsResponse) String() string
type ListWorkRequestsSortByEnum
    func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum
    func GetMappingListWorkRequestsSortByEnum(val string) (ListWorkRequestsSortByEnum, bool)
type ListWorkRequestsSortOrderEnum
    func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum
    func GetMappingListWorkRequestsSortOrderEnum(val string) (ListWorkRequestsSortOrderEnum, bool)
type ListWorkRequestsStatusEnum
    func GetListWorkRequestsStatusEnumValues() []ListWorkRequestsStatusEnum
    func GetMappingListWorkRequestsStatusEnum(val string) (ListWorkRequestsStatusEnum, bool)
type Model
    func (m Model) String() string
    func (m *Model) UnmarshalJSON(data []byte) (e error)
    func (m Model) ValidateEnumValue() (bool, error)
type ModelCapabilityEnum
    func GetMappingModelCapabilityEnum(val string) (ModelCapabilityEnum, bool)
    func GetModelCapabilityEnumValues() []ModelCapabilityEnum
type ModelCollection
    func (m ModelCollection) String() string
    func (m ModelCollection) ValidateEnumValue() (bool, error)
type ModelLifecycleStateEnum
    func GetMappingModelLifecycleStateEnum(val string) (ModelLifecycleStateEnum, bool)
    func GetModelLifecycleStateEnumValues() []ModelLifecycleStateEnum
type ModelMetrics
type ModelMetricsModelMetricsTypeEnum
    func GetMappingModelMetricsModelMetricsTypeEnum(val string) (ModelMetricsModelMetricsTypeEnum, bool)
    func GetModelMetricsModelMetricsTypeEnumValues() []ModelMetricsModelMetricsTypeEnum
type ModelSummary
    func (m ModelSummary) String() string
    func (m *ModelSummary) UnmarshalJSON(data []byte) (e error)
    func (m ModelSummary) ValidateEnumValue() (bool, error)
type ModelTypeEnum
    func GetMappingModelTypeEnum(val string) (ModelTypeEnum, bool)
    func GetModelTypeEnumValues() []ModelTypeEnum
type ObjectStorageDataset
    func (m ObjectStorageDataset) MarshalJSON() (buff []byte, e error)
    func (m ObjectStorageDataset) String() string
    func (m ObjectStorageDataset) ValidateEnumValue() (bool, error)
type OperationStatusEnum
    func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)
    func GetOperationStatusEnumValues() []OperationStatusEnum
type OperationTypeEnum
    func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)
    func GetOperationTypeEnumValues() []OperationTypeEnum
type SortOrderEnum
    func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)
    func GetSortOrderEnumValues() []SortOrderEnum
type TFewTrainingConfig
    func (m TFewTrainingConfig) GetEarlyStoppingPatience() *int
    func (m TFewTrainingConfig) GetEarlyStoppingThreshold() *float64
    func (m TFewTrainingConfig) GetLearningRate() *float64
    func (m TFewTrainingConfig) GetLogModelMetricsIntervalInSteps() *int
    func (m TFewTrainingConfig) GetTotalTrainingEpochs() *int
    func (m TFewTrainingConfig) GetTrainingBatchSize() *int
    func (m TFewTrainingConfig) MarshalJSON() (buff []byte, e error)
    func (m TFewTrainingConfig) String() string
    func (m TFewTrainingConfig) ValidateEnumValue() (bool, error)
type TextGenerationModelMetrics
    func (m TextGenerationModelMetrics) MarshalJSON() (buff []byte, e error)
    func (m TextGenerationModelMetrics) String() string
    func (m TextGenerationModelMetrics) ValidateEnumValue() (bool, error)
type TrainingConfig
type TrainingConfigTrainingConfigTypeEnum
    func GetMappingTrainingConfigTrainingConfigTypeEnum(val string) (TrainingConfigTrainingConfigTypeEnum, bool)
    func GetTrainingConfigTrainingConfigTypeEnumValues() []TrainingConfigTrainingConfigTypeEnum
type UpdateDedicatedAiClusterDetails
    func (m UpdateDedicatedAiClusterDetails) String() string
    func (m UpdateDedicatedAiClusterDetails) ValidateEnumValue() (bool, error)
type UpdateDedicatedAiClusterRequest
    func (request UpdateDedicatedAiClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateDedicatedAiClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateDedicatedAiClusterRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateDedicatedAiClusterRequest) String() string
    func (request UpdateDedicatedAiClusterRequest) ValidateEnumValue() (bool, error)
type UpdateDedicatedAiClusterResponse
    func (response UpdateDedicatedAiClusterResponse) HTTPResponse() *http.Response
    func (response UpdateDedicatedAiClusterResponse) String() string
type UpdateEndpointDetails
    func (m UpdateEndpointDetails) String() string
    func (m UpdateEndpointDetails) ValidateEnumValue() (bool, error)
type UpdateEndpointRequest
    func (request UpdateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateEndpointRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateEndpointRequest) String() string
    func (request UpdateEndpointRequest) ValidateEnumValue() (bool, error)
type UpdateEndpointResponse
    func (response UpdateEndpointResponse) HTTPResponse() *http.Response
    func (response UpdateEndpointResponse) String() string
type UpdateModelDetails
    func (m UpdateModelDetails) String() string
    func (m UpdateModelDetails) ValidateEnumValue() (bool, error)
type UpdateModelRequest
    func (request UpdateModelRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
    func (request UpdateModelRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
    func (request UpdateModelRequest) RetryPolicy() *common.RetryPolicy
    func (request UpdateModelRequest) String() string
    func (request UpdateModelRequest) ValidateEnumValue() (bool, error)
type UpdateModelResponse
    func (response UpdateModelResponse) HTTPResponse() *http.Response
    func (response UpdateModelResponse) String() string
type VanillaTrainingConfig
    func (m VanillaTrainingConfig) GetEarlyStoppingPatience() *int
    func (m VanillaTrainingConfig) GetEarlyStoppingThreshold() *float64
    func (m VanillaTrainingConfig) GetLearningRate() *float64
    func (m VanillaTrainingConfig) GetLogModelMetricsIntervalInSteps() *int
    func (m VanillaTrainingConfig) GetTotalTrainingEpochs() *int
    func (m VanillaTrainingConfig) GetTrainingBatchSize() *int
    func (m VanillaTrainingConfig) MarshalJSON() (buff []byte, e error)
    func (m VanillaTrainingConfig) String() string
    func (m VanillaTrainingConfig) ValidateEnumValue() (bool, error)
type WorkRequest
    func (m WorkRequest) String() string
    func (m WorkRequest) ValidateEnumValue() (bool, error)
type WorkRequestError
    func (m WorkRequestError) String() string
    func (m WorkRequestError) ValidateEnumValue() (bool, error)
type WorkRequestErrorCollection
    func (m WorkRequestErrorCollection) String() string
    func (m WorkRequestErrorCollection) ValidateEnumValue() (bool, error)
type WorkRequestLogEntry
    func (m WorkRequestLogEntry) String() string
    func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error)
type WorkRequestLogEntryCollection
    func (m WorkRequestLogEntryCollection) String() string
    func (m WorkRequestLogEntryCollection) ValidateEnumValue() (bool, error)
type WorkRequestResource
    func (m WorkRequestResource) String() string
    func (m WorkRequestResource) ValidateEnumValue() (bool, error)
type WorkRequestResourceMetadataKeyEnum
    func GetMappingWorkRequestResourceMetadataKeyEnum(val string) (WorkRequestResourceMetadataKeyEnum, bool)
    func GetWorkRequestResourceMetadataKeyEnumValues() []WorkRequestResourceMetadataKeyEnum
type WorkRequestSummary
    func (m WorkRequestSummary) String() string
    func (m WorkRequestSummary) ValidateEnumValue() (bool, error)
type WorkRequestSummaryCollection
    func (m WorkRequestSummaryCollection) String() string
    func (m WorkRequestSummaryCollection) ValidateEnumValue() (bool, error)

Package files

action_type.go change_dedicated_ai_cluster_compartment_details.go change_dedicated_ai_cluster_compartment_request_response.go change_endpoint_compartment_details.go change_endpoint_compartment_request_response.go change_model_compartment_details.go change_model_compartment_request_response.go content_moderation_config.go create_dedicated_ai_cluster_details.go create_dedicated_ai_cluster_request_response.go create_endpoint_details.go create_endpoint_request_response.go create_model_details.go create_model_request_response.go dataset.go dedicated_ai_cluster.go dedicated_ai_cluster_capacity.go dedicated_ai_cluster_collection.go dedicated_ai_cluster_hosting_capacity.go dedicated_ai_cluster_summary.go delete_dedicated_ai_cluster_request_response.go delete_endpoint_request_response.go delete_model_request_response.go endpoint.go endpoint_collection.go endpoint_summary.go fine_tune_details.go generativeai_client.go get_dedicated_ai_cluster_request_response.go get_endpoint_request_response.go get_model_request_response.go get_work_request_request_response.go list_dedicated_ai_clusters_request_response.go list_endpoints_request_response.go list_models_request_response.go list_work_request_errors_request_response.go list_work_request_logs_request_response.go list_work_requests_request_response.go model.go model_capability.go model_collection.go model_metrics.go model_summary.go object_storage_dataset.go operation_status.go operation_type.go sort_order.go t_few_training_config.go text_generation_model_metrics.go training_config.go update_dedicated_ai_cluster_details.go update_dedicated_ai_cluster_request_response.go update_endpoint_details.go update_endpoint_request_response.go update_model_details.go update_model_request_response.go vanilla_training_config.go work_request.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 work_request_resource_metadata_key.go work_request_summary.go work_request_summary_collection.go

func GetActionTypeEnumStringValues

func GetActionTypeEnumStringValues() []string

GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum

func GetDatasetDatasetTypeEnumStringValues

func GetDatasetDatasetTypeEnumStringValues() []string

GetDatasetDatasetTypeEnumStringValues Enumerates the set of values in String for DatasetDatasetTypeEnum

func GetDedicatedAiClusterCapacityCapacityTypeEnumStringValues

func GetDedicatedAiClusterCapacityCapacityTypeEnumStringValues() []string

GetDedicatedAiClusterCapacityCapacityTypeEnumStringValues Enumerates the set of values in String for DedicatedAiClusterCapacityCapacityTypeEnum

func GetDedicatedAiClusterLifecycleStateEnumStringValues

func GetDedicatedAiClusterLifecycleStateEnumStringValues() []string

GetDedicatedAiClusterLifecycleStateEnumStringValues Enumerates the set of values in String for DedicatedAiClusterLifecycleStateEnum

func GetDedicatedAiClusterTypeEnumStringValues

func GetDedicatedAiClusterTypeEnumStringValues() []string

GetDedicatedAiClusterTypeEnumStringValues Enumerates the set of values in String for DedicatedAiClusterTypeEnum

func GetDedicatedAiClusterUnitShapeEnumStringValues

func GetDedicatedAiClusterUnitShapeEnumStringValues() []string

GetDedicatedAiClusterUnitShapeEnumStringValues Enumerates the set of values in String for DedicatedAiClusterUnitShapeEnum

func GetEndpointLifecycleStateEnumStringValues

func GetEndpointLifecycleStateEnumStringValues() []string

GetEndpointLifecycleStateEnumStringValues Enumerates the set of values in String for EndpointLifecycleStateEnum

func GetListDedicatedAiClustersSortByEnumStringValues

func GetListDedicatedAiClustersSortByEnumStringValues() []string

GetListDedicatedAiClustersSortByEnumStringValues Enumerates the set of values in String for ListDedicatedAiClustersSortByEnum

func GetListDedicatedAiClustersSortOrderEnumStringValues

func GetListDedicatedAiClustersSortOrderEnumStringValues() []string

GetListDedicatedAiClustersSortOrderEnumStringValues Enumerates the set of values in String for ListDedicatedAiClustersSortOrderEnum

func GetListEndpointsSortByEnumStringValues

func GetListEndpointsSortByEnumStringValues() []string

GetListEndpointsSortByEnumStringValues Enumerates the set of values in String for ListEndpointsSortByEnum

func GetListEndpointsSortOrderEnumStringValues

func GetListEndpointsSortOrderEnumStringValues() []string

GetListEndpointsSortOrderEnumStringValues Enumerates the set of values in String for ListEndpointsSortOrderEnum

func GetListModelsSortByEnumStringValues

func GetListModelsSortByEnumStringValues() []string

GetListModelsSortByEnumStringValues Enumerates the set of values in String for ListModelsSortByEnum

func GetListModelsSortOrderEnumStringValues

func GetListModelsSortOrderEnumStringValues() []string

GetListModelsSortOrderEnumStringValues Enumerates the set of values in String for ListModelsSortOrderEnum

func GetListWorkRequestErrorsSortByEnumStringValues

func GetListWorkRequestErrorsSortByEnumStringValues() []string

GetListWorkRequestErrorsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortByEnum

func GetListWorkRequestErrorsSortOrderEnumStringValues

func GetListWorkRequestErrorsSortOrderEnumStringValues() []string

GetListWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortOrderEnum

func GetListWorkRequestLogsSortByEnumStringValues

func GetListWorkRequestLogsSortByEnumStringValues() []string

GetListWorkRequestLogsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortByEnum

func GetListWorkRequestLogsSortOrderEnumStringValues

func GetListWorkRequestLogsSortOrderEnumStringValues() []string

GetListWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortOrderEnum

func GetListWorkRequestsSortByEnumStringValues

func GetListWorkRequestsSortByEnumStringValues() []string

GetListWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortByEnum

func GetListWorkRequestsSortOrderEnumStringValues

func GetListWorkRequestsSortOrderEnumStringValues() []string

GetListWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortOrderEnum

func GetListWorkRequestsStatusEnumStringValues

func GetListWorkRequestsStatusEnumStringValues() []string

GetListWorkRequestsStatusEnumStringValues Enumerates the set of values in String for ListWorkRequestsStatusEnum

func GetModelCapabilityEnumStringValues

func GetModelCapabilityEnumStringValues() []string

GetModelCapabilityEnumStringValues Enumerates the set of values in String for ModelCapabilityEnum

func GetModelLifecycleStateEnumStringValues

func GetModelLifecycleStateEnumStringValues() []string

GetModelLifecycleStateEnumStringValues Enumerates the set of values in String for ModelLifecycleStateEnum

func GetModelMetricsModelMetricsTypeEnumStringValues

func GetModelMetricsModelMetricsTypeEnumStringValues() []string

GetModelMetricsModelMetricsTypeEnumStringValues Enumerates the set of values in String for ModelMetricsModelMetricsTypeEnum

func GetModelTypeEnumStringValues

func GetModelTypeEnumStringValues() []string

GetModelTypeEnumStringValues Enumerates the set of values in String for ModelTypeEnum

func GetOperationStatusEnumStringValues

func GetOperationStatusEnumStringValues() []string

GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum

func GetOperationTypeEnumStringValues

func GetOperationTypeEnumStringValues() []string

GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum

func GetSortOrderEnumStringValues

func GetSortOrderEnumStringValues() []string

GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum

func GetTrainingConfigTrainingConfigTypeEnumStringValues

func GetTrainingConfigTrainingConfigTypeEnumStringValues() []string

GetTrainingConfigTrainingConfigTypeEnumStringValues Enumerates the set of values in String for TrainingConfigTrainingConfigTypeEnum

func GetWorkRequestResourceMetadataKeyEnumStringValues

func GetWorkRequestResourceMetadataKeyEnumStringValues() []string

GetWorkRequestResourceMetadataKeyEnumStringValues Enumerates the set of values in String for WorkRequestResourceMetadataKeyEnum

type ActionTypeEnum

ActionTypeEnum Enum with underlying type: string

type ActionTypeEnum string

Set of constants representing the allowable values for ActionTypeEnum

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

func GetActionTypeEnumValues

func GetActionTypeEnumValues() []ActionTypeEnum

GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum

func GetMappingActionTypeEnum

func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool)

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

type ChangeDedicatedAiClusterCompartmentDetails

ChangeDedicatedAiClusterCompartmentDetails The details to move a dedicated AI cluster to another compartment.

type ChangeDedicatedAiClusterCompartmentDetails struct {

    // The OCID of the compartment to move the dedicated AI cluster to.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`
}

func (ChangeDedicatedAiClusterCompartmentDetails) String

func (m ChangeDedicatedAiClusterCompartmentDetails) String() string

func (ChangeDedicatedAiClusterCompartmentDetails) ValidateEnumValue

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

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

type ChangeDedicatedAiClusterCompartmentRequest

ChangeDedicatedAiClusterCompartmentRequest wrapper for the ChangeDedicatedAiClusterCompartment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/ChangeDedicatedAiClusterCompartment.go.html to see an example of how to use ChangeDedicatedAiClusterCompartmentRequest.

type ChangeDedicatedAiClusterCompartmentRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster.
    DedicatedAiClusterId *string `mandatory:"true" contributesTo:"path" name:"dedicatedAiClusterId"`

    // The information to be updated.
    ChangeDedicatedAiClusterCompartmentDetails `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 running 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 removed from the system, then a retry of the original creation request
    // might 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 (ChangeDedicatedAiClusterCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeDedicatedAiClusterCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeDedicatedAiClusterCompartmentRequest) RetryPolicy

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

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

func (ChangeDedicatedAiClusterCompartmentRequest) String

func (request ChangeDedicatedAiClusterCompartmentRequest) String() string

func (ChangeDedicatedAiClusterCompartmentRequest) ValidateEnumValue

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

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

type ChangeDedicatedAiClusterCompartmentResponse

ChangeDedicatedAiClusterCompartmentResponse wrapper for the ChangeDedicatedAiClusterCompartment operation

type ChangeDedicatedAiClusterCompartmentResponse 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 (ChangeDedicatedAiClusterCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeDedicatedAiClusterCompartmentResponse) String

func (response ChangeDedicatedAiClusterCompartmentResponse) String() string

type ChangeEndpointCompartmentDetails

ChangeEndpointCompartmentDetails The details to move an endpoint to another compartment.

type ChangeEndpointCompartmentDetails struct {

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

func (ChangeEndpointCompartmentDetails) String

func (m ChangeEndpointCompartmentDetails) String() string

func (ChangeEndpointCompartmentDetails) ValidateEnumValue

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

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

type ChangeEndpointCompartmentRequest

ChangeEndpointCompartmentRequest wrapper for the ChangeEndpointCompartment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/ChangeEndpointCompartment.go.html to see an example of how to use ChangeEndpointCompartmentRequest.

type ChangeEndpointCompartmentRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
    EndpointId *string `mandatory:"true" contributesTo:"path" name:"endpointId"`

    // The endpoint information to be updated.
    ChangeEndpointCompartmentDetails `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 running 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 removed from the system, then a retry of the original creation request
    // might 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 (ChangeEndpointCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeEndpointCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeEndpointCompartmentRequest) RetryPolicy

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

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

func (ChangeEndpointCompartmentRequest) String

func (request ChangeEndpointCompartmentRequest) String() string

func (ChangeEndpointCompartmentRequest) ValidateEnumValue

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

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

type ChangeEndpointCompartmentResponse

ChangeEndpointCompartmentResponse wrapper for the ChangeEndpointCompartment operation

type ChangeEndpointCompartmentResponse 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 (ChangeEndpointCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeEndpointCompartmentResponse) String

func (response ChangeEndpointCompartmentResponse) String() string

type ChangeModelCompartmentDetails

ChangeModelCompartmentDetails The details to move a custom model to another compartment.

type ChangeModelCompartmentDetails struct {

    // The compartment OCID to create the model in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`
}

func (ChangeModelCompartmentDetails) String

func (m ChangeModelCompartmentDetails) String() string

func (ChangeModelCompartmentDetails) ValidateEnumValue

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

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

type ChangeModelCompartmentRequest

ChangeModelCompartmentRequest wrapper for the ChangeModelCompartment operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/ChangeModelCompartment.go.html to see an example of how to use ChangeModelCompartmentRequest.

type ChangeModelCompartmentRequest struct {

    // The model OCID
    ModelId *string `mandatory:"true" contributesTo:"path" name:"modelId"`

    // The information to be updated.
    ChangeModelCompartmentDetails `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 running 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 removed from the system, then a retry of the original creation request
    // might 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 (ChangeModelCompartmentRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ChangeModelCompartmentRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ChangeModelCompartmentRequest) RetryPolicy

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

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

func (ChangeModelCompartmentRequest) String

func (request ChangeModelCompartmentRequest) String() string

func (ChangeModelCompartmentRequest) ValidateEnumValue

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

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

type ChangeModelCompartmentResponse

ChangeModelCompartmentResponse wrapper for the ChangeModelCompartment operation

type ChangeModelCompartmentResponse 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 (ChangeModelCompartmentResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ChangeModelCompartmentResponse) String

func (response ChangeModelCompartmentResponse) String() string

type ContentModerationConfig

ContentModerationConfig The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses. It's recommended to use content moderation.

type ContentModerationConfig struct {

    // Whether to enable the content moderation feature.
    IsEnabled *bool `mandatory:"true" json:"isEnabled"`
}

func (ContentModerationConfig) String

func (m ContentModerationConfig) String() string

func (ContentModerationConfig) ValidateEnumValue

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

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

type CreateDedicatedAiClusterDetails

CreateDedicatedAiClusterDetails The data to create a dedicated AI cluster.

type CreateDedicatedAiClusterDetails struct {

    // The dedicated AI cluster type indicating whether this is a fine-tuning/training processor or hosting/inference processor.
    // Allowed values are:
    // - HOSTING
    // - FINE_TUNING
    Type DedicatedAiClusterTypeEnum `mandatory:"true" json:"type"`

    // The compartment OCID to create the dedicated AI cluster in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The number of dedicated units in this AI cluster.
    UnitCount *int `mandatory:"true" json:"unitCount"`

    // The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
    // Allowed values are:
    // - LARGE_COHERE
    // - SMALL_COHERE
    // - EMBED_COHERE
    // - LLAMA2_70
    UnitShape DedicatedAiClusterUnitShapeEnum `mandatory:"true" json:"unitShape"`

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the dedicated AI cluster.
    Description *string `mandatory:"false" json:"description"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateDedicatedAiClusterDetails) String

func (m CreateDedicatedAiClusterDetails) String() string

func (CreateDedicatedAiClusterDetails) ValidateEnumValue

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

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

type CreateDedicatedAiClusterRequest

CreateDedicatedAiClusterRequest wrapper for the CreateDedicatedAiCluster operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/CreateDedicatedAiCluster.go.html to see an example of how to use CreateDedicatedAiClusterRequest.

type CreateDedicatedAiClusterRequest struct {

    // Details for the new dedicated AI cluster.
    CreateDedicatedAiClusterDetails `contributesTo:"body"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of running 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 removed from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (CreateDedicatedAiClusterRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateDedicatedAiClusterRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateDedicatedAiClusterRequest) RetryPolicy

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

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

func (CreateDedicatedAiClusterRequest) String

func (request CreateDedicatedAiClusterRequest) String() string

func (CreateDedicatedAiClusterRequest) ValidateEnumValue

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

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

type CreateDedicatedAiClusterResponse

CreateDedicatedAiClusterResponse wrapper for the CreateDedicatedAiCluster operation

type CreateDedicatedAiClusterResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (CreateDedicatedAiClusterResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateDedicatedAiClusterResponse) String

func (response CreateDedicatedAiClusterResponse) String() string

type CreateEndpointDetails

CreateEndpointDetails The data to create an endpoint.

type CreateEndpointDetails struct {

    // The compartment OCID to create the endpoint in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The ID of the model that's used to create this endpoint.
    ModelId *string `mandatory:"true" json:"modelId"`

    // The OCID of the dedicated AI cluster on which a model will be deployed to.
    DedicatedAiClusterId *string `mandatory:"true" json:"dedicatedAiClusterId"`

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the endpoint.
    Description *string `mandatory:"false" json:"description"`

    ContentModerationConfig *ContentModerationConfig `mandatory:"false" json:"contentModerationConfig"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateEndpointDetails) String

func (m CreateEndpointDetails) String() string

func (CreateEndpointDetails) ValidateEnumValue

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

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

type CreateEndpointRequest

CreateEndpointRequest wrapper for the CreateEndpoint operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/CreateEndpoint.go.html to see an example of how to use CreateEndpointRequest.

type CreateEndpointRequest struct {

    // Details for the new endpoint.
    CreateEndpointDetails `contributesTo:"body"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of running 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 removed from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (CreateEndpointRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateEndpointRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateEndpointRequest) RetryPolicy

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

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

func (CreateEndpointRequest) String

func (request CreateEndpointRequest) String() string

func (CreateEndpointRequest) ValidateEnumValue

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

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

type CreateEndpointResponse

CreateEndpointResponse wrapper for the CreateEndpoint operation

type CreateEndpointResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (CreateEndpointResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateEndpointResponse) String

func (response CreateEndpointResponse) String() string

type CreateModelDetails

CreateModelDetails The data to create a custom model.

type CreateModelDetails struct {

    // The compartment OCID for fine-tuned models. For pretrained models, this value is null.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The OCID of the base model that's used for fine-tuning.
    BaseModelId *string `mandatory:"true" json:"baseModelId"`

    FineTuneDetails *FineTuneDetails `mandatory:"true" json:"fineTuneDetails"`

    // A user-friendly name.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The provider of the model.
    Vendor *string `mandatory:"false" json:"vendor"`

    // The version of the model.
    Version *string `mandatory:"false" json:"version"`

    // An optional description of the model.
    Description *string `mandatory:"false" json:"description"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (CreateModelDetails) String

func (m CreateModelDetails) String() string

func (CreateModelDetails) ValidateEnumValue

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

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

type CreateModelRequest

CreateModelRequest wrapper for the CreateModel operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/CreateModel.go.html to see an example of how to use CreateModelRequest.

type CreateModelRequest struct {

    // Details for the new model.
    CreateModelDetails `contributesTo:"body"`

    // A token that uniquely identifies a request so it can be retried in case of a timeout or
    // server error without risk of running 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 removed from the system, then a retry of the original creation request
    // might be rejected.
    OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (CreateModelRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (CreateModelRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (CreateModelRequest) RetryPolicy

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

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

func (CreateModelRequest) String

func (request CreateModelRequest) String() string

func (CreateModelRequest) ValidateEnumValue

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

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

type CreateModelResponse

CreateModelResponse wrapper for the CreateModel operation

type CreateModelResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (CreateModelResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (CreateModelResponse) String

func (response CreateModelResponse) String() string

type Dataset

Dataset The dataset used to fine-tune the model. Only one dataset is allowed per custom model, which is split 80-20 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format:

`{"prompt": "<first prompt>", "completion": "<expected completion given first prompt>"}`

type Dataset interface {
}

type DatasetDatasetTypeEnum

DatasetDatasetTypeEnum Enum with underlying type: string

type DatasetDatasetTypeEnum string

Set of constants representing the allowable values for DatasetDatasetTypeEnum

const (
    DatasetDatasetTypeObjectStorage DatasetDatasetTypeEnum = "OBJECT_STORAGE"
)

func GetDatasetDatasetTypeEnumValues

func GetDatasetDatasetTypeEnumValues() []DatasetDatasetTypeEnum

GetDatasetDatasetTypeEnumValues Enumerates the set of values for DatasetDatasetTypeEnum

func GetMappingDatasetDatasetTypeEnum

func GetMappingDatasetDatasetTypeEnum(val string) (DatasetDatasetTypeEnum, bool)

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

type DedicatedAiCluster

DedicatedAiCluster Dedicated AI clusters are compute resources that you can use for fine-tuning custom models or for hosting endpoints for custom models. The clusters are dedicated to your models and not shared with users in other tenancies. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) and Getting Access to Generative AI Resouces (https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm).

type DedicatedAiCluster struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster.
    Id *string `mandatory:"true" json:"id"`

    // The dedicated AI cluster type indicating whether this is a fine-tuning/training processor or hosting/inference processor.
    Type DedicatedAiClusterTypeEnum `mandatory:"true" json:"type"`

    // The compartment OCID to create the dedicated AI cluster in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The date and time the dedicated AI cluster was created, in the format defined by RFC 3339
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the dedicated AI cluster.
    LifecycleState DedicatedAiClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The number of dedicated units in this AI cluster.
    UnitCount *int `mandatory:"true" json:"unitCount"`

    // The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
    UnitShape DedicatedAiClusterUnitShapeEnum `mandatory:"true" json:"unitShape"`

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the dedicated AI cluster.
    Description *string `mandatory:"false" json:"description"`

    // The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // A message describing the current state with detail that can provide actionable information.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    Capacity DedicatedAiClusterCapacity `mandatory:"false" json:"capacity"`

    PreviousState *DedicatedAiCluster `mandatory:"false" json:"previousState"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

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

func (DedicatedAiCluster) String

func (m DedicatedAiCluster) String() string

func (*DedicatedAiCluster) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (DedicatedAiCluster) ValidateEnumValue

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

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

type DedicatedAiClusterCapacity

DedicatedAiClusterCapacity The total capacity for a dedicated AI cluster.

type DedicatedAiClusterCapacity interface {
}

type DedicatedAiClusterCapacityCapacityTypeEnum

DedicatedAiClusterCapacityCapacityTypeEnum Enum with underlying type: string

type DedicatedAiClusterCapacityCapacityTypeEnum string

Set of constants representing the allowable values for DedicatedAiClusterCapacityCapacityTypeEnum

const (
    DedicatedAiClusterCapacityCapacityTypeHostingCapacity DedicatedAiClusterCapacityCapacityTypeEnum = "HOSTING_CAPACITY"
)

func GetDedicatedAiClusterCapacityCapacityTypeEnumValues

func GetDedicatedAiClusterCapacityCapacityTypeEnumValues() []DedicatedAiClusterCapacityCapacityTypeEnum

GetDedicatedAiClusterCapacityCapacityTypeEnumValues Enumerates the set of values for DedicatedAiClusterCapacityCapacityTypeEnum

func GetMappingDedicatedAiClusterCapacityCapacityTypeEnum

func GetMappingDedicatedAiClusterCapacityCapacityTypeEnum(val string) (DedicatedAiClusterCapacityCapacityTypeEnum, bool)

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

type DedicatedAiClusterCollection

DedicatedAiClusterCollection Results of a dedicate AI cluster search. Contains DedicatedAiClusterSummary items and other information such as metadata.

type DedicatedAiClusterCollection struct {

    // List of dedicated AI clusters.
    Items []DedicatedAiClusterSummary `mandatory:"true" json:"items"`
}

func (DedicatedAiClusterCollection) String

func (m DedicatedAiClusterCollection) String() string

func (DedicatedAiClusterCollection) ValidateEnumValue

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

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

type DedicatedAiClusterHostingCapacity

DedicatedAiClusterHostingCapacity The capacity of a hosting type dedicated AI cluster.

type DedicatedAiClusterHostingCapacity struct {

    // The total number of endpoints that can be hosted on this dedicated AI cluster.
    TotalEndpointCapacity *int `mandatory:"false" json:"totalEndpointCapacity"`

    // The number of endpoints hosted on this dedicated AI cluster.
    UsedEndpointCapacity *int `mandatory:"false" json:"usedEndpointCapacity"`
}

func (DedicatedAiClusterHostingCapacity) MarshalJSON

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

MarshalJSON marshals to json representation

func (DedicatedAiClusterHostingCapacity) String

func (m DedicatedAiClusterHostingCapacity) String() string

func (DedicatedAiClusterHostingCapacity) ValidateEnumValue

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

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

type DedicatedAiClusterLifecycleStateEnum

DedicatedAiClusterLifecycleStateEnum Enum with underlying type: string

type DedicatedAiClusterLifecycleStateEnum string

Set of constants representing the allowable values for DedicatedAiClusterLifecycleStateEnum

const (
    DedicatedAiClusterLifecycleStateCreating       DedicatedAiClusterLifecycleStateEnum = "CREATING"
    DedicatedAiClusterLifecycleStateActive         DedicatedAiClusterLifecycleStateEnum = "ACTIVE"
    DedicatedAiClusterLifecycleStateUpdating       DedicatedAiClusterLifecycleStateEnum = "UPDATING"
    DedicatedAiClusterLifecycleStateDeleting       DedicatedAiClusterLifecycleStateEnum = "DELETING"
    DedicatedAiClusterLifecycleStateDeleted        DedicatedAiClusterLifecycleStateEnum = "DELETED"
    DedicatedAiClusterLifecycleStateFailed         DedicatedAiClusterLifecycleStateEnum = "FAILED"
    DedicatedAiClusterLifecycleStateNeedsAttention DedicatedAiClusterLifecycleStateEnum = "NEEDS_ATTENTION"
)

func GetDedicatedAiClusterLifecycleStateEnumValues

func GetDedicatedAiClusterLifecycleStateEnumValues() []DedicatedAiClusterLifecycleStateEnum

GetDedicatedAiClusterLifecycleStateEnumValues Enumerates the set of values for DedicatedAiClusterLifecycleStateEnum

func GetMappingDedicatedAiClusterLifecycleStateEnum

func GetMappingDedicatedAiClusterLifecycleStateEnum(val string) (DedicatedAiClusterLifecycleStateEnum, bool)

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

type DedicatedAiClusterSummary

DedicatedAiClusterSummary Summary information about a dedicated AI cluster.

type DedicatedAiClusterSummary struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster.
    Id *string `mandatory:"true" json:"id"`

    // The dedicated AI cluster type indicating whether this is a fine-tuning/training processor or hosting/inference processor.
    // Allowed values are:
    // - HOSTING
    // - FINE_TUNING
    Type DedicatedAiClusterTypeEnum `mandatory:"true" json:"type"`

    // The compartment OCID to create the dedicated AI cluster in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The date and time the dedicated AI cluster was created, in the format defined by RFC 3339.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the dedicated AI cluster.
    // Allowed values are:
    // - CREATING
    // - ACTIVE
    // - UPDATING
    // - DELETING
    // - DELETED
    // - FAILED
    // - NEEDS_ATTENTION
    LifecycleState DedicatedAiClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The number of dedicated units in this AI cluster.
    UnitCount *int `mandatory:"true" json:"unitCount"`

    // The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
    UnitShape DedicatedAiClusterUnitShapeEnum `mandatory:"true" json:"unitShape"`

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the dedicated AI cluster.
    Description *string `mandatory:"false" json:"description"`

    // The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // A message describing the current state of the dedicated AI cluster in more detail that can provide actionable information.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    Capacity DedicatedAiClusterCapacity `mandatory:"false" json:"capacity"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

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

func (DedicatedAiClusterSummary) String

func (m DedicatedAiClusterSummary) String() string

func (*DedicatedAiClusterSummary) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (DedicatedAiClusterSummary) ValidateEnumValue

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

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

type DedicatedAiClusterTypeEnum

DedicatedAiClusterTypeEnum Enum with underlying type: string

type DedicatedAiClusterTypeEnum string

Set of constants representing the allowable values for DedicatedAiClusterTypeEnum

const (
    DedicatedAiClusterTypeHosting    DedicatedAiClusterTypeEnum = "HOSTING"
    DedicatedAiClusterTypeFineTuning DedicatedAiClusterTypeEnum = "FINE_TUNING"
)

func GetDedicatedAiClusterTypeEnumValues

func GetDedicatedAiClusterTypeEnumValues() []DedicatedAiClusterTypeEnum

GetDedicatedAiClusterTypeEnumValues Enumerates the set of values for DedicatedAiClusterTypeEnum

func GetMappingDedicatedAiClusterTypeEnum

func GetMappingDedicatedAiClusterTypeEnum(val string) (DedicatedAiClusterTypeEnum, bool)

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

type DedicatedAiClusterUnitShapeEnum

DedicatedAiClusterUnitShapeEnum Enum with underlying type: string

type DedicatedAiClusterUnitShapeEnum string

Set of constants representing the allowable values for DedicatedAiClusterUnitShapeEnum

const (
    DedicatedAiClusterUnitShapeLargeCohere   DedicatedAiClusterUnitShapeEnum = "LARGE_COHERE"
    DedicatedAiClusterUnitShapeSmallCohere   DedicatedAiClusterUnitShapeEnum = "SMALL_COHERE"
    DedicatedAiClusterUnitShapeEmbedCohere   DedicatedAiClusterUnitShapeEnum = "EMBED_COHERE"
    DedicatedAiClusterUnitShapeLlama270      DedicatedAiClusterUnitShapeEnum = "LLAMA2_70"
    DedicatedAiClusterUnitShapeLargeCohereV2 DedicatedAiClusterUnitShapeEnum = "LARGE_COHERE_V2"
)

func GetDedicatedAiClusterUnitShapeEnumValues

func GetDedicatedAiClusterUnitShapeEnumValues() []DedicatedAiClusterUnitShapeEnum

GetDedicatedAiClusterUnitShapeEnumValues Enumerates the set of values for DedicatedAiClusterUnitShapeEnum

func GetMappingDedicatedAiClusterUnitShapeEnum

func GetMappingDedicatedAiClusterUnitShapeEnum(val string) (DedicatedAiClusterUnitShapeEnum, bool)

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

type DeleteDedicatedAiClusterRequest

DeleteDedicatedAiClusterRequest wrapper for the DeleteDedicatedAiCluster operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/DeleteDedicatedAiCluster.go.html to see an example of how to use DeleteDedicatedAiClusterRequest.

type DeleteDedicatedAiClusterRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster.
    DedicatedAiClusterId *string `mandatory:"true" contributesTo:"path" name:"dedicatedAiClusterId"`

    // 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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (DeleteDedicatedAiClusterRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteDedicatedAiClusterRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteDedicatedAiClusterRequest) RetryPolicy

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

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

func (DeleteDedicatedAiClusterRequest) String

func (request DeleteDedicatedAiClusterRequest) String() string

func (DeleteDedicatedAiClusterRequest) ValidateEnumValue

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

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

type DeleteDedicatedAiClusterResponse

DeleteDedicatedAiClusterResponse wrapper for the DeleteDedicatedAiCluster operation

type DeleteDedicatedAiClusterResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (DeleteDedicatedAiClusterResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteDedicatedAiClusterResponse) String

func (response DeleteDedicatedAiClusterResponse) String() string

type DeleteEndpointRequest

DeleteEndpointRequest wrapper for the DeleteEndpoint operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/DeleteEndpoint.go.html to see an example of how to use DeleteEndpointRequest.

type DeleteEndpointRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
    EndpointId *string `mandatory:"true" contributesTo:"path" name:"endpointId"`

    // 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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (DeleteEndpointRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteEndpointRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteEndpointRequest) RetryPolicy

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

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

func (DeleteEndpointRequest) String

func (request DeleteEndpointRequest) String() string

func (DeleteEndpointRequest) ValidateEnumValue

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

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

type DeleteEndpointResponse

DeleteEndpointResponse wrapper for the DeleteEndpoint operation

type DeleteEndpointResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (DeleteEndpointResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteEndpointResponse) String

func (response DeleteEndpointResponse) String() string

type DeleteModelRequest

DeleteModelRequest wrapper for the DeleteModel operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/DeleteModel.go.html to see an example of how to use DeleteModelRequest.

type DeleteModelRequest struct {

    // The model OCID
    ModelId *string `mandatory:"true" contributesTo:"path" name:"modelId"`

    // 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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (DeleteModelRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (DeleteModelRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (DeleteModelRequest) RetryPolicy

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

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

func (DeleteModelRequest) String

func (request DeleteModelRequest) String() string

func (DeleteModelRequest) ValidateEnumValue

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

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

type DeleteModelResponse

DeleteModelResponse wrapper for the DeleteModel operation

type DeleteModelResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

func (DeleteModelResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (DeleteModelResponse) String

func (response DeleteModelResponse) String() string

type Endpoint

Endpoint To host a custom model for inference, create an endpoint for that model on a dedicated AI cluster of type HOSTING. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) and Getting Access to Generative AI Resouces (https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm).

type Endpoint struct {

    // An OCID that uniquely identifies this endpoint resource.
    Id *string `mandatory:"true" json:"id"`

    // The OCID of the model that's used to create this endpoint.
    ModelId *string `mandatory:"true" json:"modelId"`

    // The compartment OCID to create the endpoint in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The OCID of the dedicated AI cluster on which the model will be deployed to.
    DedicatedAiClusterId *string `mandatory:"true" json:"dedicatedAiClusterId"`

    // The date and time that the endpoint was created in the format of an RFC3339 datetime string.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the endpoint.
    LifecycleState EndpointLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the endpoint.
    Description *string `mandatory:"false" json:"description"`

    // The date and time that the endpoint was updated in the format of an RFC3339 datetime string.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // A message describing the current state of the endpoint in more detail that can provide actionable information.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    ContentModerationConfig *ContentModerationConfig `mandatory:"false" json:"contentModerationConfig"`

    PreviousState *Endpoint `mandatory:"false" json:"previousState"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

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

func (Endpoint) String

func (m Endpoint) String() string

func (Endpoint) ValidateEnumValue

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

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

type EndpointCollection

EndpointCollection Results of an endpoint search. Contains EndpointSummary items and other information such as metadata.

type EndpointCollection struct {

    // List of endpoints.
    Items []EndpointSummary `mandatory:"true" json:"items"`
}

func (EndpointCollection) String

func (m EndpointCollection) String() string

func (EndpointCollection) ValidateEnumValue

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

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

type EndpointLifecycleStateEnum

EndpointLifecycleStateEnum Enum with underlying type: string

type EndpointLifecycleStateEnum string

Set of constants representing the allowable values for EndpointLifecycleStateEnum

const (
    EndpointLifecycleStateActive   EndpointLifecycleStateEnum = "ACTIVE"
    EndpointLifecycleStateCreating EndpointLifecycleStateEnum = "CREATING"
    EndpointLifecycleStateUpdating EndpointLifecycleStateEnum = "UPDATING"
    EndpointLifecycleStateDeleting EndpointLifecycleStateEnum = "DELETING"
    EndpointLifecycleStateDeleted  EndpointLifecycleStateEnum = "DELETED"
    EndpointLifecycleStateFailed   EndpointLifecycleStateEnum = "FAILED"
)

func GetEndpointLifecycleStateEnumValues

func GetEndpointLifecycleStateEnumValues() []EndpointLifecycleStateEnum

GetEndpointLifecycleStateEnumValues Enumerates the set of values for EndpointLifecycleStateEnum

func GetMappingEndpointLifecycleStateEnum

func GetMappingEndpointLifecycleStateEnum(val string) (EndpointLifecycleStateEnum, bool)

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

type EndpointSummary

EndpointSummary Summary information for an endpoint resource.

type EndpointSummary struct {

    // An OCID that uniquely identifies this endpoint resource.
    Id *string `mandatory:"true" json:"id"`

    // The OCID of the model that's used to create this endpoint.
    ModelId *string `mandatory:"true" json:"modelId"`

    // The compartment OCID to create the endpoint in.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // The OCID of the dedicated AI cluster on which a model will be deployed to.
    DedicatedAiClusterId *string `mandatory:"true" json:"dedicatedAiClusterId"`

    // The date and time that the endpoint was created in the format of an RFC3339 datetime string.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The current state of the endpoint.
    // Allowed values are:
    // - ACTIVE
    // - CREATING
    // - UPDATING
    // - DELETING
    // - DELETED
    // - FAILED
    LifecycleState EndpointLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the endpoint.
    Description *string `mandatory:"false" json:"description"`

    // The date and time the endpoint was updated in the format of n RFC3339 datetime string.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // A message describing the current state with detail that can provide actionable information.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    ContentModerationConfig *ContentModerationConfig `mandatory:"false" json:"contentModerationConfig"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

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

func (EndpointSummary) String

func (m EndpointSummary) String() string

func (EndpointSummary) ValidateEnumValue

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

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

type FineTuneDetails

FineTuneDetails Details about fine-tuning a custom model.

type FineTuneDetails struct {
    TrainingDataset Dataset `mandatory:"true" json:"trainingDataset"`

    // The OCID of the dedicated AI cluster this fine-tuning runs on.
    DedicatedAiClusterId *string `mandatory:"true" json:"dedicatedAiClusterId"`

    TrainingConfig TrainingConfig `mandatory:"false" json:"trainingConfig"`
}

func (FineTuneDetails) String

func (m FineTuneDetails) String() string

func (*FineTuneDetails) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (FineTuneDetails) ValidateEnumValue

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

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

type GenerativeAiClient

GenerativeAiClient a client for GenerativeAi

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

func NewGenerativeAiClientWithConfigurationProvider

func NewGenerativeAiClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client GenerativeAiClient, err error)

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

func NewGenerativeAiClientWithOboToken

func NewGenerativeAiClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client GenerativeAiClient, err error)

NewGenerativeAiClientWithOboToken Creates a new default GenerativeAi 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 (GenerativeAiClient) ChangeDedicatedAiClusterCompartment

func (client GenerativeAiClient) ChangeDedicatedAiClusterCompartment(ctx context.Context, request ChangeDedicatedAiClusterCompartmentRequest) (response ChangeDedicatedAiClusterCompartmentResponse, err error)

ChangeDedicatedAiClusterCompartment Moves a dedicated AI cluster into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).

# See also

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

func (GenerativeAiClient) ChangeEndpointCompartment

func (client GenerativeAiClient) ChangeEndpointCompartment(ctx context.Context, request ChangeEndpointCompartmentRequest) (response ChangeEndpointCompartmentResponse, err error)

ChangeEndpointCompartment Moves an endpoint into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).

# See also

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

func (GenerativeAiClient) ChangeModelCompartment

func (client GenerativeAiClient) ChangeModelCompartment(ctx context.Context, request ChangeModelCompartmentRequest) (response ChangeModelCompartmentResponse, err error)

ChangeModelCompartment Moves a custom model into a different compartment. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).

# See also

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

func (*GenerativeAiClient) ConfigurationProvider

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

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

func (GenerativeAiClient) CreateDedicatedAiCluster

func (client GenerativeAiClient) CreateDedicatedAiCluster(ctx context.Context, request CreateDedicatedAiClusterRequest) (response CreateDedicatedAiClusterResponse, err error)

CreateDedicatedAiCluster Creates a dedicated AI cluster.

# See also

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

func (GenerativeAiClient) CreateEndpoint

func (client GenerativeAiClient) CreateEndpoint(ctx context.Context, request CreateEndpointRequest) (response CreateEndpointResponse, err error)

CreateEndpoint Creates an endpoint. The header contains an opc-work-request-id, which is the id for the WorkRequest that tracks the endpoint creation progress.

# See also

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

func (GenerativeAiClient) CreateModel

func (client GenerativeAiClient) CreateModel(ctx context.Context, request CreateModelRequest) (response CreateModelResponse, err error)

CreateModel Creates a custom model by fine-tuning a base model with your own dataset. You can create a new custom models or create a new version of existing custom model.. The header contains an opc-work-request-id, which is the id for the WorkRequest that tracks the model creation progress.

# See also

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

func (GenerativeAiClient) DeleteDedicatedAiCluster

func (client GenerativeAiClient) DeleteDedicatedAiCluster(ctx context.Context, request DeleteDedicatedAiClusterRequest) (response DeleteDedicatedAiClusterResponse, err error)

DeleteDedicatedAiCluster Deletes a dedicated AI cluster. You can only delete clusters without attached resources. Before you delete a hosting dedicated AI cluster, you must delete the endpoints associated to that cluster. Before you delete a fine-tuning dedicated AI cluster, you must delete the custom model on that cluster. The delete action permanently deletes the cluster. This action can't be undone.

# See also

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

func (GenerativeAiClient) DeleteEndpoint

func (client GenerativeAiClient) DeleteEndpoint(ctx context.Context, request DeleteEndpointRequest) (response DeleteEndpointResponse, err error)

DeleteEndpoint Deletes an endpoint.

# See also

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

func (GenerativeAiClient) DeleteModel

func (client GenerativeAiClient) DeleteModel(ctx context.Context, request DeleteModelRequest) (response DeleteModelResponse, err error)

DeleteModel Deletes a custom model. A model shouldn't be deleted if there's one or more active endpoints associated with that model.

# See also

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

func (GenerativeAiClient) GetDedicatedAiCluster

func (client GenerativeAiClient) GetDedicatedAiCluster(ctx context.Context, request GetDedicatedAiClusterRequest) (response GetDedicatedAiClusterResponse, err error)

GetDedicatedAiCluster Gets information about a dedicated AI cluster.

# See also

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

func (GenerativeAiClient) GetEndpoint

func (client GenerativeAiClient) GetEndpoint(ctx context.Context, request GetEndpointRequest) (response GetEndpointResponse, err error)

GetEndpoint Gets information about an endpoint.

# See also

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

func (GenerativeAiClient) GetModel

func (client GenerativeAiClient) GetModel(ctx context.Context, request GetModelRequest) (response GetModelResponse, err error)

GetModel Gets information about a custom model.

# See also

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

func (GenerativeAiClient) GetWorkRequest

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

GetWorkRequest Gets the details of a work request.

# See also

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

func (GenerativeAiClient) ListDedicatedAiClusters

func (client GenerativeAiClient) ListDedicatedAiClusters(ctx context.Context, request ListDedicatedAiClustersRequest) (response ListDedicatedAiClustersResponse, err error)

ListDedicatedAiClusters Lists the dedicated AI clusters in a specific compartment.

# See also

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

func (GenerativeAiClient) ListEndpoints

func (client GenerativeAiClient) ListEndpoints(ctx context.Context, request ListEndpointsRequest) (response ListEndpointsResponse, err error)

ListEndpoints Lists the endpoints of a specific compartment.

# See also

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

func (GenerativeAiClient) ListModels

func (client GenerativeAiClient) ListModels(ctx context.Context, request ListModelsRequest) (response ListModelsResponse, err error)

ListModels Lists the models in a specific compartment. Includes pretrained base models and fine-tuned custom models.

# See also

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

func (GenerativeAiClient) ListWorkRequestErrors

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

ListWorkRequestErrors Lists the errors for a work request.

# See also

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

func (GenerativeAiClient) ListWorkRequestLogs

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

ListWorkRequestLogs Lists the logs for a work request.

# See also

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

func (GenerativeAiClient) ListWorkRequests

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

ListWorkRequests Lists the work requests in a compartment.

# See also

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

func (*GenerativeAiClient) SetRegion

func (client *GenerativeAiClient) SetRegion(region string)

SetRegion overrides the region of this client.

func (GenerativeAiClient) UpdateDedicatedAiCluster

func (client GenerativeAiClient) UpdateDedicatedAiCluster(ctx context.Context, request UpdateDedicatedAiClusterRequest) (response UpdateDedicatedAiClusterResponse, err error)

UpdateDedicatedAiCluster Updates a dedicated AI cluster.

# See also

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

func (GenerativeAiClient) UpdateEndpoint

func (client GenerativeAiClient) UpdateEndpoint(ctx context.Context, request UpdateEndpointRequest) (response UpdateEndpointResponse, err error)

UpdateEndpoint Updates the properties of an endpoint.

# See also

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

func (GenerativeAiClient) UpdateModel

func (client GenerativeAiClient) UpdateModel(ctx context.Context, request UpdateModelRequest) (response UpdateModelResponse, err error)

UpdateModel Updates the properties of a custom model such as name, description, version, freeform tags, and defined tags.

# See also

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

type GetDedicatedAiClusterRequest

GetDedicatedAiClusterRequest wrapper for the GetDedicatedAiCluster operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/GetDedicatedAiCluster.go.html to see an example of how to use GetDedicatedAiClusterRequest.

type GetDedicatedAiClusterRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster.
    DedicatedAiClusterId *string `mandatory:"true" contributesTo:"path" name:"dedicatedAiClusterId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (GetDedicatedAiClusterRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetDedicatedAiClusterRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetDedicatedAiClusterRequest) RetryPolicy

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

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

func (GetDedicatedAiClusterRequest) String

func (request GetDedicatedAiClusterRequest) String() string

func (GetDedicatedAiClusterRequest) ValidateEnumValue

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

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

type GetDedicatedAiClusterResponse

GetDedicatedAiClusterResponse wrapper for the GetDedicatedAiCluster operation

type GetDedicatedAiClusterResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The DedicatedAiCluster instance
    DedicatedAiCluster `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 (GetDedicatedAiClusterResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetDedicatedAiClusterResponse) String

func (response GetDedicatedAiClusterResponse) String() string

type GetEndpointRequest

GetEndpointRequest wrapper for the GetEndpoint operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/GetEndpoint.go.html to see an example of how to use GetEndpointRequest.

type GetEndpointRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
    EndpointId *string `mandatory:"true" contributesTo:"path" name:"endpointId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (GetEndpointRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetEndpointRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetEndpointRequest) RetryPolicy

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

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

func (GetEndpointRequest) String

func (request GetEndpointRequest) String() string

func (GetEndpointRequest) ValidateEnumValue

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

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

type GetEndpointResponse

GetEndpointResponse wrapper for the GetEndpoint operation

type GetEndpointResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Endpoint instance
    Endpoint `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 (GetEndpointResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetEndpointResponse) String

func (response GetEndpointResponse) String() string

type GetModelRequest

GetModelRequest wrapper for the GetModel operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/GetModel.go.html to see an example of how to use GetModelRequest.

type GetModelRequest struct {

    // The model OCID
    ModelId *string `mandatory:"true" contributesTo:"path" name:"modelId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (GetModelRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetModelRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetModelRequest) RetryPolicy

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

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

func (GetModelRequest) String

func (request GetModelRequest) String() string

func (GetModelRequest) ValidateEnumValue

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

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

type GetModelResponse

GetModelResponse wrapper for the GetModel operation

type GetModelResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Model instance
    Model `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 (GetModelResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (GetModelResponse) String

func (response GetModelResponse) 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/65.65.0/generativeai/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest.

type GetWorkRequestRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous 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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (GetWorkRequestRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (GetWorkRequestRequest) RetryPolicy

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

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

func (GetWorkRequestRequest) String

func (request GetWorkRequestRequest) String() string

func (GetWorkRequestRequest) ValidateEnumValue

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

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

type GetWorkRequestResponse

GetWorkRequestResponse wrapper for the GetWorkRequest operation

type GetWorkRequestResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

    // A decimal number representing the number of seconds the client should wait before polling this endpoint again.
    RetryAfter *int `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 ListDedicatedAiClustersRequest

ListDedicatedAiClustersRequest wrapper for the ListDedicatedAiClusters operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/ListDedicatedAiClusters.go.html to see an example of how to use ListDedicatedAiClustersRequest.

type ListDedicatedAiClustersRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
    LifecycleState DedicatedAiClusterLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster.
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

    // For list pagination. The maximum number of results per page, or items to return in a
    // paginated "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // For list pagination. The value of the opc-next-page response header from the previous
    // "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListDedicatedAiClustersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. You can provide only one sort order. Default order for `timeCreated`
    // is descending. Default order for `displayName` is ascending.
    SortBy ListDedicatedAiClustersSortByEnum `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (ListDedicatedAiClustersRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListDedicatedAiClustersRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListDedicatedAiClustersRequest) RetryPolicy

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

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

func (ListDedicatedAiClustersRequest) String

func (request ListDedicatedAiClustersRequest) String() string

func (ListDedicatedAiClustersRequest) ValidateEnumValue

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

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

type ListDedicatedAiClustersResponse

ListDedicatedAiClustersResponse wrapper for the ListDedicatedAiClusters operation

type ListDedicatedAiClustersResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of DedicatedAiClusterCollection instances
    DedicatedAiClusterCollection `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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListDedicatedAiClustersResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListDedicatedAiClustersResponse) String

func (response ListDedicatedAiClustersResponse) String() string

type ListDedicatedAiClustersSortByEnum

ListDedicatedAiClustersSortByEnum Enum with underlying type: string

type ListDedicatedAiClustersSortByEnum string

Set of constants representing the allowable values for ListDedicatedAiClustersSortByEnum

const (
    ListDedicatedAiClustersSortByTimecreated    ListDedicatedAiClustersSortByEnum = "timeCreated"
    ListDedicatedAiClustersSortByDisplayname    ListDedicatedAiClustersSortByEnum = "displayName"
    ListDedicatedAiClustersSortByLifecyclestate ListDedicatedAiClustersSortByEnum = "lifecycleState"
)

func GetListDedicatedAiClustersSortByEnumValues

func GetListDedicatedAiClustersSortByEnumValues() []ListDedicatedAiClustersSortByEnum

GetListDedicatedAiClustersSortByEnumValues Enumerates the set of values for ListDedicatedAiClustersSortByEnum

func GetMappingListDedicatedAiClustersSortByEnum

func GetMappingListDedicatedAiClustersSortByEnum(val string) (ListDedicatedAiClustersSortByEnum, bool)

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

type ListDedicatedAiClustersSortOrderEnum

ListDedicatedAiClustersSortOrderEnum Enum with underlying type: string

type ListDedicatedAiClustersSortOrderEnum string

Set of constants representing the allowable values for ListDedicatedAiClustersSortOrderEnum

const (
    ListDedicatedAiClustersSortOrderAsc  ListDedicatedAiClustersSortOrderEnum = "ASC"
    ListDedicatedAiClustersSortOrderDesc ListDedicatedAiClustersSortOrderEnum = "DESC"
)

func GetListDedicatedAiClustersSortOrderEnumValues

func GetListDedicatedAiClustersSortOrderEnumValues() []ListDedicatedAiClustersSortOrderEnum

GetListDedicatedAiClustersSortOrderEnumValues Enumerates the set of values for ListDedicatedAiClustersSortOrderEnum

func GetMappingListDedicatedAiClustersSortOrderEnum

func GetMappingListDedicatedAiClustersSortOrderEnum(val string) (ListDedicatedAiClustersSortOrderEnum, bool)

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

type ListEndpointsRequest

ListEndpointsRequest wrapper for the ListEndpoints operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/ListEndpoints.go.html to see an example of how to use ListEndpointsRequest.

type ListEndpointsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

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

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

    // For list pagination. The maximum number of results per page, or items to return in a
    // paginated "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // For list pagination. The value of the opc-next-page response header from the previous
    // "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListEndpointsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. You can provide only one sort order. Default order for `timeCreated`
    // is descending. Default order for `displayName` is ascending.
    SortBy ListEndpointsSortByEnum `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (ListEndpointsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListEndpointsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListEndpointsRequest) RetryPolicy

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

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

func (ListEndpointsRequest) String

func (request ListEndpointsRequest) String() string

func (ListEndpointsRequest) ValidateEnumValue

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

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

type ListEndpointsResponse

ListEndpointsResponse wrapper for the ListEndpoints operation

type ListEndpointsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of EndpointCollection instances
    EndpointCollection `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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListEndpointsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListEndpointsResponse) String

func (response ListEndpointsResponse) String() string

type ListEndpointsSortByEnum

ListEndpointsSortByEnum Enum with underlying type: string

type ListEndpointsSortByEnum string

Set of constants representing the allowable values for ListEndpointsSortByEnum

const (
    ListEndpointsSortByDisplayname ListEndpointsSortByEnum = "displayName"
    ListEndpointsSortByTimecreated ListEndpointsSortByEnum = "timeCreated"
)

func GetListEndpointsSortByEnumValues

func GetListEndpointsSortByEnumValues() []ListEndpointsSortByEnum

GetListEndpointsSortByEnumValues Enumerates the set of values for ListEndpointsSortByEnum

func GetMappingListEndpointsSortByEnum

func GetMappingListEndpointsSortByEnum(val string) (ListEndpointsSortByEnum, bool)

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

type ListEndpointsSortOrderEnum

ListEndpointsSortOrderEnum Enum with underlying type: string

type ListEndpointsSortOrderEnum string

Set of constants representing the allowable values for ListEndpointsSortOrderEnum

const (
    ListEndpointsSortOrderAsc  ListEndpointsSortOrderEnum = "ASC"
    ListEndpointsSortOrderDesc ListEndpointsSortOrderEnum = "DESC"
)

func GetListEndpointsSortOrderEnumValues

func GetListEndpointsSortOrderEnumValues() []ListEndpointsSortOrderEnum

GetListEndpointsSortOrderEnumValues Enumerates the set of values for ListEndpointsSortOrderEnum

func GetMappingListEndpointsSortOrderEnum

func GetMappingListEndpointsSortOrderEnum(val string) (ListEndpointsSortOrderEnum, bool)

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

type ListModelsRequest

ListModelsRequest wrapper for the ListModels operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/ListModels.go.html to see an example of how to use ListModelsRequest.

type ListModelsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // A filter to return only resources that match the entire vendor given.
    Vendor *string `mandatory:"false" contributesTo:"query" name:"vendor"`

    // A filter to return only resources their capability matches the given capability.
    Capability []ModelCapabilityEnum `contributesTo:"query" name:"capability" omitEmpty:"true" collectionFormat:"multi"`

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

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

    // The ID of the model.
    Id *string `mandatory:"false" contributesTo:"query" name:"id"`

    // For list pagination. The maximum number of results per page, or items to return in a
    // paginated "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // For list pagination. The value of the opc-next-page response header from the previous
    // "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListModelsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

    // The field to sort by. You can provide only one sort order. Default order for `timeCreated` is descending.
    SortBy ListModelsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`

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

func (ListModelsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListModelsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListModelsRequest) RetryPolicy

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

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

func (ListModelsRequest) String

func (request ListModelsRequest) String() string

func (ListModelsRequest) ValidateEnumValue

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

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

type ListModelsResponse

ListModelsResponse wrapper for the ListModels operation

type ListModelsResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // A list of ModelCollection instances
    ModelCollection `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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
}

func (ListModelsResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (ListModelsResponse) String

func (response ListModelsResponse) String() string

type ListModelsSortByEnum

ListModelsSortByEnum Enum with underlying type: string

type ListModelsSortByEnum string

Set of constants representing the allowable values for ListModelsSortByEnum

const (
    ListModelsSortByDisplayname    ListModelsSortByEnum = "displayName"
    ListModelsSortByLifecyclestate ListModelsSortByEnum = "lifecycleState"
    ListModelsSortByTimecreated    ListModelsSortByEnum = "timeCreated"
)

func GetListModelsSortByEnumValues

func GetListModelsSortByEnumValues() []ListModelsSortByEnum

GetListModelsSortByEnumValues Enumerates the set of values for ListModelsSortByEnum

func GetMappingListModelsSortByEnum

func GetMappingListModelsSortByEnum(val string) (ListModelsSortByEnum, bool)

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

type ListModelsSortOrderEnum

ListModelsSortOrderEnum Enum with underlying type: string

type ListModelsSortOrderEnum string

Set of constants representing the allowable values for ListModelsSortOrderEnum

const (
    ListModelsSortOrderAsc  ListModelsSortOrderEnum = "ASC"
    ListModelsSortOrderDesc ListModelsSortOrderEnum = "DESC"
)

func GetListModelsSortOrderEnumValues

func GetListModelsSortOrderEnumValues() []ListModelsSortOrderEnum

GetListModelsSortOrderEnumValues Enumerates the set of values for ListModelsSortOrderEnum

func GetMappingListModelsSortOrderEnum

func GetMappingListModelsSortOrderEnum(val string) (ListModelsSortOrderEnum, bool)

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

type ListWorkRequestErrorsRequest

ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation

# See also

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

type ListWorkRequestErrorsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous 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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For list pagination. The value of the opc-next-page response header from the previous
    // "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // For list pagination. The maximum number of results per page, or items to return in a
    // paginated "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

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

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListWorkRequestErrorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

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

func (ListWorkRequestErrorsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestErrorsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestErrorsRequest) RetryPolicy

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

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

func (ListWorkRequestErrorsRequest) String

func (request ListWorkRequestErrorsRequest) String() string

func (ListWorkRequestErrorsRequest) ValidateEnumValue

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

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

type ListWorkRequestErrorsResponse

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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    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 ListWorkRequestErrorsSortByEnum

ListWorkRequestErrorsSortByEnum Enum with underlying type: string

type ListWorkRequestErrorsSortByEnum string

Set of constants representing the allowable values for ListWorkRequestErrorsSortByEnum

const (
    ListWorkRequestErrorsSortByTimestamp ListWorkRequestErrorsSortByEnum = "timestamp"
)

func GetListWorkRequestErrorsSortByEnumValues

func GetListWorkRequestErrorsSortByEnumValues() []ListWorkRequestErrorsSortByEnum

GetListWorkRequestErrorsSortByEnumValues Enumerates the set of values for ListWorkRequestErrorsSortByEnum

func GetMappingListWorkRequestErrorsSortByEnum

func GetMappingListWorkRequestErrorsSortByEnum(val string) (ListWorkRequestErrorsSortByEnum, bool)

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

type ListWorkRequestErrorsSortOrderEnum

ListWorkRequestErrorsSortOrderEnum Enum with underlying type: string

type ListWorkRequestErrorsSortOrderEnum string

Set of constants representing the allowable values for ListWorkRequestErrorsSortOrderEnum

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

func GetListWorkRequestErrorsSortOrderEnumValues

func GetListWorkRequestErrorsSortOrderEnumValues() []ListWorkRequestErrorsSortOrderEnum

GetListWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListWorkRequestErrorsSortOrderEnum

func GetMappingListWorkRequestErrorsSortOrderEnum

func GetMappingListWorkRequestErrorsSortOrderEnum(val string) (ListWorkRequestErrorsSortOrderEnum, bool)

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

type ListWorkRequestLogsRequest

ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation

# See also

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

type ListWorkRequestLogsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous 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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For list pagination. The value of the opc-next-page response header from the previous
    // "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // For list pagination. The maximum number of results per page, or items to return in a
    // paginated "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

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

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListWorkRequestLogsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

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

func (ListWorkRequestLogsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestLogsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestLogsRequest) RetryPolicy

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

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

func (ListWorkRequestLogsRequest) String

func (request ListWorkRequestLogsRequest) String() string

func (ListWorkRequestLogsRequest) ValidateEnumValue

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

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

type ListWorkRequestLogsResponse

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 list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    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 ListWorkRequestLogsSortByEnum

ListWorkRequestLogsSortByEnum Enum with underlying type: string

type ListWorkRequestLogsSortByEnum string

Set of constants representing the allowable values for ListWorkRequestLogsSortByEnum

const (
    ListWorkRequestLogsSortByTimestamp ListWorkRequestLogsSortByEnum = "timestamp"
)

func GetListWorkRequestLogsSortByEnumValues

func GetListWorkRequestLogsSortByEnumValues() []ListWorkRequestLogsSortByEnum

GetListWorkRequestLogsSortByEnumValues Enumerates the set of values for ListWorkRequestLogsSortByEnum

func GetMappingListWorkRequestLogsSortByEnum

func GetMappingListWorkRequestLogsSortByEnum(val string) (ListWorkRequestLogsSortByEnum, bool)

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

type ListWorkRequestLogsSortOrderEnum

ListWorkRequestLogsSortOrderEnum Enum with underlying type: string

type ListWorkRequestLogsSortOrderEnum string

Set of constants representing the allowable values for ListWorkRequestLogsSortOrderEnum

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

func GetListWorkRequestLogsSortOrderEnumValues

func GetListWorkRequestLogsSortOrderEnumValues() []ListWorkRequestLogsSortOrderEnum

GetListWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListWorkRequestLogsSortOrderEnum

func GetMappingListWorkRequestLogsSortOrderEnum

func GetMappingListWorkRequestLogsSortOrderEnum(val string) (ListWorkRequestLogsSortOrderEnum, bool)

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

type ListWorkRequestsRequest

ListWorkRequestsRequest wrapper for the ListWorkRequests operation

# See also

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

type ListWorkRequestsRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
    CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    WorkRequestId *string `mandatory:"false" contributesTo:"query" name:"workRequestId"`

    // A filter to return only the resources that match the given lifecycle state.
    Status ListWorkRequestsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.
    ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"`

    // Unique Oracle-assigned identifier for the request. If you need to contact
    // Oracle about a particular request, please provide the request ID.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`

    // For list pagination. The value of the opc-next-page response header from the previous
    // "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Page *string `mandatory:"false" contributesTo:"query" name:"page"`

    // For list pagination. The maximum number of results per page, or items to return in a
    // paginated "List" call. For important details about how pagination works, see
    // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`

    // The sort order to use, either 'ASC' or 'DESC'.
    SortOrder ListWorkRequestsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`

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

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

func (ListWorkRequestsRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (ListWorkRequestsRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (ListWorkRequestsRequest) RetryPolicy

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

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

func (ListWorkRequestsRequest) String

func (request ListWorkRequestsRequest) String() string

func (ListWorkRequestsRequest) ValidateEnumValue

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

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

type ListWorkRequestsResponse

ListWorkRequestsResponse wrapper for the ListWorkRequests operation

type ListWorkRequestsResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

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

    // For list pagination. When this header appears in the response, additional pages of results remain. For
    // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
    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 ListWorkRequestsSortByEnum

ListWorkRequestsSortByEnum Enum with underlying type: string

type ListWorkRequestsSortByEnum string

Set of constants representing the allowable values for ListWorkRequestsSortByEnum

const (
    ListWorkRequestsSortByTimeaccepted ListWorkRequestsSortByEnum = "timeAccepted"
)

func GetListWorkRequestsSortByEnumValues

func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum

GetListWorkRequestsSortByEnumValues Enumerates the set of values for ListWorkRequestsSortByEnum

func GetMappingListWorkRequestsSortByEnum

func GetMappingListWorkRequestsSortByEnum(val string) (ListWorkRequestsSortByEnum, bool)

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

type ListWorkRequestsSortOrderEnum

ListWorkRequestsSortOrderEnum Enum with underlying type: string

type ListWorkRequestsSortOrderEnum string

Set of constants representing the allowable values for ListWorkRequestsSortOrderEnum

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

func GetListWorkRequestsSortOrderEnumValues

func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum

GetListWorkRequestsSortOrderEnumValues Enumerates the set of values for ListWorkRequestsSortOrderEnum

func GetMappingListWorkRequestsSortOrderEnum

func GetMappingListWorkRequestsSortOrderEnum(val string) (ListWorkRequestsSortOrderEnum, bool)

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

type ListWorkRequestsStatusEnum

ListWorkRequestsStatusEnum Enum with underlying type: string

type ListWorkRequestsStatusEnum string

Set of constants representing the allowable values for ListWorkRequestsStatusEnum

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

func GetListWorkRequestsStatusEnumValues

func GetListWorkRequestsStatusEnumValues() []ListWorkRequestsStatusEnum

GetListWorkRequestsStatusEnumValues Enumerates the set of values for ListWorkRequestsStatusEnum

func GetMappingListWorkRequestsStatusEnum

func GetMappingListWorkRequestsStatusEnum(val string) (ListWorkRequestsStatusEnum, bool)

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

type Model

Model You can create a custom model by using your dataset to fine-tune an out-of-the-box text generation base model. Have your dataset ready before you create a custom model. See Training Data Requirements (https://docs.cloud.oracle.com/iaas/Content/generative-ai/training-data-requirements.htm). To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) and Getting Access to Generative AI Resouces (https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm).

type Model struct {

    // An ID that uniquely identifies a pretrained or fine-tuned model.
    Id *string `mandatory:"true" json:"id"`

    // The compartment OCID for fine-tuned models. For pretrained models, this value is null.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // Describes what this model can be used for.
    Capabilities []ModelCapabilityEnum `mandatory:"true" json:"capabilities"`

    // The lifecycle state of the model.
    LifecycleState ModelLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The date and time that the model was created in the format of an RFC3339 datetime string.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model.
    Type ModelTypeEnum `mandatory:"true" json:"type"`

    // An optional description of the model.
    Description *string `mandatory:"false" json:"description"`

    // A message describing the current state of the model in more detail that can provide actionable information.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // The provider of the base model.
    Vendor *string `mandatory:"false" json:"vendor"`

    // The version of the model.
    Version *string `mandatory:"false" json:"version"`

    // A user-friendly name.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The date and time that the model was updated in the format of an RFC3339 datetime string.
    TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"`

    // The OCID of the base model that's used for fine-tuning. For pretrained models, the value is null.
    BaseModelId *string `mandatory:"false" json:"baseModelId"`

    FineTuneDetails *FineTuneDetails `mandatory:"false" json:"fineTuneDetails"`

    ModelMetrics ModelMetrics `mandatory:"false" json:"modelMetrics"`

    // Whether a model is supported long-term. Only applicable to base models.
    IsLongTermSupported *bool `mandatory:"false" json:"isLongTermSupported"`

    // Corresponds to the time when the custom model and its associated foundation model will be deprecated.
    TimeDeprecated *common.SDKTime `mandatory:"false" json:"timeDeprecated"`

    PreviousState *Model `mandatory:"false" json:"previousState"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

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

func (Model) String

func (m Model) String() string

func (*Model) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (Model) ValidateEnumValue

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

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

type ModelCapabilityEnum

ModelCapabilityEnum Enum with underlying type: string

type ModelCapabilityEnum string

Set of constants representing the allowable values for ModelCapabilityEnum

const (
    ModelCapabilityTextGeneration    ModelCapabilityEnum = "TEXT_GENERATION"
    ModelCapabilityTextSummarization ModelCapabilityEnum = "TEXT_SUMMARIZATION"
    ModelCapabilityTextEmbeddings    ModelCapabilityEnum = "TEXT_EMBEDDINGS"
    ModelCapabilityFineTune          ModelCapabilityEnum = "FINE_TUNE"
    ModelCapabilityChat              ModelCapabilityEnum = "CHAT"
)

func GetMappingModelCapabilityEnum

func GetMappingModelCapabilityEnum(val string) (ModelCapabilityEnum, bool)

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

func GetModelCapabilityEnumValues

func GetModelCapabilityEnumValues() []ModelCapabilityEnum

GetModelCapabilityEnumValues Enumerates the set of values for ModelCapabilityEnum

type ModelCollection

ModelCollection Results of a model search. Contains ModelSummary items and other information such as metadata.

type ModelCollection struct {

    // The results of a model search.
    Items []ModelSummary `mandatory:"true" json:"items"`
}

func (ModelCollection) String

func (m ModelCollection) String() string

func (ModelCollection) ValidateEnumValue

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

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

type ModelLifecycleStateEnum

ModelLifecycleStateEnum Enum with underlying type: string

type ModelLifecycleStateEnum string

Set of constants representing the allowable values for ModelLifecycleStateEnum

const (
    ModelLifecycleStateActive   ModelLifecycleStateEnum = "ACTIVE"
    ModelLifecycleStateCreating ModelLifecycleStateEnum = "CREATING"
    ModelLifecycleStateDeleting ModelLifecycleStateEnum = "DELETING"
    ModelLifecycleStateDeleted  ModelLifecycleStateEnum = "DELETED"
    ModelLifecycleStateFailed   ModelLifecycleStateEnum = "FAILED"
)

func GetMappingModelLifecycleStateEnum

func GetMappingModelLifecycleStateEnum(val string) (ModelLifecycleStateEnum, bool)

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

func GetModelLifecycleStateEnumValues

func GetModelLifecycleStateEnumValues() []ModelLifecycleStateEnum

GetModelLifecycleStateEnumValues Enumerates the set of values for ModelLifecycleStateEnum

type ModelMetrics

ModelMetrics Model metrics during the creation of a new model.

type ModelMetrics interface {
}

type ModelMetricsModelMetricsTypeEnum

ModelMetricsModelMetricsTypeEnum Enum with underlying type: string

type ModelMetricsModelMetricsTypeEnum string

Set of constants representing the allowable values for ModelMetricsModelMetricsTypeEnum

const (
    ModelMetricsModelMetricsTypeTextGenerationModelMetrics ModelMetricsModelMetricsTypeEnum = "TEXT_GENERATION_MODEL_METRICS"
)

func GetMappingModelMetricsModelMetricsTypeEnum

func GetMappingModelMetricsModelMetricsTypeEnum(val string) (ModelMetricsModelMetricsTypeEnum, bool)

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

func GetModelMetricsModelMetricsTypeEnumValues

func GetModelMetricsModelMetricsTypeEnumValues() []ModelMetricsModelMetricsTypeEnum

GetModelMetricsModelMetricsTypeEnumValues Enumerates the set of values for ModelMetricsModelMetricsTypeEnum

type ModelSummary

ModelSummary Summary of the model.

type ModelSummary struct {

    // An ID that uniquely identifies a pretrained or a fine-tuned model.
    Id *string `mandatory:"true" json:"id"`

    // The compartment OCID for fine-tuned models. For pretrained models, this value is null.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

    // Describes what this model can be used for.
    Capabilities []ModelCapabilityEnum `mandatory:"true" json:"capabilities"`

    // The lifecycle state of the model.
    // Allowed values are:
    // - ACTIVE
    // - CREATING
    // - DELETING
    // - DELETED
    // - FAILED
    LifecycleState ModelLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`

    // The date and time that the model was created in the format of an RFC3339 datetime string.
    TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`

    // The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model.
    // Allowed values are:
    // - BASE
    // - CUSTOM
    Type ModelTypeEnum `mandatory:"true" json:"type"`

    // A message describing the current state of the model with detail that can provide actionable information.
    LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`

    // A user-friendly name.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // The provider of the model.
    Vendor *string `mandatory:"false" json:"vendor"`

    // The version of the model.
    Version *string `mandatory:"false" json:"version"`

    // The OCID of the base model that's used for fine-tuning. For pretrained models, the value is null.
    BaseModelId *string `mandatory:"false" json:"baseModelId"`

    FineTuneDetails *FineTuneDetails `mandatory:"false" json:"fineTuneDetails"`

    ModelMetrics ModelMetrics `mandatory:"false" json:"modelMetrics"`

    // Whether a model is supported long-term. Applies only to base models.
    IsLongTermSupported *bool `mandatory:"false" json:"isLongTermSupported"`

    // Corresponds to the time when the custom model and its associated foundation model will be deprecated.
    TimeDeprecated *common.SDKTime `mandatory:"false" json:"timeDeprecated"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

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

func (ModelSummary) String

func (m ModelSummary) String() string

func (*ModelSummary) UnmarshalJSON

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

UnmarshalJSON unmarshals from json

func (ModelSummary) ValidateEnumValue

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

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

type ModelTypeEnum

ModelTypeEnum Enum with underlying type: string

type ModelTypeEnum string

Set of constants representing the allowable values for ModelTypeEnum

const (
    ModelTypeBase   ModelTypeEnum = "BASE"
    ModelTypeCustom ModelTypeEnum = "CUSTOM"
)

func GetMappingModelTypeEnum

func GetMappingModelTypeEnum(val string) (ModelTypeEnum, bool)

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

func GetModelTypeEnumValues

func GetModelTypeEnumValues() []ModelTypeEnum

GetModelTypeEnumValues Enumerates the set of values for ModelTypeEnum

type ObjectStorageDataset

ObjectStorageDataset The dataset is stored in an OCI Object Storage bucket.

type ObjectStorageDataset struct {

    // The Object Storage namespace.
    NamespaceName *string `mandatory:"true" json:"namespaceName"`

    // The Object Storage bucket name.
    BucketName *string `mandatory:"true" json:"bucketName"`

    // The Object Storage object name.
    ObjectName *string `mandatory:"true" json:"objectName"`
}

func (ObjectStorageDataset) MarshalJSON

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

MarshalJSON marshals to json representation

func (ObjectStorageDataset) String

func (m ObjectStorageDataset) String() string

func (ObjectStorageDataset) ValidateEnumValue

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

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

type OperationStatusEnum

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"
    OperationStatusWaiting    OperationStatusEnum = "WAITING"
    OperationStatusFailed     OperationStatusEnum = "FAILED"
    OperationStatusSucceeded  OperationStatusEnum = "SUCCEEDED"
    OperationStatusCanceling  OperationStatusEnum = "CANCELING"
    OperationStatusCanceled   OperationStatusEnum = "CANCELED"
)

func GetMappingOperationStatusEnum

func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool)

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

func GetOperationStatusEnumValues

func GetOperationStatusEnumValues() []OperationStatusEnum

GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum

type OperationTypeEnum

OperationTypeEnum Enum with underlying type: string

type OperationTypeEnum string

Set of constants representing the allowable values for OperationTypeEnum

const (
    OperationTypeCreateModel              OperationTypeEnum = "CREATE_MODEL"
    OperationTypeDeleteModel              OperationTypeEnum = "DELETE_MODEL"
    OperationTypeMoveModel                OperationTypeEnum = "MOVE_MODEL"
    OperationTypeCreateDedicatedAiCluster OperationTypeEnum = "CREATE_DEDICATED_AI_CLUSTER"
    OperationTypeDeleteDedicatedAiCluster OperationTypeEnum = "DELETE_DEDICATED_AI_CLUSTER"
    OperationTypeUpdateDedicatedAiCluster OperationTypeEnum = "UPDATE_DEDICATED_AI_CLUSTER"
    OperationTypeMoveDedicatedAiCluster   OperationTypeEnum = "MOVE_DEDICATED_AI_CLUSTER"
    OperationTypeCreateEndpoint           OperationTypeEnum = "CREATE_ENDPOINT"
    OperationTypeDeleteEndpoint           OperationTypeEnum = "DELETE_ENDPOINT"
    OperationTypeUpdateEndpoint           OperationTypeEnum = "UPDATE_ENDPOINT"
    OperationTypeMoveEndpoint             OperationTypeEnum = "MOVE_ENDPOINT"
)

func GetMappingOperationTypeEnum

func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool)

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

func GetOperationTypeEnumValues

func GetOperationTypeEnumValues() []OperationTypeEnum

GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum

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

func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool)

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

func GetSortOrderEnumValues

func GetSortOrderEnumValues() []SortOrderEnum

GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum

type TFewTrainingConfig

TFewTrainingConfig The TFEW training method hyperparameters.

type TFewTrainingConfig struct {

    // The maximum number of training epochs to run for.
    TotalTrainingEpochs *int `mandatory:"false" json:"totalTrainingEpochs"`

    // The initial learning rate to be used during training
    LearningRate *float64 `mandatory:"false" json:"learningRate"`

    // The batch size used during training.
    TrainingBatchSize *int `mandatory:"false" json:"trainingBatchSize"`

    // Stop training if the loss metric does not improve beyond 'early_stopping_threshold' for this many times of evaluation.
    EarlyStoppingPatience *int `mandatory:"false" json:"earlyStoppingPatience"`

    // How much the loss must improve to prevent early stopping.
    EarlyStoppingThreshold *float64 `mandatory:"false" json:"earlyStoppingThreshold"`

    // Determines how frequently to log model metrics.
    // Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics.
    LogModelMetricsIntervalInSteps *int `mandatory:"false" json:"logModelMetricsIntervalInSteps"`
}

func (TFewTrainingConfig) GetEarlyStoppingPatience

func (m TFewTrainingConfig) GetEarlyStoppingPatience() *int

GetEarlyStoppingPatience returns EarlyStoppingPatience

func (TFewTrainingConfig) GetEarlyStoppingThreshold

func (m TFewTrainingConfig) GetEarlyStoppingThreshold() *float64

GetEarlyStoppingThreshold returns EarlyStoppingThreshold

func (TFewTrainingConfig) GetLearningRate

func (m TFewTrainingConfig) GetLearningRate() *float64

GetLearningRate returns LearningRate

func (TFewTrainingConfig) GetLogModelMetricsIntervalInSteps

func (m TFewTrainingConfig) GetLogModelMetricsIntervalInSteps() *int

GetLogModelMetricsIntervalInSteps returns LogModelMetricsIntervalInSteps

func (TFewTrainingConfig) GetTotalTrainingEpochs

func (m TFewTrainingConfig) GetTotalTrainingEpochs() *int

GetTotalTrainingEpochs returns TotalTrainingEpochs

func (TFewTrainingConfig) GetTrainingBatchSize

func (m TFewTrainingConfig) GetTrainingBatchSize() *int

GetTrainingBatchSize returns TrainingBatchSize

func (TFewTrainingConfig) MarshalJSON

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

MarshalJSON marshals to json representation

func (TFewTrainingConfig) String

func (m TFewTrainingConfig) String() string

func (TFewTrainingConfig) ValidateEnumValue

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

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

type TextGenerationModelMetrics

TextGenerationModelMetrics The text generation model metrics of the fine-tuning process.

type TextGenerationModelMetrics struct {

    // Fine-tuned model accuracy.
    FinalAccuracy *float64 `mandatory:"false" json:"finalAccuracy"`

    // Fine-tuned model loss.
    FinalLoss *float64 `mandatory:"false" json:"finalLoss"`
}

func (TextGenerationModelMetrics) MarshalJSON

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

MarshalJSON marshals to json representation

func (TextGenerationModelMetrics) String

func (m TextGenerationModelMetrics) String() string

func (TextGenerationModelMetrics) ValidateEnumValue

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

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

type TrainingConfig

TrainingConfig The fine-tuning method and hyperparameters used for fine-tuning a custom model.

type TrainingConfig interface {

    // The maximum number of training epochs to run for.
    GetTotalTrainingEpochs() *int

    // The initial learning rate to be used during training
    GetLearningRate() *float64

    // The batch size used during training.
    GetTrainingBatchSize() *int

    // Stop training if the loss metric does not improve beyond 'early_stopping_threshold' for this many times of evaluation.
    GetEarlyStoppingPatience() *int

    // How much the loss must improve to prevent early stopping.
    GetEarlyStoppingThreshold() *float64

    // Determines how frequently to log model metrics.
    // Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics.
    GetLogModelMetricsIntervalInSteps() *int
}

type TrainingConfigTrainingConfigTypeEnum

TrainingConfigTrainingConfigTypeEnum Enum with underlying type: string

type TrainingConfigTrainingConfigTypeEnum string

Set of constants representing the allowable values for TrainingConfigTrainingConfigTypeEnum

const (
    TrainingConfigTrainingConfigTypeTfewTrainingConfig    TrainingConfigTrainingConfigTypeEnum = "TFEW_TRAINING_CONFIG"
    TrainingConfigTrainingConfigTypeVanillaTrainingConfig TrainingConfigTrainingConfigTypeEnum = "VANILLA_TRAINING_CONFIG"
)

func GetMappingTrainingConfigTrainingConfigTypeEnum

func GetMappingTrainingConfigTrainingConfigTypeEnum(val string) (TrainingConfigTrainingConfigTypeEnum, bool)

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

func GetTrainingConfigTrainingConfigTypeEnumValues

func GetTrainingConfigTrainingConfigTypeEnumValues() []TrainingConfigTrainingConfigTypeEnum

GetTrainingConfigTrainingConfigTypeEnumValues Enumerates the set of values for TrainingConfigTrainingConfigTypeEnum

type UpdateDedicatedAiClusterDetails

UpdateDedicatedAiClusterDetails The data to update a dedicated AI cluster.

type UpdateDedicatedAiClusterDetails struct {

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the dedicated AI cluster.
    Description *string `mandatory:"false" json:"description"`

    // The number of dedicated units in this AI cluster.
    UnitCount *int `mandatory:"false" json:"unitCount"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (UpdateDedicatedAiClusterDetails) String

func (m UpdateDedicatedAiClusterDetails) String() string

func (UpdateDedicatedAiClusterDetails) ValidateEnumValue

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

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

type UpdateDedicatedAiClusterRequest

UpdateDedicatedAiClusterRequest wrapper for the UpdateDedicatedAiCluster operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/UpdateDedicatedAiCluster.go.html to see an example of how to use UpdateDedicatedAiClusterRequest.

type UpdateDedicatedAiClusterRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster.
    DedicatedAiClusterId *string `mandatory:"true" contributesTo:"path" name:"dedicatedAiClusterId"`

    // The information to be updated.
    UpdateDedicatedAiClusterDetails `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (UpdateDedicatedAiClusterRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateDedicatedAiClusterRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateDedicatedAiClusterRequest) RetryPolicy

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

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

func (UpdateDedicatedAiClusterRequest) String

func (request UpdateDedicatedAiClusterRequest) String() string

func (UpdateDedicatedAiClusterRequest) ValidateEnumValue

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

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

type UpdateDedicatedAiClusterResponse

UpdateDedicatedAiClusterResponse wrapper for the UpdateDedicatedAiCluster operation

type UpdateDedicatedAiClusterResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

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

func (UpdateDedicatedAiClusterResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateDedicatedAiClusterResponse) String

func (response UpdateDedicatedAiClusterResponse) String() string

type UpdateEndpointDetails

UpdateEndpointDetails The data to update an endpoint.

type UpdateEndpointDetails struct {

    // A user-friendly name. Does not have to be unique, and it's changeable.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the endpoint.
    Description *string `mandatory:"false" json:"description"`

    ContentModerationConfig *ContentModerationConfig `mandatory:"false" json:"contentModerationConfig"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (UpdateEndpointDetails) String

func (m UpdateEndpointDetails) String() string

func (UpdateEndpointDetails) ValidateEnumValue

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

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

type UpdateEndpointRequest

UpdateEndpointRequest wrapper for the UpdateEndpoint operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/UpdateEndpoint.go.html to see an example of how to use UpdateEndpointRequest.

type UpdateEndpointRequest struct {

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
    EndpointId *string `mandatory:"true" contributesTo:"path" name:"endpointId"`

    // The information to be updated.
    UpdateEndpointDetails `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (UpdateEndpointRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateEndpointRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateEndpointRequest) RetryPolicy

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

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

func (UpdateEndpointRequest) String

func (request UpdateEndpointRequest) String() string

func (UpdateEndpointRequest) ValidateEnumValue

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

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

type UpdateEndpointResponse

UpdateEndpointResponse wrapper for the UpdateEndpoint operation

type UpdateEndpointResponse struct {

    // The underlying http response
    RawResponse *http.Response

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request.
    // Use GetWorkRequest with this ID to track the status of the request.
    OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`

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

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

func (UpdateEndpointResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateEndpointResponse) String

func (response UpdateEndpointResponse) String() string

type UpdateModelDetails

UpdateModelDetails The data to update a custom model.

type UpdateModelDetails struct {

    // A user-friendly name.
    DisplayName *string `mandatory:"false" json:"displayName"`

    // An optional description of the model.
    Description *string `mandatory:"false" json:"description"`

    // The provider of the base model.
    Vendor *string `mandatory:"false" json:"vendor"`

    // The version of the model.
    Version *string `mandatory:"false" json:"version"`

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

    // 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/iaas/Content/General/Concepts/resourcetags.htm).
    // Example: `{"Operations": {"CostCenter": "42"}}`
    DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
}

func (UpdateModelDetails) String

func (m UpdateModelDetails) String() string

func (UpdateModelDetails) ValidateEnumValue

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

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

type UpdateModelRequest

UpdateModelRequest wrapper for the UpdateModel operation

# See also

Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.65.0/generativeai/UpdateModel.go.html to see an example of how to use UpdateModelRequest.

type UpdateModelRequest struct {

    // The model OCID
    ModelId *string `mandatory:"true" contributesTo:"path" name:"modelId"`

    // The model information to be updated.
    UpdateModelDetails `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.
    // The only valid characters for request IDs are letters, numbers,
    // underscore, and dash.
    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 (UpdateModelRequest) BinaryRequestBody

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

BinaryRequestBody implements the OCIRequest interface

func (UpdateModelRequest) HTTPRequest

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

HTTPRequest implements the OCIRequest interface

func (UpdateModelRequest) RetryPolicy

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

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

func (UpdateModelRequest) String

func (request UpdateModelRequest) String() string

func (UpdateModelRequest) ValidateEnumValue

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

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

type UpdateModelResponse

UpdateModelResponse wrapper for the UpdateModel operation

type UpdateModelResponse struct {

    // The underlying http response
    RawResponse *http.Response

    // The Model instance
    Model `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 (UpdateModelResponse) HTTPResponse

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

HTTPResponse implements the OCIResponse interface

func (UpdateModelResponse) String

func (response UpdateModelResponse) String() string

type VanillaTrainingConfig

VanillaTrainingConfig The Vanilla training method hyperparameters.

type VanillaTrainingConfig struct {

    // The maximum number of training epochs to run for.
    TotalTrainingEpochs *int `mandatory:"false" json:"totalTrainingEpochs"`

    // The initial learning rate to be used during training
    LearningRate *float64 `mandatory:"false" json:"learningRate"`

    // The batch size used during training.
    TrainingBatchSize *int `mandatory:"false" json:"trainingBatchSize"`

    // Stop training if the loss metric does not improve beyond 'early_stopping_threshold' for this many times of evaluation.
    EarlyStoppingPatience *int `mandatory:"false" json:"earlyStoppingPatience"`

    // How much the loss must improve to prevent early stopping.
    EarlyStoppingThreshold *float64 `mandatory:"false" json:"earlyStoppingThreshold"`

    // Determines how frequently to log model metrics.
    // Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics.
    LogModelMetricsIntervalInSteps *int `mandatory:"false" json:"logModelMetricsIntervalInSteps"`

    // The number of last layers to be fine-tuned.
    NumOfLastLayers *int `mandatory:"false" json:"numOfLastLayers"`
}

func (VanillaTrainingConfig) GetEarlyStoppingPatience

func (m VanillaTrainingConfig) GetEarlyStoppingPatience() *int

GetEarlyStoppingPatience returns EarlyStoppingPatience

func (VanillaTrainingConfig) GetEarlyStoppingThreshold

func (m VanillaTrainingConfig) GetEarlyStoppingThreshold() *float64

GetEarlyStoppingThreshold returns EarlyStoppingThreshold

func (VanillaTrainingConfig) GetLearningRate

func (m VanillaTrainingConfig) GetLearningRate() *float64

GetLearningRate returns LearningRate

func (VanillaTrainingConfig) GetLogModelMetricsIntervalInSteps

func (m VanillaTrainingConfig) GetLogModelMetricsIntervalInSteps() *int

GetLogModelMetricsIntervalInSteps returns LogModelMetricsIntervalInSteps

func (VanillaTrainingConfig) GetTotalTrainingEpochs

func (m VanillaTrainingConfig) GetTotalTrainingEpochs() *int

GetTotalTrainingEpochs returns TotalTrainingEpochs

func (VanillaTrainingConfig) GetTrainingBatchSize

func (m VanillaTrainingConfig) GetTrainingBatchSize() *int

GetTrainingBatchSize returns TrainingBatchSize

func (VanillaTrainingConfig) MarshalJSON

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

MarshalJSON marshals to json representation

func (VanillaTrainingConfig) String

func (m VanillaTrainingConfig) String() string

func (VanillaTrainingConfig) ValidateEnumValue

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

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

type WorkRequest

WorkRequest An asynchronous work request. When you start a long-running operation, the service creates a work request. Work requests help you monitor long-running operations. A work request is an activity log that lets you track each step in the operation's progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation.

type WorkRequest struct {

    // The asynchronous operation tracked by this work request.
    OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request.
    Id *string `mandatory:"true" json:"id"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

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

    // Shows the progress of the operation tracked by the work request, as a percentage of the total work
    // that must be performed.
    PercentComplete *float32 `mandatory:"true" json:"percentComplete"`

    // The date and time the work request was created, in the format defined by
    // RFC 3339 (https://tools.ietf.org/html/rfc3339).
    TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`

    // The date and time the work request was started, in the format defined by
    // RFC 3339 (https://tools.ietf.org/html/rfc3339).
    TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`

    // The date and time the work request was finished, in the format defined by
    // RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
    TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}

func (WorkRequest) String

func (m WorkRequest) String() string

func (WorkRequest) ValidateEnumValue

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

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

type WorkRequestError

WorkRequestError An error encountered while performing an operation that is tracked by this work request.

type WorkRequestError struct {

    // A machine-usable code for the error that occurred. For a list of error codes, see
    // API Errors (https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm).
    Code *string `mandatory:"true" json:"code"`

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

    // The date and time that the error occurred, in the format defined by
    // RFC 3339 (https://tools.ietf.org/html/rfc3339).
    Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

func (WorkRequestError) String

func (m WorkRequestError) String() string

func (WorkRequestError) ValidateEnumValue

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

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

type WorkRequestErrorCollection

WorkRequestErrorCollection A list of work request errors. Can contain errors and other information such as metadata.

type WorkRequestErrorCollection struct {

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

func (WorkRequestErrorCollection) String

func (m WorkRequestErrorCollection) String() string

func (WorkRequestErrorCollection) ValidateEnumValue

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

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

type WorkRequestLogEntry

WorkRequestLogEntry The log message from performing an operation that is tracked by this work request.

type WorkRequestLogEntry struct {

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

    // The date and time the log message was written, in the format defined by
    // RFC 3339 (https://tools.ietf.org/html/rfc3339).
    Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"`
}

func (WorkRequestLogEntry) String

func (m WorkRequestLogEntry) String() string

func (WorkRequestLogEntry) ValidateEnumValue

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

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

type WorkRequestLogEntryCollection

WorkRequestLogEntryCollection A list of work request logs. Can contain logs and other information such as metadata.

type WorkRequestLogEntryCollection struct {

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

func (WorkRequestLogEntryCollection) String

func (m WorkRequestLogEntryCollection) String() string

func (WorkRequestLogEntryCollection) ValidateEnumValue

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

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

type WorkRequestResource

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

type WorkRequestResource struct {

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

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

    // An OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource.
    Identifier *string `mandatory:"true" json:"identifier"`

    // The URI path that you can use for a GET request to access the resource metadata.
    EntityUri *string `mandatory:"false" json:"entityUri"`

    // Additional information that helps to explain the resource.
    Metadata map[string]string `mandatory:"false" json:"metadata"`
}

func (WorkRequestResource) String

func (m WorkRequestResource) String() string

func (WorkRequestResource) ValidateEnumValue

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

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

type WorkRequestResourceMetadataKeyEnum

WorkRequestResourceMetadataKeyEnum Enum with underlying type: string

type WorkRequestResourceMetadataKeyEnum string

Set of constants representing the allowable values for WorkRequestResourceMetadataKeyEnum

const (
    WorkRequestResourceMetadataKeyIsDryRun WorkRequestResourceMetadataKeyEnum = "IS_DRY_RUN"
)

func GetMappingWorkRequestResourceMetadataKeyEnum

func GetMappingWorkRequestResourceMetadataKeyEnum(val string) (WorkRequestResourceMetadataKeyEnum, bool)

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

func GetWorkRequestResourceMetadataKeyEnumValues

func GetWorkRequestResourceMetadataKeyEnumValues() []WorkRequestResourceMetadataKeyEnum

GetWorkRequestResourceMetadataKeyEnumValues Enumerates the set of values for WorkRequestResourceMetadataKeyEnum

type WorkRequestSummary

WorkRequestSummary Summary information about an asynchronous work request.

type WorkRequestSummary struct {

    // The asynchronous operation tracked by this work request.
    OperationType OperationTypeEnum `mandatory:"true" json:"operationType"`

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

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request.
    Id *string `mandatory:"true" json:"id"`

    // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request.
    CompartmentId *string `mandatory:"true" json:"compartmentId"`

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

    // Shows the progress of the operation tracked by the work request, as a percentage of the total work
    // that must be performed.
    PercentComplete *float32 `mandatory:"true" json:"percentComplete"`

    // The date and time the work request was created, in the format defined by
    // RFC 3339 (https://tools.ietf.org/html/rfc3339).
    TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"`

    // The date and time the work request was started, in the format defined by
    // RFC 3339 (https://tools.ietf.org/html/rfc3339).
    TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`

    // The date and time the work request was finished, in the format defined by
    // RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
    TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"`
}

func (WorkRequestSummary) String

func (m WorkRequestSummary) String() string

func (WorkRequestSummary) ValidateEnumValue

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

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

type WorkRequestSummaryCollection

WorkRequestSummaryCollection A list of work requests. Can contain work requests and other information such as metadata.

type WorkRequestSummaryCollection struct {

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

func (WorkRequestSummaryCollection) String

func (m WorkRequestSummaryCollection) String() string

func (WorkRequestSummaryCollection) ValidateEnumValue

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

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