-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing version 65.56.1
- Loading branch information
Showing
113 changed files
with
12,319 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
// Code generated. DO NOT EDIT. | ||
|
||
// Generative AI Service Management API | ||
// | ||
// OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings. | ||
// Use the Generative AI service management API to create and manage DedicatedAiCluster, Endpoint, Model, and WorkRequest in the Generative AI service. For example, create a custom model by fine-tuning an out-of-the-box model using your own data, on a fine-tuning dedicated AI cluster. Then, create a hosting dedicated AI cluster with an endpoint to host your custom model. | ||
// To access your custom model endpoints, or to try the out-of-the-box models to generate text, summarize, and create text embeddings see the Generative AI Inference API (https://docs.cloud.oracle.com/#/en/generative-ai-inference/latest/). | ||
// To learn more about the service, see the Generative AI documentation (https://docs.cloud.oracle.com/iaas/Content/generative-ai/home.htm). | ||
// | ||
|
||
package generativeai | ||
|
||
import ( | ||
"strings" | ||
) | ||
|
||
// 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" | ||
) | ||
|
||
var mappingActionTypeEnum = map[string]ActionTypeEnum{ | ||
"CREATED": ActionTypeCreated, | ||
"UPDATED": ActionTypeUpdated, | ||
"DELETED": ActionTypeDeleted, | ||
"IN_PROGRESS": ActionTypeInProgress, | ||
"RELATED": ActionTypeRelated, | ||
"FAILED": ActionTypeFailed, | ||
} | ||
|
||
var mappingActionTypeEnumLowerCase = map[string]ActionTypeEnum{ | ||
"created": ActionTypeCreated, | ||
"updated": ActionTypeUpdated, | ||
"deleted": ActionTypeDeleted, | ||
"in_progress": ActionTypeInProgress, | ||
"related": ActionTypeRelated, | ||
"failed": ActionTypeFailed, | ||
} | ||
|
||
// GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum | ||
func GetActionTypeEnumValues() []ActionTypeEnum { | ||
values := make([]ActionTypeEnum, 0) | ||
for _, v := range mappingActionTypeEnum { | ||
values = append(values, v) | ||
} | ||
return values | ||
} | ||
|
||
// GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum | ||
func GetActionTypeEnumStringValues() []string { | ||
return []string{ | ||
"CREATED", | ||
"UPDATED", | ||
"DELETED", | ||
"IN_PROGRESS", | ||
"RELATED", | ||
"FAILED", | ||
} | ||
} | ||
|
||
// GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum | ||
func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool) { | ||
enum, ok := mappingActionTypeEnumLowerCase[strings.ToLower(val)] | ||
return enum, ok | ||
} |
42 changes: 42 additions & 0 deletions
42
generativeai/change_dedicated_ai_cluster_compartment_details.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
// Code generated. DO NOT EDIT. | ||
|
||
// Generative AI Service Management API | ||
// | ||
// OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings. | ||
// Use the Generative AI service management API to create and manage DedicatedAiCluster, Endpoint, Model, and WorkRequest in the Generative AI service. For example, create a custom model by fine-tuning an out-of-the-box model using your own data, on a fine-tuning dedicated AI cluster. Then, create a hosting dedicated AI cluster with an endpoint to host your custom model. | ||
// To access your custom model endpoints, or to try the out-of-the-box models to generate text, summarize, and create text embeddings see the Generative AI Inference API (https://docs.cloud.oracle.com/#/en/generative-ai-inference/latest/). | ||
// To learn more about the service, see the Generative AI documentation (https://docs.cloud.oracle.com/iaas/Content/generative-ai/home.htm). | ||
// | ||
|
||
package generativeai | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"strings" | ||
) | ||
|
||
// 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 (m ChangeDedicatedAiClusterCompartmentDetails) String() string { | ||
return common.PointerString(m) | ||
} | ||
|
||
// 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 | ||
func (m ChangeDedicatedAiClusterCompartmentDetails) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
|
||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} |
106 changes: 106 additions & 0 deletions
106
generativeai/change_dedicated_ai_cluster_compartment_request_response.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
// Code generated. DO NOT EDIT. | ||
|
||
package generativeai | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"net/http" | ||
"strings" | ||
) | ||
|
||
// ChangeDedicatedAiClusterCompartmentRequest wrapper for the ChangeDedicatedAiClusterCompartment operation | ||
// | ||
// # See also | ||
// | ||
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/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 (request ChangeDedicatedAiClusterCompartmentRequest) String() string { | ||
return common.PointerString(request) | ||
} | ||
|
||
// HTTPRequest implements the OCIRequest interface | ||
func (request ChangeDedicatedAiClusterCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { | ||
|
||
_, err := request.ValidateEnumValue() | ||
if err != nil { | ||
return http.Request{}, err | ||
} | ||
return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) | ||
} | ||
|
||
// BinaryRequestBody implements the OCIRequest interface | ||
func (request ChangeDedicatedAiClusterCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { | ||
|
||
return nil, false | ||
|
||
} | ||
|
||
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. | ||
func (request ChangeDedicatedAiClusterCompartmentRequest) RetryPolicy() *common.RetryPolicy { | ||
return request.RequestMetadata.RetryPolicy | ||
} | ||
|
||
// 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 | ||
func (request ChangeDedicatedAiClusterCompartmentRequest) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} | ||
|
||
// 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 (response ChangeDedicatedAiClusterCompartmentResponse) String() string { | ||
return common.PointerString(response) | ||
} | ||
|
||
// HTTPResponse implements the OCIResponse interface | ||
func (response ChangeDedicatedAiClusterCompartmentResponse) HTTPResponse() *http.Response { | ||
return response.RawResponse | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
// Code generated. DO NOT EDIT. | ||
|
||
// Generative AI Service Management API | ||
// | ||
// OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings. | ||
// Use the Generative AI service management API to create and manage DedicatedAiCluster, Endpoint, Model, and WorkRequest in the Generative AI service. For example, create a custom model by fine-tuning an out-of-the-box model using your own data, on a fine-tuning dedicated AI cluster. Then, create a hosting dedicated AI cluster with an endpoint to host your custom model. | ||
// To access your custom model endpoints, or to try the out-of-the-box models to generate text, summarize, and create text embeddings see the Generative AI Inference API (https://docs.cloud.oracle.com/#/en/generative-ai-inference/latest/). | ||
// To learn more about the service, see the Generative AI documentation (https://docs.cloud.oracle.com/iaas/Content/generative-ai/home.htm). | ||
// | ||
|
||
package generativeai | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"strings" | ||
) | ||
|
||
// 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 (m ChangeEndpointCompartmentDetails) String() string { | ||
return common.PointerString(m) | ||
} | ||
|
||
// 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 | ||
func (m ChangeEndpointCompartmentDetails) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
|
||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} |
Oops, something went wrong.