Skip to content

Commit

Permalink
Releasing version 65.80.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oci-dex-release-bot committed Dec 10, 2024
1 parent 8b66eb7 commit 515ba95
Show file tree
Hide file tree
Showing 99 changed files with 4,557 additions and 355 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)

## 65.80.0 - 2024-12-10
### Added
- Support for Bring Your Own Key (BYOK) in the Database service
- Support for refreshing disaster recovery plans in the Disaster Recovery service
- Support for private access to service instances in the Visual Builder service
- Support for exadata fleet update and rollback maintenance cycle in the Fleet Application Management service
- Support for Bring Your Own License (BYOL) for windows virtual machines in the Compute service
- Support for cascading deletion of applications and runs in the Data Flow service
- Support for on-demand translation and auto language detection during file translation in the AI Language service
- Support for alias for endpoints in custom model flow and custom anonymization in the AI Language service
- Removed fallback to the deprecated Instance Metadata service (IMDS) V1 endpoint

### Breaking Changes
- Models `IdcsInfoDetails` and `AttachmentDetails` were removed from the Visual Builder service

## 65.79.0 - 2024-11-19
### Added
- Support for optional parameters for unified auditing in the Database service
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ $(TARGETS_STATIC): staticcheck-%:%
$(TARGETS_BUILD): build-%:%
@echo "building: $<"
@if [ \( $< = example \) ]; then\
(cd $< && go test -c);\
(cd $< && go test -parallel 5 -timeout 1200s -c);\
else\
(cd $< && find . -name '*_integ_test.go' | xargs -I{} mv {} ../integtest);\
(cd $< && go build -v);\
fi

$(TARGETS_TEST): test-%:%
@(cd $< && go test -v)
@(cd $< && go test -parallel 5 -timeout 1200s -v)

$(TARGETS_TESTFILTERED): testfiltered-%:%
@(cd $< && go test -v -run $(TEST_NAME))
@(cd $< && go test -parallel 5 -timeout 1200s -v -run $(TEST_NAME))

$(TARGETS_INTEG_TEST): test-%:%
@(cd $< && go test -v)
@(cd $< && go test -parallel 5 -timeout 1200s -v)

$(TARGETS_CLEAN): clean-%:%
@echo "cleaning $<"
Expand Down Expand Up @@ -111,5 +111,5 @@ release: gen-version build pre-doc

build-autotest:
@if [ -d $(AUTOTEST_DIR) ]; then\
(cd $(AUTOTEST_DIR) && gofmt -s -w . && gofmt -s -w . && go test -c);\
(cd $(AUTOTEST_DIR) && gofmt -s -w . && gofmt -s -w . && go test -parallel 5 -timeout 1200s -c);\
fi
3 changes: 3 additions & 0 deletions ailanguage/batch_detect_dominant_language_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type BatchDetectDominantLanguageDetails struct {
// List of Documents for detect language.
Documents []DominantLanguageDocument `mandatory:"true" json:"documents"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// Specifies whether to consider or ignore transliteration. For example "hi, aap kaise ho? sab kuch teek hai? I will call you tomorrow." would be detected as English when ignore transliteration=true, Hindi when ignoreTransliteration=false.
ShouldIgnoreTransliteration *bool `mandatory:"false" json:"shouldIgnoreTransliteration"`

Expand Down
3 changes: 3 additions & 0 deletions ailanguage/batch_detect_health_entity_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ type BatchDetectHealthEntityDetails struct {
// List of Documents for detect health entities.
Documents []TextDocument `mandatory:"true" json:"documents"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// List of NLP health ontologies to be linked
LinkOntologies []string `mandatory:"false" json:"linkOntologies"`

Expand Down
3 changes: 3 additions & 0 deletions ailanguage/batch_detect_language_entities_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type BatchDetectLanguageEntitiesDetails struct {
// List of Documents for detect entities.
Documents []TextDocument `mandatory:"true" json:"documents"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
CompartmentId *string `mandatory:"false" json:"compartmentId"`

Expand Down
3 changes: 3 additions & 0 deletions ailanguage/batch_detect_language_key_phrases_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type BatchDetectLanguageKeyPhrasesDetails struct {
// List of Documents for detect keyPhrases.
Documents []TextDocument `mandatory:"true" json:"documents"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
EndpointId *string `mandatory:"false" json:"endpointId"`

Expand Down
6 changes: 6 additions & 0 deletions ailanguage/batch_detect_language_pii_entities_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ type BatchDetectLanguagePiiEntitiesDetails struct {
// List of documents to detect personal identification information.
Documents []TextDocument `mandatory:"true" json:"documents"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
EndpointId *string `mandatory:"false" json:"endpointId"`

Expand Down Expand Up @@ -55,6 +58,7 @@ func (m BatchDetectLanguagePiiEntitiesDetails) ValidateEnumValue() (bool, error)
// UnmarshalJSON unmarshals from json
func (m *BatchDetectLanguagePiiEntitiesDetails) UnmarshalJSON(data []byte) (e error) {
model := struct {
Alias *string `json:"alias"`
EndpointId *string `json:"endpointId"`
CompartmentId *string `json:"compartmentId"`
Masking map[string]piientitymasking `json:"masking"`
Expand All @@ -67,6 +71,8 @@ func (m *BatchDetectLanguagePiiEntitiesDetails) UnmarshalJSON(data []byte) (e er
return
}
var nn interface{}
m.Alias = model.Alias

m.EndpointId = model.EndpointId

m.CompartmentId = model.CompartmentId
Expand Down
3 changes: 3 additions & 0 deletions ailanguage/batch_detect_language_sentiments_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type BatchDetectLanguageSentimentsDetails struct {
// List of Documents for detect sentiments.
Documents []TextDocument `mandatory:"true" json:"documents"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
EndpointId *string `mandatory:"false" json:"endpointId"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type BatchDetectLanguageTextClassificationDetails struct {
// List of Documents for detect text classification.
Documents []TextDocument `mandatory:"true" json:"documents"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
CompartmentId *string `mandatory:"false" json:"compartmentId"`

Expand Down
9 changes: 9 additions & 0 deletions ailanguage/batch_language_translation_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ type BatchLanguageTranslationDetails struct {
// List of documents for translation.
Documents []TextDocument `mandatory:"true" json:"documents"`

// Unique name to identify an endpoint to be used for inferencing
Alias *string `mandatory:"false" json:"alias"`

// The endpoint that has to be used for inferencing.
EndpointId *string `mandatory:"false" json:"endpointId"`

// List of words not to be translated
NoTranslate []string `mandatory:"false" json:"noTranslate"`

// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
CompartmentId *string `mandatory:"false" json:"compartmentId"`

Expand Down
51 changes: 51 additions & 0 deletions ailanguage/create_endpoint_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ type CreateEndpointDetails struct {
// A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`

// Compute infra type for endpoint.
ComputeType CreateEndpointDetailsComputeTypeEnum `mandatory:"false" json:"computeType,omitempty"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// A short description of the an endpoint.
Description *string `mandatory:"false" json:"description"`

Expand All @@ -54,8 +60,53 @@ func (m CreateEndpointDetails) String() string {
func (m CreateEndpointDetails) ValidateEnumValue() (bool, error) {
errMessage := []string{}

if _, ok := GetMappingCreateEndpointDetailsComputeTypeEnum(string(m.ComputeType)); !ok && m.ComputeType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComputeType: %s. Supported values are: %s.", m.ComputeType, strings.Join(GetCreateEndpointDetailsComputeTypeEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}

// CreateEndpointDetailsComputeTypeEnum Enum with underlying type: string
type CreateEndpointDetailsComputeTypeEnum string

// Set of constants representing the allowable values for CreateEndpointDetailsComputeTypeEnum
const (
CreateEndpointDetailsComputeTypeCpu CreateEndpointDetailsComputeTypeEnum = "CPU"
CreateEndpointDetailsComputeTypeGpu CreateEndpointDetailsComputeTypeEnum = "GPU"
)

var mappingCreateEndpointDetailsComputeTypeEnum = map[string]CreateEndpointDetailsComputeTypeEnum{
"CPU": CreateEndpointDetailsComputeTypeCpu,
"GPU": CreateEndpointDetailsComputeTypeGpu,
}

var mappingCreateEndpointDetailsComputeTypeEnumLowerCase = map[string]CreateEndpointDetailsComputeTypeEnum{
"cpu": CreateEndpointDetailsComputeTypeCpu,
"gpu": CreateEndpointDetailsComputeTypeGpu,
}

// GetCreateEndpointDetailsComputeTypeEnumValues Enumerates the set of values for CreateEndpointDetailsComputeTypeEnum
func GetCreateEndpointDetailsComputeTypeEnumValues() []CreateEndpointDetailsComputeTypeEnum {
values := make([]CreateEndpointDetailsComputeTypeEnum, 0)
for _, v := range mappingCreateEndpointDetailsComputeTypeEnum {
values = append(values, v)
}
return values
}

// GetCreateEndpointDetailsComputeTypeEnumStringValues Enumerates the set of values in String for CreateEndpointDetailsComputeTypeEnum
func GetCreateEndpointDetailsComputeTypeEnumStringValues() []string {
return []string{
"CPU",
"GPU",
}
}

// GetMappingCreateEndpointDetailsComputeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingCreateEndpointDetailsComputeTypeEnum(val string) (CreateEndpointDetailsComputeTypeEnum, bool) {
enum, ok := mappingCreateEndpointDetailsComputeTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
51 changes: 51 additions & 0 deletions ailanguage/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ type Endpoint struct {
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the model to associate with the endpoint.
ModelId *string `mandatory:"true" json:"modelId"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// Compute infra type for endpoint.
ComputeType EndpointComputeTypeEnum `mandatory:"false" json:"computeType,omitempty"`

// A short description of the endpoint.
Description *string `mandatory:"false" json:"description"`

Expand Down Expand Up @@ -79,12 +85,57 @@ func (m Endpoint) ValidateEnumValue() (bool, error) {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetEndpointLifecycleStateEnumStringValues(), ",")))
}

if _, ok := GetMappingEndpointComputeTypeEnum(string(m.ComputeType)); !ok && m.ComputeType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComputeType: %s. Supported values are: %s.", m.ComputeType, strings.Join(GetEndpointComputeTypeEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}

// EndpointComputeTypeEnum Enum with underlying type: string
type EndpointComputeTypeEnum string

// Set of constants representing the allowable values for EndpointComputeTypeEnum
const (
EndpointComputeTypeCpu EndpointComputeTypeEnum = "CPU"
EndpointComputeTypeGpu EndpointComputeTypeEnum = "GPU"
)

var mappingEndpointComputeTypeEnum = map[string]EndpointComputeTypeEnum{
"CPU": EndpointComputeTypeCpu,
"GPU": EndpointComputeTypeGpu,
}

var mappingEndpointComputeTypeEnumLowerCase = map[string]EndpointComputeTypeEnum{
"cpu": EndpointComputeTypeCpu,
"gpu": EndpointComputeTypeGpu,
}

// GetEndpointComputeTypeEnumValues Enumerates the set of values for EndpointComputeTypeEnum
func GetEndpointComputeTypeEnumValues() []EndpointComputeTypeEnum {
values := make([]EndpointComputeTypeEnum, 0)
for _, v := range mappingEndpointComputeTypeEnum {
values = append(values, v)
}
return values
}

// GetEndpointComputeTypeEnumStringValues Enumerates the set of values in String for EndpointComputeTypeEnum
func GetEndpointComputeTypeEnumStringValues() []string {
return []string{
"CPU",
"GPU",
}
}

// GetMappingEndpointComputeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingEndpointComputeTypeEnum(val string) (EndpointComputeTypeEnum, bool) {
enum, ok := mappingEndpointComputeTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}

// EndpointLifecycleStateEnum Enum with underlying type: string
type EndpointLifecycleStateEnum string

Expand Down
51 changes: 51 additions & 0 deletions ailanguage/endpoint_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ type EndpointSummary struct {
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the model to associate with the endpoint.
ModelId *string `mandatory:"true" json:"modelId"`

// Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
Alias *string `mandatory:"false" json:"alias"`

// Compute infra type for endpoint.
ComputeType EndpointSummaryComputeTypeEnum `mandatory:"false" json:"computeType,omitempty"`

// A short description of the endpoint.
Description *string `mandatory:"false" json:"description"`

Expand Down Expand Up @@ -76,8 +82,53 @@ func (m EndpointSummary) ValidateEnumValue() (bool, error) {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetEndpointLifecycleStateEnumStringValues(), ",")))
}

if _, ok := GetMappingEndpointSummaryComputeTypeEnum(string(m.ComputeType)); !ok && m.ComputeType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ComputeType: %s. Supported values are: %s.", m.ComputeType, strings.Join(GetEndpointSummaryComputeTypeEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}

// EndpointSummaryComputeTypeEnum Enum with underlying type: string
type EndpointSummaryComputeTypeEnum string

// Set of constants representing the allowable values for EndpointSummaryComputeTypeEnum
const (
EndpointSummaryComputeTypeCpu EndpointSummaryComputeTypeEnum = "CPU"
EndpointSummaryComputeTypeGpu EndpointSummaryComputeTypeEnum = "GPU"
)

var mappingEndpointSummaryComputeTypeEnum = map[string]EndpointSummaryComputeTypeEnum{
"CPU": EndpointSummaryComputeTypeCpu,
"GPU": EndpointSummaryComputeTypeGpu,
}

var mappingEndpointSummaryComputeTypeEnumLowerCase = map[string]EndpointSummaryComputeTypeEnum{
"cpu": EndpointSummaryComputeTypeCpu,
"gpu": EndpointSummaryComputeTypeGpu,
}

// GetEndpointSummaryComputeTypeEnumValues Enumerates the set of values for EndpointSummaryComputeTypeEnum
func GetEndpointSummaryComputeTypeEnumValues() []EndpointSummaryComputeTypeEnum {
values := make([]EndpointSummaryComputeTypeEnum, 0)
for _, v := range mappingEndpointSummaryComputeTypeEnum {
values = append(values, v)
}
return values
}

// GetEndpointSummaryComputeTypeEnumStringValues Enumerates the set of values in String for EndpointSummaryComputeTypeEnum
func GetEndpointSummaryComputeTypeEnumStringValues() []string {
return []string{
"CPU",
"GPU",
}
}

// GetMappingEndpointSummaryComputeTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingEndpointSummaryComputeTypeEnum(val string) (EndpointSummaryComputeTypeEnum, bool) {
enum, ok := mappingEndpointSummaryComputeTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
Loading

0 comments on commit 515ba95

Please sign in to comment.