Skip to content

Commit 3c5764e

Browse files
Releasing version 65.81.1
Releasing version 65.81.1
2 parents 97f5b2e + b202947 commit 3c5764e

28 files changed

+107
-267
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

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

7+
## 65.81.1 - 2024-12-18
8+
### Reverted
9+
- Revert changes in CloudBridge service to 65.80.0
10+
711
## 65.81.0 - 2024-12-17
812
### Added
913
- Support for backup retention locks on autonomous database create and update operations in the Database service

cloudbridge/analyze_assets_request_response.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,16 @@ type AnalyzeAssetsAssetTypeEnum string
140140
const (
141141
AnalyzeAssetsAssetTypeVmwareVm AnalyzeAssetsAssetTypeEnum = "VMWARE_VM"
142142
AnalyzeAssetsAssetTypeVm AnalyzeAssetsAssetTypeEnum = "VM"
143-
AnalyzeAssetsAssetTypeAwsEc2 AnalyzeAssetsAssetTypeEnum = "AWS_EC2"
144-
AnalyzeAssetsAssetTypeAwsEbs AnalyzeAssetsAssetTypeEnum = "AWS_EBS"
145143
)
146144

147145
var mappingAnalyzeAssetsAssetTypeEnum = map[string]AnalyzeAssetsAssetTypeEnum{
148146
"VMWARE_VM": AnalyzeAssetsAssetTypeVmwareVm,
149147
"VM": AnalyzeAssetsAssetTypeVm,
150-
"AWS_EC2": AnalyzeAssetsAssetTypeAwsEc2,
151-
"AWS_EBS": AnalyzeAssetsAssetTypeAwsEbs,
152148
}
153149

154150
var mappingAnalyzeAssetsAssetTypeEnumLowerCase = map[string]AnalyzeAssetsAssetTypeEnum{
155151
"vmware_vm": AnalyzeAssetsAssetTypeVmwareVm,
156152
"vm": AnalyzeAssetsAssetTypeVm,
157-
"aws_ec2": AnalyzeAssetsAssetTypeAwsEc2,
158-
"aws_ebs": AnalyzeAssetsAssetTypeAwsEbs,
159153
}
160154

161155
// GetAnalyzeAssetsAssetTypeEnumValues Enumerates the set of values for AnalyzeAssetsAssetTypeEnum
@@ -172,8 +166,6 @@ func GetAnalyzeAssetsAssetTypeEnumStringValues() []string {
172166
return []string{
173167
"VMWARE_VM",
174168
"VM",
175-
"AWS_EC2",
176-
"AWS_EBS",
177169
}
178170
}
179171

cloudbridge/asset.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,10 @@ func (m *asset) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) {
121121

122122
var err error
123123
switch m.AssetType {
124-
case "AWS_EC2":
125-
mm := AwsEc2Asset{}
126-
err = json.Unmarshal(data, &mm)
127-
return mm, err
128124
case "VMWARE_VM":
129125
mm := VmwareVmAsset{}
130126
err = json.Unmarshal(data, &mm)
131127
return mm, err
132-
case "AWS_EBS":
133-
mm := AwsEbsAsset{}
134-
err = json.Unmarshal(data, &mm)
135-
return mm, err
136128
case "VM":
137129
mm := VmAsset{}
138130
err = json.Unmarshal(data, &mm)

cloudbridge/asset_source.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ func (m *assetsource) UnmarshalPolymorphicJSON(data []byte) (interface{}, error)
131131
mm := VmWareAssetSource{}
132132
err = json.Unmarshal(data, &mm)
133133
return mm, err
134-
case "AWS":
135-
mm := AwsAssetSource{}
136-
err = json.Unmarshal(data, &mm)
137-
return mm, err
138134
default:
139135
common.Logf("Recieved unsupported enum value for AssetSource: %s.", m.Type)
140136
return *m, nil

cloudbridge/asset_source_credentials.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ type AssetSourceCredentials struct {
2222
Type AssetSourceCredentialsTypeEnum `mandatory:"true" json:"type"`
2323

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

cloudbridge/asset_source_credentials_type.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,15 @@ type AssetSourceCredentialsTypeEnum string
1818

1919
// Set of constants representing the allowable values for AssetSourceCredentialsTypeEnum
2020
const (
21-
AssetSourceCredentialsTypeBasic AssetSourceCredentialsTypeEnum = "BASIC"
22-
AssetSourceCredentialsTypeApiKey AssetSourceCredentialsTypeEnum = "API_KEY"
21+
AssetSourceCredentialsTypeBasic AssetSourceCredentialsTypeEnum = "BASIC"
2322
)
2423

2524
var mappingAssetSourceCredentialsTypeEnum = map[string]AssetSourceCredentialsTypeEnum{
26-
"BASIC": AssetSourceCredentialsTypeBasic,
27-
"API_KEY": AssetSourceCredentialsTypeApiKey,
25+
"BASIC": AssetSourceCredentialsTypeBasic,
2826
}
2927

3028
var mappingAssetSourceCredentialsTypeEnumLowerCase = map[string]AssetSourceCredentialsTypeEnum{
31-
"basic": AssetSourceCredentialsTypeBasic,
32-
"api_key": AssetSourceCredentialsTypeApiKey,
29+
"basic": AssetSourceCredentialsTypeBasic,
3330
}
3431

3532
// GetAssetSourceCredentialsTypeEnumValues Enumerates the set of values for AssetSourceCredentialsTypeEnum
@@ -45,7 +42,6 @@ func GetAssetSourceCredentialsTypeEnumValues() []AssetSourceCredentialsTypeEnum
4542
func GetAssetSourceCredentialsTypeEnumStringValues() []string {
4643
return []string{
4744
"BASIC",
48-
"API_KEY",
4945
}
5046
}
5147

cloudbridge/asset_source_summary.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ func (m *assetsourcesummary) UnmarshalPolymorphicJSON(data []byte) (interface{},
126126
mm := VmWareAssetSourceSummary{}
127127
err = json.Unmarshal(data, &mm)
128128
return mm, err
129-
case "AWS":
130-
mm := AwsAssetSourceSummary{}
131-
err = json.Unmarshal(data, &mm)
132-
return mm, err
133129
default:
134130
common.Logf("Recieved unsupported enum value for AssetSourceSummary: %s.", m.Type)
135131
return *m, nil

cloudbridge/asset_source_type.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,14 @@ type AssetSourceTypeEnum string
1919
// Set of constants representing the allowable values for AssetSourceTypeEnum
2020
const (
2121
AssetSourceTypeVmware AssetSourceTypeEnum = "VMWARE"
22-
AssetSourceTypeAws AssetSourceTypeEnum = "AWS"
2322
)
2423

2524
var mappingAssetSourceTypeEnum = map[string]AssetSourceTypeEnum{
2625
"VMWARE": AssetSourceTypeVmware,
27-
"AWS": AssetSourceTypeAws,
2826
}
2927

3028
var mappingAssetSourceTypeEnumLowerCase = map[string]AssetSourceTypeEnum{
3129
"vmware": AssetSourceTypeVmware,
32-
"aws": AssetSourceTypeAws,
3330
}
3431

3532
// GetAssetSourceTypeEnumValues Enumerates the set of values for AssetSourceTypeEnum
@@ -45,7 +42,6 @@ func GetAssetSourceTypeEnumValues() []AssetSourceTypeEnum {
4542
func GetAssetSourceTypeEnumStringValues() []string {
4643
return []string{
4744
"VMWARE",
48-
"AWS",
4945
}
5046
}
5147

cloudbridge/asset_type.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,16 @@ type AssetTypeEnum string
2020
const (
2121
AssetTypeVmwareVm AssetTypeEnum = "VMWARE_VM"
2222
AssetTypeVm AssetTypeEnum = "VM"
23-
AssetTypeAwsEc2 AssetTypeEnum = "AWS_EC2"
24-
AssetTypeAwsEbs AssetTypeEnum = "AWS_EBS"
2523
)
2624

2725
var mappingAssetTypeEnum = map[string]AssetTypeEnum{
2826
"VMWARE_VM": AssetTypeVmwareVm,
2927
"VM": AssetTypeVm,
30-
"AWS_EC2": AssetTypeAwsEc2,
31-
"AWS_EBS": AssetTypeAwsEbs,
3228
}
3329

3430
var mappingAssetTypeEnumLowerCase = map[string]AssetTypeEnum{
3531
"vmware_vm": AssetTypeVmwareVm,
3632
"vm": AssetTypeVm,
37-
"aws_ec2": AssetTypeAwsEc2,
38-
"aws_ebs": AssetTypeAwsEbs,
3933
}
4034

4135
// GetAssetTypeEnumValues Enumerates the set of values for AssetTypeEnum
@@ -52,8 +46,6 @@ func GetAssetTypeEnumStringValues() []string {
5246
return []string{
5347
"VMWARE_VM",
5448
"VM",
55-
"AWS_EC2",
56-
"AWS_EBS",
5749
}
5850
}
5951

cloudbridge/cloudbridge_discovery_client.go

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -749,64 +749,6 @@ func (client DiscoveryClient) listDiscoverySchedules(ctx context.Context, reques
749749
return response, err
750750
}
751751

752-
// ListSupportedCloudRegions Returns a list of supported cloud regions related to AssetSourceTypeParam.
753-
//
754-
// # See also
755-
//
756-
// 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.
757-
// A default retry strategy applies to this operation ListSupportedCloudRegions()
758-
func (client DiscoveryClient) ListSupportedCloudRegions(ctx context.Context, request ListSupportedCloudRegionsRequest) (response ListSupportedCloudRegionsResponse, err error) {
759-
var ociResponse common.OCIResponse
760-
policy := common.DefaultRetryPolicy()
761-
if client.RetryPolicy() != nil {
762-
policy = *client.RetryPolicy()
763-
}
764-
if request.RetryPolicy() != nil {
765-
policy = *request.RetryPolicy()
766-
}
767-
ociResponse, err = common.Retry(ctx, request, client.listSupportedCloudRegions, policy)
768-
if err != nil {
769-
if ociResponse != nil {
770-
if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil {
771-
opcRequestId := httpResponse.Header.Get("opc-request-id")
772-
response = ListSupportedCloudRegionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId}
773-
} else {
774-
response = ListSupportedCloudRegionsResponse{}
775-
}
776-
}
777-
return
778-
}
779-
if convertedResponse, ok := ociResponse.(ListSupportedCloudRegionsResponse); ok {
780-
response = convertedResponse
781-
} else {
782-
err = fmt.Errorf("failed to convert OCIResponse into ListSupportedCloudRegionsResponse")
783-
}
784-
return
785-
}
786-
787-
// listSupportedCloudRegions implements the OCIOperation interface (enables retrying operations)
788-
func (client DiscoveryClient) listSupportedCloudRegions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) {
789-
790-
httpRequest, err := request.HTTPRequest(http.MethodGet, "/supportedCloudRegions", binaryReqBody, extraHeaders)
791-
if err != nil {
792-
return nil, err
793-
}
794-
795-
var response ListSupportedCloudRegionsResponse
796-
var httpResponse *http.Response
797-
httpResponse, err = client.Call(ctx, &httpRequest)
798-
defer common.CloseBodyIfValid(httpResponse)
799-
response.RawResponse = httpResponse
800-
if err != nil {
801-
apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/OCB/20220509/SupportedCloudRegionSummary/ListSupportedCloudRegions"
802-
err = common.PostProcessServiceError(err, "Discovery", "ListSupportedCloudRegions", apiReferenceLink)
803-
return response, err
804-
}
805-
806-
err = common.UnmarshalResponse(httpResponse, &response)
807-
return response, err
808-
}
809-
810752
// RefreshAssetSource Initiates the process of asset metadata synchronization with the related asset source.
811753
//
812754
// # See also

0 commit comments

Comments
 (0)