Skip to content

Commit

Permalink
Releasing version 65.81.1
Browse files Browse the repository at this point in the history
Releasing version 65.81.1
  • Loading branch information
oci-dex-release-bot authored Dec 18, 2024
2 parents 97f5b2e + b202947 commit 3c5764e
Show file tree
Hide file tree
Showing 28 changed files with 107 additions and 267 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

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

## 65.81.1 - 2024-12-18
### Reverted
- Revert changes in CloudBridge service to 65.80.0

## 65.81.0 - 2024-12-17
### Added
- Support for backup retention locks on autonomous database create and update operations in the Database service
Expand Down
8 changes: 0 additions & 8 deletions cloudbridge/analyze_assets_request_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,22 +140,16 @@ type AnalyzeAssetsAssetTypeEnum string
const (
AnalyzeAssetsAssetTypeVmwareVm AnalyzeAssetsAssetTypeEnum = "VMWARE_VM"
AnalyzeAssetsAssetTypeVm AnalyzeAssetsAssetTypeEnum = "VM"
AnalyzeAssetsAssetTypeAwsEc2 AnalyzeAssetsAssetTypeEnum = "AWS_EC2"
AnalyzeAssetsAssetTypeAwsEbs AnalyzeAssetsAssetTypeEnum = "AWS_EBS"
)

var mappingAnalyzeAssetsAssetTypeEnum = map[string]AnalyzeAssetsAssetTypeEnum{
"VMWARE_VM": AnalyzeAssetsAssetTypeVmwareVm,
"VM": AnalyzeAssetsAssetTypeVm,
"AWS_EC2": AnalyzeAssetsAssetTypeAwsEc2,
"AWS_EBS": AnalyzeAssetsAssetTypeAwsEbs,
}

var mappingAnalyzeAssetsAssetTypeEnumLowerCase = map[string]AnalyzeAssetsAssetTypeEnum{
"vmware_vm": AnalyzeAssetsAssetTypeVmwareVm,
"vm": AnalyzeAssetsAssetTypeVm,
"aws_ec2": AnalyzeAssetsAssetTypeAwsEc2,
"aws_ebs": AnalyzeAssetsAssetTypeAwsEbs,
}

// GetAnalyzeAssetsAssetTypeEnumValues Enumerates the set of values for AnalyzeAssetsAssetTypeEnum
Expand All @@ -172,8 +166,6 @@ func GetAnalyzeAssetsAssetTypeEnumStringValues() []string {
return []string{
"VMWARE_VM",
"VM",
"AWS_EC2",
"AWS_EBS",
}
}

Expand Down
8 changes: 0 additions & 8 deletions cloudbridge/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,10 @@ func (m *asset) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) {

var err error
switch m.AssetType {
case "AWS_EC2":
mm := AwsEc2Asset{}
err = json.Unmarshal(data, &mm)
return mm, err
case "VMWARE_VM":
mm := VmwareVmAsset{}
err = json.Unmarshal(data, &mm)
return mm, err
case "AWS_EBS":
mm := AwsEbsAsset{}
err = json.Unmarshal(data, &mm)
return mm, err
case "VM":
mm := VmAsset{}
err = json.Unmarshal(data, &mm)
Expand Down
4 changes: 0 additions & 4 deletions cloudbridge/asset_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ func (m *assetsource) UnmarshalPolymorphicJSON(data []byte) (interface{}, error)
mm := VmWareAssetSource{}
err = json.Unmarshal(data, &mm)
return mm, err
case "AWS":
mm := AwsAssetSource{}
err = json.Unmarshal(data, &mm)
return mm, err
default:
common.Logf("Recieved unsupported enum value for AssetSource: %s.", m.Type)
return *m, nil
Expand Down
7 changes: 2 additions & 5 deletions cloudbridge/asset_source_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ type AssetSourceCredentials struct {
Type AssetSourceCredentialsTypeEnum `mandatory:"true" json:"type"`

// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the secret in a vault.
// If the type of the credentials is `BASIC`, the secret must contain the username and
// password in JSON format, which is in the form of `{ "username": "<User>", "password": "example-password" }`.
// If the type of the credentials is `API_KEY`, the secret must contain the accessKeyId and
// secretAccessKey in JSON format,
// which is in the form of `{ "accessKeyId": "<AccessKey>", "secretAccessKey": "<AccessKeyValue>" }`.
// If the the type of the credentials is BASIC`, the secret must contain the username and
// password in JSON format, which is in the form of `{ "username": "<VMwareUser>", "password": "<VMwarePassword>" }`.
SecretId *string `mandatory:"true" json:"secretId"`
}

Expand Down
10 changes: 3 additions & 7 deletions cloudbridge/asset_source_credentials_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ type AssetSourceCredentialsTypeEnum string

// Set of constants representing the allowable values for AssetSourceCredentialsTypeEnum
const (
AssetSourceCredentialsTypeBasic AssetSourceCredentialsTypeEnum = "BASIC"
AssetSourceCredentialsTypeApiKey AssetSourceCredentialsTypeEnum = "API_KEY"
AssetSourceCredentialsTypeBasic AssetSourceCredentialsTypeEnum = "BASIC"
)

var mappingAssetSourceCredentialsTypeEnum = map[string]AssetSourceCredentialsTypeEnum{
"BASIC": AssetSourceCredentialsTypeBasic,
"API_KEY": AssetSourceCredentialsTypeApiKey,
"BASIC": AssetSourceCredentialsTypeBasic,
}

var mappingAssetSourceCredentialsTypeEnumLowerCase = map[string]AssetSourceCredentialsTypeEnum{
"basic": AssetSourceCredentialsTypeBasic,
"api_key": AssetSourceCredentialsTypeApiKey,
"basic": AssetSourceCredentialsTypeBasic,
}

// GetAssetSourceCredentialsTypeEnumValues Enumerates the set of values for AssetSourceCredentialsTypeEnum
Expand All @@ -45,7 +42,6 @@ func GetAssetSourceCredentialsTypeEnumValues() []AssetSourceCredentialsTypeEnum
func GetAssetSourceCredentialsTypeEnumStringValues() []string {
return []string{
"BASIC",
"API_KEY",
}
}

Expand Down
4 changes: 0 additions & 4 deletions cloudbridge/asset_source_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ func (m *assetsourcesummary) UnmarshalPolymorphicJSON(data []byte) (interface{},
mm := VmWareAssetSourceSummary{}
err = json.Unmarshal(data, &mm)
return mm, err
case "AWS":
mm := AwsAssetSourceSummary{}
err = json.Unmarshal(data, &mm)
return mm, err
default:
common.Logf("Recieved unsupported enum value for AssetSourceSummary: %s.", m.Type)
return *m, nil
Expand Down
4 changes: 0 additions & 4 deletions cloudbridge/asset_source_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@ type AssetSourceTypeEnum string
// Set of constants representing the allowable values for AssetSourceTypeEnum
const (
AssetSourceTypeVmware AssetSourceTypeEnum = "VMWARE"
AssetSourceTypeAws AssetSourceTypeEnum = "AWS"
)

var mappingAssetSourceTypeEnum = map[string]AssetSourceTypeEnum{
"VMWARE": AssetSourceTypeVmware,
"AWS": AssetSourceTypeAws,
}

var mappingAssetSourceTypeEnumLowerCase = map[string]AssetSourceTypeEnum{
"vmware": AssetSourceTypeVmware,
"aws": AssetSourceTypeAws,
}

// GetAssetSourceTypeEnumValues Enumerates the set of values for AssetSourceTypeEnum
Expand All @@ -45,7 +42,6 @@ func GetAssetSourceTypeEnumValues() []AssetSourceTypeEnum {
func GetAssetSourceTypeEnumStringValues() []string {
return []string{
"VMWARE",
"AWS",
}
}

Expand Down
8 changes: 0 additions & 8 deletions cloudbridge/asset_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,16 @@ type AssetTypeEnum string
const (
AssetTypeVmwareVm AssetTypeEnum = "VMWARE_VM"
AssetTypeVm AssetTypeEnum = "VM"
AssetTypeAwsEc2 AssetTypeEnum = "AWS_EC2"
AssetTypeAwsEbs AssetTypeEnum = "AWS_EBS"
)

var mappingAssetTypeEnum = map[string]AssetTypeEnum{
"VMWARE_VM": AssetTypeVmwareVm,
"VM": AssetTypeVm,
"AWS_EC2": AssetTypeAwsEc2,
"AWS_EBS": AssetTypeAwsEbs,
}

var mappingAssetTypeEnumLowerCase = map[string]AssetTypeEnum{
"vmware_vm": AssetTypeVmwareVm,
"vm": AssetTypeVm,
"aws_ec2": AssetTypeAwsEc2,
"aws_ebs": AssetTypeAwsEbs,
}

// GetAssetTypeEnumValues Enumerates the set of values for AssetTypeEnum
Expand All @@ -52,8 +46,6 @@ func GetAssetTypeEnumStringValues() []string {
return []string{
"VMWARE_VM",
"VM",
"AWS_EC2",
"AWS_EBS",
}
}

Expand Down
58 changes: 0 additions & 58 deletions cloudbridge/cloudbridge_discovery_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,64 +749,6 @@ func (client DiscoveryClient) listDiscoverySchedules(ctx context.Context, reques
return response, err
}

// ListSupportedCloudRegions Returns a list of supported cloud regions related to AssetSourceTypeParam.
//
// # See also
//
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/cloudbridge/ListSupportedCloudRegions.go.html to see an example of how to use ListSupportedCloudRegions API.
// A default retry strategy applies to this operation ListSupportedCloudRegions()
func (client DiscoveryClient) ListSupportedCloudRegions(ctx context.Context, request ListSupportedCloudRegionsRequest) (response ListSupportedCloudRegionsResponse, err error) {
var ociResponse common.OCIResponse
policy := common.DefaultRetryPolicy()
if client.RetryPolicy() != nil {
policy = *client.RetryPolicy()
}
if request.RetryPolicy() != nil {
policy = *request.RetryPolicy()
}
ociResponse, err = common.Retry(ctx, request, client.listSupportedCloudRegions, policy)
if err != nil {
if ociResponse != nil {
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
opcRequestId := httpResponse.Header.Get("opc-request-id")
response = ListSupportedCloudRegionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
} else {
response = ListSupportedCloudRegionsResponse{}
}
}
return
}
if convertedResponse, ok := ociResponse.(ListSupportedCloudRegionsResponse); ok {
response = convertedResponse
} else {
err = fmt.Errorf("failed to convert OCIResponse into ListSupportedCloudRegionsResponse")
}
return
}

// listSupportedCloudRegions implements the OCIOperation interface (enables retrying operations)
func (client DiscoveryClient) listSupportedCloudRegions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) {

httpRequest, err := request.HTTPRequest(http.MethodGet, "/supportedCloudRegions", binaryReqBody, extraHeaders)
if err != nil {
return nil, err
}

var response ListSupportedCloudRegionsResponse
var httpResponse *http.Response
httpResponse, err = client.Call(ctx, &httpRequest)
defer common.CloseBodyIfValid(httpResponse)
response.RawResponse = httpResponse
if err != nil {
apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/OCB/20220509/SupportedCloudRegionSummary/ListSupportedCloudRegions"
err = common.PostProcessServiceError(err, "Discovery", "ListSupportedCloudRegions", apiReferenceLink)
return response, err
}

err = common.UnmarshalResponse(httpResponse, &response)
return response, err
}

// RefreshAssetSource Initiates the process of asset metadata synchronization with the related asset source.
//
// # See also
Expand Down
8 changes: 0 additions & 8 deletions cloudbridge/create_asset_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,10 @@ func (m *createassetdetails) UnmarshalPolymorphicJSON(data []byte) (interface{},

var err error
switch m.AssetType {
case "AWS_EBS":
mm := CreateAwsEbsAssetDetails{}
err = json.Unmarshal(data, &mm)
return mm, err
case "VMWARE_VM":
mm := CreateVmwareVmAssetDetails{}
err = json.Unmarshal(data, &mm)
return mm, err
case "AWS_EC2":
mm := CreateAwsEc2AssetDetails{}
err = json.Unmarshal(data, &mm)
return mm, err
default:
common.Logf("Recieved unsupported enum value for CreateAssetDetails: %s.", m.AssetType)
return *m, nil
Expand Down
4 changes: 0 additions & 4 deletions cloudbridge/create_asset_source_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ func (m *createassetsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interf
mm := CreateVmWareAssetSourceDetails{}
err = json.Unmarshal(data, &mm)
return mm, err
case "AWS":
mm := CreateAwsAssetSourceDetails{}
err = json.Unmarshal(data, &mm)
return mm, err
default:
common.Logf("Recieved unsupported enum value for CreateAssetSourceDetails: %s.", m.Type)
return *m, nil
Expand Down
2 changes: 1 addition & 1 deletion cloudbridge/create_vm_ware_asset_source_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"
)

// CreateVmWareAssetSourceDetails VMware asset source creation request.
// CreateVmWareAssetSourceDetails Description of an asset source.
type CreateVmWareAssetSourceDetails struct {

// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
Expand Down
16 changes: 8 additions & 8 deletions cloudbridge/create_vmware_vm_asset_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ type CreateVmwareVmAssetDetails struct {
// The key of the asset from the external environment.
ExternalAssetKey *string `mandatory:"true" json:"externalAssetKey"`

Compute *ComputeProperties `mandatory:"true" json:"compute"`

Vm *VmProperties `mandatory:"true" json:"vm"`

VmwareVm *VmwareVmProperties `mandatory:"true" json:"vmwareVm"`

VmwareVCenter *VmwareVCenterProperties `mandatory:"true" json:"vmwareVCenter"`

// Asset display name.
DisplayName *string `mandatory:"false" json:"displayName"`

Expand All @@ -54,6 +46,14 @@ type CreateVmwareVmAssetDetails struct {
// 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"`

Compute *ComputeProperties `mandatory:"false" json:"compute"`

Vm *VmProperties `mandatory:"false" json:"vm"`

VmwareVm *VmwareVmProperties `mandatory:"false" json:"vmwareVm"`

VmwareVCenter *VmwareVCenterProperties `mandatory:"false" json:"vmwareVCenter"`
}

// GetDisplayName returns DisplayName
Expand Down
3 changes: 0 additions & 3 deletions cloudbridge/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ type Disk struct {

// The disk persistent mode.
PersistentMode *string `mandatory:"false" json:"persistentMode"`

// Indicates that CBT (change disk tracking) is enabled for this virtual disk.
IsCbtEnabled *bool `mandatory:"false" json:"isCbtEnabled"`
}

func (m Disk) String() string {
Expand Down
8 changes: 4 additions & 4 deletions cloudbridge/import_inventory_via_assets_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ type ImportInventoryViaAssetsDetails struct {
// The OCID of the compartmentId that resources import.
CompartmentId *string `mandatory:"true" json:"compartmentId"`

// The file body to be sent in the request.
Data []byte `mandatory:"true" json:"data"`

// The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no
// predefined name, type, or namespace/scope. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
Expand All @@ -35,8 +32,11 @@ type ImportInventoryViaAssetsDetails struct {
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`

// The file body to be sent in the request.
Data []byte `mandatory:"false" json:"data"`

// The type of asset.
AssetType AssetTypeEnum `mandatory:"true" json:"assetType"`
AssetType AssetTypeEnum `mandatory:"false" json:"assetType,omitempty"`
}

// GetCompartmentId returns CompartmentId
Expand Down
8 changes: 0 additions & 8 deletions cloudbridge/list_assets_request_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,16 @@ type ListAssetsAssetTypeEnum string
const (
ListAssetsAssetTypeVmwareVm ListAssetsAssetTypeEnum = "VMWARE_VM"
ListAssetsAssetTypeVm ListAssetsAssetTypeEnum = "VM"
ListAssetsAssetTypeAwsEc2 ListAssetsAssetTypeEnum = "AWS_EC2"
ListAssetsAssetTypeAwsEbs ListAssetsAssetTypeEnum = "AWS_EBS"
)

var mappingListAssetsAssetTypeEnum = map[string]ListAssetsAssetTypeEnum{
"VMWARE_VM": ListAssetsAssetTypeVmwareVm,
"VM": ListAssetsAssetTypeVm,
"AWS_EC2": ListAssetsAssetTypeAwsEc2,
"AWS_EBS": ListAssetsAssetTypeAwsEbs,
}

var mappingListAssetsAssetTypeEnumLowerCase = map[string]ListAssetsAssetTypeEnum{
"vmware_vm": ListAssetsAssetTypeVmwareVm,
"vm": ListAssetsAssetTypeVm,
"aws_ec2": ListAssetsAssetTypeAwsEc2,
"aws_ebs": ListAssetsAssetTypeAwsEbs,
}

// GetListAssetsAssetTypeEnumValues Enumerates the set of values for ListAssetsAssetTypeEnum
Expand All @@ -178,8 +172,6 @@ func GetListAssetsAssetTypeEnumStringValues() []string {
return []string{
"VMWARE_VM",
"VM",
"AWS_EC2",
"AWS_EBS",
}
}

Expand Down
Loading

0 comments on commit 3c5764e

Please sign in to comment.