Skip to content

Commit 57faae8

Browse files
Releasing version 65.77.0
Releasing version 65.77.0
2 parents 6b26b32 + 83a9a45 commit 57faae8

File tree

495 files changed

+25576
-1929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

495 files changed

+25576
-1929
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ 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.77.0 - 2024-10-22
8+
### Added
9+
- Support for resource locking in the File storage service
10+
- Support for customer managed keys via Azure key vault and Amazon Web Services key vault in the Database service
11+
- Support for generated tokens on create secret operations in the Identity Domains service
12+
- Support for creating and updating Amazon Web Services asset-sources, EC2 and EBS assets in the Cloud Bridge service
13+
- Support for listing Amazon Web Services regions which are available for discovery and migration in the Cloud Bridge service
14+
- Support for model backup retention and restore in the Datascience service
15+
- Support for host capacity planning for host IO metrics in the Operations Insight service
16+
- Support for FastConnect redundancy in the Compute service
17+
- Support for create, publish, clone and delete operations on runbooks in the Fleet Application Management service
18+
- Support for platform configurations and metadata management in the Fleet Application Management service
19+
- Support for management of compliance policy rules in the Fleet Application Management service
20+
- Support for compliance report details based on compliance policy in the Fleet Application Management service
21+
- Support for administrative settings like auto discovery frequency in the Fleet Application Management service
22+
23+
### Breaking Changes
24+
- The operation `UpdatePlugin` was removed from the `OcbAgentSvcClient` client in the Cloud Bridge service
25+
- The properties `Compute`, `VmwareVM`, and `VmwareVCenter` were made mandatory in the request model `CreateVmwareVmAssetDetails` in the Cloud Bridge service
26+
- The property `Data` was made mandatory in the request model `ImportInventoryViaAssetsDetail` in the Cloud Bridge service
27+
- The enum `HOST_CONTAINERS` was removed from the enum `MetricNameEnum` in the model `HostPerformanceMetricGroup` in the Operations Insight service
28+
729
## 65.76.0 - 2024-10-15
830
### Added
931
- Support for open id connect discovery in the Oracle Kubernetes Engine service

cloudbridge/analyze_assets_request_response.go

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

145147
var mappingAnalyzeAssetsAssetTypeEnum = map[string]AnalyzeAssetsAssetTypeEnum{
146148
"VMWARE_VM": AnalyzeAssetsAssetTypeVmwareVm,
147149
"VM": AnalyzeAssetsAssetTypeVm,
150+
"AWS_EC2": AnalyzeAssetsAssetTypeAwsEc2,
151+
"AWS_EBS": AnalyzeAssetsAssetTypeAwsEbs,
148152
}
149153

150154
var mappingAnalyzeAssetsAssetTypeEnumLowerCase = map[string]AnalyzeAssetsAssetTypeEnum{
151155
"vmware_vm": AnalyzeAssetsAssetTypeVmwareVm,
152156
"vm": AnalyzeAssetsAssetTypeVm,
157+
"aws_ec2": AnalyzeAssetsAssetTypeAwsEc2,
158+
"aws_ebs": AnalyzeAssetsAssetTypeAwsEbs,
153159
}
154160

155161
// GetAnalyzeAssetsAssetTypeEnumValues Enumerates the set of values for AnalyzeAssetsAssetTypeEnum
@@ -166,6 +172,8 @@ func GetAnalyzeAssetsAssetTypeEnumStringValues() []string {
166172
return []string{
167173
"VMWARE_VM",
168174
"VM",
175+
"AWS_EC2",
176+
"AWS_EBS",
169177
}
170178
}
171179

cloudbridge/asset.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,18 @@ 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
124128
case "VMWARE_VM":
125129
mm := VmwareVmAsset{}
126130
err = json.Unmarshal(data, &mm)
127131
return mm, err
132+
case "AWS_EBS":
133+
mm := AwsEbsAsset{}
134+
err = json.Unmarshal(data, &mm)
135+
return mm, err
128136
case "VM":
129137
mm := VmAsset{}
130138
err = json.Unmarshal(data, &mm)

cloudbridge/asset_source.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ 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
134138
default:
135139
common.Logf("Recieved unsupported enum value for AssetSource: %s.", m.Type)
136140
return *m, nil

cloudbridge/asset_source_credentials.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ 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 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>" }`.
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": "<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>" }`.
2730
SecretId *string `mandatory:"true" json:"secretId"`
2831
}
2932

cloudbridge/asset_source_credentials_type.go

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

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

2425
var mappingAssetSourceCredentialsTypeEnum = map[string]AssetSourceCredentialsTypeEnum{
25-
"BASIC": AssetSourceCredentialsTypeBasic,
26+
"BASIC": AssetSourceCredentialsTypeBasic,
27+
"API_KEY": AssetSourceCredentialsTypeApiKey,
2628
}
2729

2830
var mappingAssetSourceCredentialsTypeEnumLowerCase = map[string]AssetSourceCredentialsTypeEnum{
29-
"basic": AssetSourceCredentialsTypeBasic,
31+
"basic": AssetSourceCredentialsTypeBasic,
32+
"api_key": AssetSourceCredentialsTypeApiKey,
3033
}
3134

3235
// GetAssetSourceCredentialsTypeEnumValues Enumerates the set of values for AssetSourceCredentialsTypeEnum
@@ -42,6 +45,7 @@ func GetAssetSourceCredentialsTypeEnumValues() []AssetSourceCredentialsTypeEnum
4245
func GetAssetSourceCredentialsTypeEnumStringValues() []string {
4346
return []string{
4447
"BASIC",
48+
"API_KEY",
4549
}
4650
}
4751

cloudbridge/asset_source_summary.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ 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
129133
default:
130134
common.Logf("Recieved unsupported enum value for AssetSourceSummary: %s.", m.Type)
131135
return *m, nil

cloudbridge/asset_source_type.go

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

2425
var mappingAssetSourceTypeEnum = map[string]AssetSourceTypeEnum{
2526
"VMWARE": AssetSourceTypeVmware,
27+
"AWS": AssetSourceTypeAws,
2628
}
2729

2830
var mappingAssetSourceTypeEnumLowerCase = map[string]AssetSourceTypeEnum{
2931
"vmware": AssetSourceTypeVmware,
32+
"aws": AssetSourceTypeAws,
3033
}
3134

3235
// GetAssetSourceTypeEnumValues Enumerates the set of values for AssetSourceTypeEnum
@@ -42,6 +45,7 @@ func GetAssetSourceTypeEnumValues() []AssetSourceTypeEnum {
4245
func GetAssetSourceTypeEnumStringValues() []string {
4346
return []string{
4447
"VMWARE",
48+
"AWS",
4549
}
4650
}
4751

cloudbridge/asset_type.go

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

2527
var mappingAssetTypeEnum = map[string]AssetTypeEnum{
2628
"VMWARE_VM": AssetTypeVmwareVm,
2729
"VM": AssetTypeVm,
30+
"AWS_EC2": AssetTypeAwsEc2,
31+
"AWS_EBS": AssetTypeAwsEbs,
2832
}
2933

3034
var mappingAssetTypeEnumLowerCase = map[string]AssetTypeEnum{
3135
"vmware_vm": AssetTypeVmwareVm,
3236
"vm": AssetTypeVm,
37+
"aws_ec2": AssetTypeAwsEc2,
38+
"aws_ebs": AssetTypeAwsEbs,
3339
}
3440

3541
// GetAssetTypeEnumValues Enumerates the set of values for AssetTypeEnum
@@ -46,6 +52,8 @@ func GetAssetTypeEnumStringValues() []string {
4652
return []string{
4753
"VMWARE_VM",
4854
"VM",
55+
"AWS_EC2",
56+
"AWS_EBS",
4957
}
5058
}
5159

cloudbridge/aws_asset_source.go

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// 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.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Oracle Cloud Bridge API
6+
//
7+
// API for Oracle Cloud Bridge service.
8+
//
9+
10+
package cloudbridge
11+
12+
import (
13+
"encoding/json"
14+
"fmt"
15+
"github.com/oracle/oci-go-sdk/v65/common"
16+
"strings"
17+
)
18+
19+
// AwsAssetSource AWS asset source. Used for discovery of EC2 instances and EBS volumes registered for the AWS account.
20+
type AwsAssetSource struct {
21+
22+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the resource.
23+
Id *string `mandatory:"true" json:"id"`
24+
25+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for the resource.
26+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
27+
28+
// A user-friendly name for the asset source. Does not have to be unique, and it's mutable.
29+
// Avoid entering confidential information.
30+
DisplayName *string `mandatory:"true" json:"displayName"`
31+
32+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the environment.
33+
EnvironmentId *string `mandatory:"true" json:"environmentId"`
34+
35+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the inventory that will contain created assets.
36+
InventoryId *string `mandatory:"true" json:"inventoryId"`
37+
38+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets.
39+
AssetsCompartmentId *string `mandatory:"true" json:"assetsCompartmentId"`
40+
41+
// The detailed state of the asset source.
42+
LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"`
43+
44+
// The time when the asset source was created in the RFC3339 format.
45+
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
46+
47+
// The point in time that the asset source was last updated in the RFC3339 format.
48+
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
49+
50+
DiscoveryCredentials *AssetSourceCredentials `mandatory:"true" json:"discoveryCredentials"`
51+
52+
// AWS region information, from where the resources are discovered.
53+
AwsRegion *string `mandatory:"true" json:"awsRegion"`
54+
55+
// The key of customer's aws account to be discovered/migrated.
56+
AwsAccountKey *string `mandatory:"true" json:"awsAccountKey"`
57+
58+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of an attached discovery schedule.
59+
DiscoveryScheduleId *string `mandatory:"false" json:"discoveryScheduleId"`
60+
61+
// The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no
62+
// predefined name, type, or namespace/scope. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
63+
// Example: `{"Department": "Finance"}`
64+
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
65+
66+
// The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces.
67+
// For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
68+
// Example: `{"Operations": {"CostCenter": "42"}}`
69+
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
70+
71+
// The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces.
72+
// For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
73+
// Example: `{orcl-cloud: {free-tier-retain: true}}`
74+
SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"`
75+
76+
ReplicationCredentials *AssetSourceCredentials `mandatory:"false" json:"replicationCredentials"`
77+
78+
// Flag indicating whether historical metrics are collected for assets, originating from this asset source.
79+
AreHistoricalMetricsCollected *bool `mandatory:"false" json:"areHistoricalMetricsCollected"`
80+
81+
// Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
82+
AreRealtimeMetricsCollected *bool `mandatory:"false" json:"areRealtimeMetricsCollected"`
83+
84+
// Flag indicating whether cost data collection is enabled for assets, originating from this asset source.
85+
IsCostInformationCollected *bool `mandatory:"false" json:"isCostInformationCollected"`
86+
87+
// The current state of the asset source.
88+
LifecycleState AssetSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
89+
}
90+
91+
// GetId returns Id
92+
func (m AwsAssetSource) GetId() *string {
93+
return m.Id
94+
}
95+
96+
// GetCompartmentId returns CompartmentId
97+
func (m AwsAssetSource) GetCompartmentId() *string {
98+
return m.CompartmentId
99+
}
100+
101+
// GetDisplayName returns DisplayName
102+
func (m AwsAssetSource) GetDisplayName() *string {
103+
return m.DisplayName
104+
}
105+
106+
// GetEnvironmentId returns EnvironmentId
107+
func (m AwsAssetSource) GetEnvironmentId() *string {
108+
return m.EnvironmentId
109+
}
110+
111+
// GetInventoryId returns InventoryId
112+
func (m AwsAssetSource) GetInventoryId() *string {
113+
return m.InventoryId
114+
}
115+
116+
// GetAssetsCompartmentId returns AssetsCompartmentId
117+
func (m AwsAssetSource) GetAssetsCompartmentId() *string {
118+
return m.AssetsCompartmentId
119+
}
120+
121+
// GetDiscoveryScheduleId returns DiscoveryScheduleId
122+
func (m AwsAssetSource) GetDiscoveryScheduleId() *string {
123+
return m.DiscoveryScheduleId
124+
}
125+
126+
// GetLifecycleState returns LifecycleState
127+
func (m AwsAssetSource) GetLifecycleState() AssetSourceLifecycleStateEnum {
128+
return m.LifecycleState
129+
}
130+
131+
// GetLifecycleDetails returns LifecycleDetails
132+
func (m AwsAssetSource) GetLifecycleDetails() *string {
133+
return m.LifecycleDetails
134+
}
135+
136+
// GetTimeCreated returns TimeCreated
137+
func (m AwsAssetSource) GetTimeCreated() *common.SDKTime {
138+
return m.TimeCreated
139+
}
140+
141+
// GetTimeUpdated returns TimeUpdated
142+
func (m AwsAssetSource) GetTimeUpdated() *common.SDKTime {
143+
return m.TimeUpdated
144+
}
145+
146+
// GetFreeformTags returns FreeformTags
147+
func (m AwsAssetSource) GetFreeformTags() map[string]string {
148+
return m.FreeformTags
149+
}
150+
151+
// GetDefinedTags returns DefinedTags
152+
func (m AwsAssetSource) GetDefinedTags() map[string]map[string]interface{} {
153+
return m.DefinedTags
154+
}
155+
156+
// GetSystemTags returns SystemTags
157+
func (m AwsAssetSource) GetSystemTags() map[string]map[string]interface{} {
158+
return m.SystemTags
159+
}
160+
161+
func (m AwsAssetSource) String() string {
162+
return common.PointerString(m)
163+
}
164+
165+
// ValidateEnumValue returns an error when providing an unsupported enum value
166+
// This function is being called during constructing API request process
167+
// Not recommended for calling this function directly
168+
func (m AwsAssetSource) ValidateEnumValue() (bool, error) {
169+
errMessage := []string{}
170+
171+
if _, ok := GetMappingAssetSourceLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" {
172+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAssetSourceLifecycleStateEnumStringValues(), ",")))
173+
}
174+
if len(errMessage) > 0 {
175+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
176+
}
177+
return false, nil
178+
}
179+
180+
// MarshalJSON marshals to json representation
181+
func (m AwsAssetSource) MarshalJSON() (buff []byte, e error) {
182+
type MarshalTypeAwsAssetSource AwsAssetSource
183+
s := struct {
184+
DiscriminatorParam string `json:"type"`
185+
MarshalTypeAwsAssetSource
186+
}{
187+
"AWS",
188+
(MarshalTypeAwsAssetSource)(m),
189+
}
190+
191+
return json.Marshal(&s)
192+
}

0 commit comments

Comments
 (0)