Skip to content

Commit 8db878b

Browse files
Releasing version 65.56.0
Releasing version 65.56.0
2 parents 20871de + 9b6a600 commit 8db878b

File tree

132 files changed

+11173
-436
lines changed

Some content is hidden

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

132 files changed

+11173
-436
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ 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.56.0 - 2024-01-16
8+
### Added
9+
- Support for resource id filter on the service work requests in the Container Instances service
10+
- Support for polyglot vulnerability audit in the Application Dependency Management service
11+
- Support for create, read, and update operations on peer databases in the Data Safe service
12+
- Support for dimension specific alarm suppressions in the Monitoring service
13+
- Support for calculating audit volume in the Data Safe service
14+
- Support for viewing schema accesses in data safe user assessments in the Data Safe service
15+
- Support for security feature usage in the Data Safe service
16+
- Support for viewing the top security findings in data safe security assessments in the Data Safe service
17+
- Support for additional filters in list findings operation in the Data Safe service
18+
- Support for updating risk level of the specified finding in the Data Safe service
19+
20+
### Breaking Changes
21+
- The property `OpcWorkRequestId` was removed from the response model `CreateVulnerabilityAuditResponse.cs` in the Application Dependency Management service
22+
- The property `Gav` was changed from mandatory to optional in `ApplicationDependency` model
23+
- The property `MaxObservedCvssV2Score`, `MaxObservedCvssV2ScoreWithIgnored` and `MaxObservedCvssV3ScoreWithIgnored` were changed from mandatory to optional in `VulnerabilityAudit` and `VulnerabilityAuditSummary` model
24+
- The property `CvssV2Score` and `CvssV3Score` were changed from mantory to optional in Vulnerability model
25+
- The property `OpcWorkRequestId` was changed from mandatory to optional in `CreateVulnerabilityAuditResponse` model
26+
27+
728
## 65.55.1 - 2024-01-09
829
### Added
930
- Support for calling Oracle Cloud Infrastructure services in the sa-valparaiso-1 region

adm/application_dependency.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ import (
1818
// ApplicationDependency An application dependency resource creates a vulnerability audit.
1919
type ApplicationDependency struct {
2020

21-
// Group Artifact Version (GAV) identifier (Group:Artifact:Version), e.g. org.graalvm.nativeimage:svm:21.1.0.
22-
Gav *string `mandatory:"true" json:"gav"`
23-
2421
// Unique identifier of an application dependency, for example nodeId1.
2522
// The nodeId can be generated by assigning a unique id to each application dependency
2623
// in the tree of application dependencies.
@@ -32,6 +29,13 @@ type ApplicationDependency struct {
3229
// a GAV can have multiple transitive dependencies.)
3330
NodeId *string `mandatory:"true" json:"nodeId"`
3431

32+
// Group Artifact Version (GAV) identifier (Group:Artifact:Version). Example: org.graalvm.nativeimage:svm:21.1.0.
33+
// "N/A" for non-maven artifacts.
34+
Gav *string `mandatory:"false" json:"gav"`
35+
36+
// Package URL defined in https://github.com/package-url/purl-spec, e.g. pkg:maven/org.graalvm.nativeimage/svm@21.1.0
37+
Purl *string `mandatory:"false" json:"purl"`
38+
3539
// List of application dependencies on which this application dependency depends, each identified by its nodeId.
3640
ApplicationDependencyNodeIds []string `mandatory:"false" json:"applicationDependencyNodeIds"`
3741
}

adm/application_dependency_recommendation_summary.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ type ApplicationDependencyRecommendationSummary struct {
2828
// List of (application dependencies) node identifiers from which this node depends.
2929
ApplicationDependencyNodeIds []string `mandatory:"true" json:"applicationDependencyNodeIds"`
3030

31+
// Package URL defined in https://github.com/package-url/purl-spec, e.g. pkg:maven/org.graalvm.nativeimage/svm@21.1.0
32+
Purl *string `mandatory:"false" json:"purl"`
33+
3134
// Recommended application dependency in "group:artifact:version" (GAV) format, e.g. org.graalvm.nativeimage:svm:21.2.0.
3235
RecommendedGav *string `mandatory:"false" json:"recommendedGav"`
36+
37+
// Recommended application dependency in PURL format, e.g. pkg:maven/org.graalvm.nativeimage/svm@21.2.0
38+
RecommendedPurl *string `mandatory:"false" json:"recommendedPurl"`
3339
}
3440

3541
func (m ApplicationDependencyRecommendationSummary) String() string {

adm/application_dependency_vulnerability_summary.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import (
2020
// Each application dependency is uniquely defined by a nodeId and lists eventual dependencies on which it depends.
2121
type ApplicationDependencyVulnerabilitySummary struct {
2222

23-
// Group Artifact Version (GAV) identifier (Group:Artifact:Version), for example org.graalvm.nativeimage:svm:21.1.0.
23+
// Group Artifact Version (GAV) identifier (Group:Artifact:Version). Example: org.graalvm.nativeimage:svm:21.1.0.
24+
// "N/A" for non-maven artifacts.
2425
Gav *string `mandatory:"true" json:"gav"`
2526

2627
// Unique identifier of an application dependency, for example nodeId1.
@@ -34,6 +35,9 @@ type ApplicationDependencyVulnerabilitySummary struct {
3435

3536
// Indicates if the artifact is found in the knowledge base.
3637
IsFoundInKnowledgeBase *bool `mandatory:"true" json:"isFoundInKnowledgeBase"`
38+
39+
// Package URL defined in https://github.com/package-url/purl-spec, e.g. pkg:maven/org.graalvm.nativeimage/svm@21.1.0
40+
Purl *string `mandatory:"false" json:"purl"`
3741
}
3842

3943
func (m ApplicationDependencyVulnerabilitySummary) String() string {

adm/config_severity.go

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
// Application Dependency Management API
6+
//
7+
// Use the Application Dependency Management API to create knowledge bases and vulnerability audits. For more information, see ADM (https://docs.cloud.oracle.com/Content/application-dependency-management/home.htm).
8+
//
9+
10+
package adm
11+
12+
import (
13+
"strings"
14+
)
15+
16+
// ConfigSeverityEnum Enum with underlying type: string
17+
type ConfigSeverityEnum string
18+
19+
// Set of constants representing the allowable values for ConfigSeverityEnum
20+
const (
21+
ConfigSeverityUnset ConfigSeverityEnum = "UNSET"
22+
ConfigSeverityNone ConfigSeverityEnum = "NONE"
23+
ConfigSeverityLow ConfigSeverityEnum = "LOW"
24+
ConfigSeverityMedium ConfigSeverityEnum = "MEDIUM"
25+
ConfigSeverityHigh ConfigSeverityEnum = "HIGH"
26+
ConfigSeverityCritical ConfigSeverityEnum = "CRITICAL"
27+
)
28+
29+
var mappingConfigSeverityEnum = map[string]ConfigSeverityEnum{
30+
"UNSET": ConfigSeverityUnset,
31+
"NONE": ConfigSeverityNone,
32+
"LOW": ConfigSeverityLow,
33+
"MEDIUM": ConfigSeverityMedium,
34+
"HIGH": ConfigSeverityHigh,
35+
"CRITICAL": ConfigSeverityCritical,
36+
}
37+
38+
var mappingConfigSeverityEnumLowerCase = map[string]ConfigSeverityEnum{
39+
"unset": ConfigSeverityUnset,
40+
"none": ConfigSeverityNone,
41+
"low": ConfigSeverityLow,
42+
"medium": ConfigSeverityMedium,
43+
"high": ConfigSeverityHigh,
44+
"critical": ConfigSeverityCritical,
45+
}
46+
47+
// GetConfigSeverityEnumValues Enumerates the set of values for ConfigSeverityEnum
48+
func GetConfigSeverityEnumValues() []ConfigSeverityEnum {
49+
values := make([]ConfigSeverityEnum, 0)
50+
for _, v := range mappingConfigSeverityEnum {
51+
values = append(values, v)
52+
}
53+
return values
54+
}
55+
56+
// GetConfigSeverityEnumStringValues Enumerates the set of values in String for ConfigSeverityEnum
57+
func GetConfigSeverityEnumStringValues() []string {
58+
return []string{
59+
"UNSET",
60+
"NONE",
61+
"LOW",
62+
"MEDIUM",
63+
"HIGH",
64+
"CRITICAL",
65+
}
66+
}
67+
68+
// GetMappingConfigSeverityEnum performs case Insensitive comparison on enum value and return the desired enum
69+
func GetMappingConfigSeverityEnum(val string) (ConfigSeverityEnum, bool) {
70+
enum, ok := mappingConfigSeverityEnumLowerCase[strings.ToLower(val)]
71+
return enum, ok
72+
}

adm/create_vulnerability_audit_details.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ type CreateVulnerabilityAuditDetails struct {
2222
// The Oracle Cloud identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)) of the knowledge base.
2323
KnowledgeBaseId *string `mandatory:"true" json:"knowledgeBaseId"`
2424

25-
// The type of the build tool.
26-
BuildType VulnerabilityAuditBuildTypeEnum `mandatory:"true" json:"buildType"`
27-
2825
// The compartment Oracle Cloud identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)) of the vulnerability audit.
2926
// If compartment identifier is not provided the compartment of the associated knowledge base will be used instead.
3027
CompartmentId *string `mandatory:"false" json:"compartmentId"`
3128

3229
// List of application dependencies (without vulnerabilities).
3330
ApplicationDependencies []ApplicationDependency `mandatory:"false" json:"applicationDependencies"`
3431

32+
// The type of the build tool is restricted to only two values MAVEN or UNSET. Use UNSET when the list of application dependencies is not Maven-related or is a mix of Maven and other ecosystems. This option is soon to be deprecated.
33+
BuildType VulnerabilityAuditBuildTypeEnum `mandatory:"false" json:"buildType,omitempty"`
34+
3535
Configuration *VulnerabilityAuditConfiguration `mandatory:"false" json:"configuration"`
3636

3737
UsageData UsageDataDetails `mandatory:"false" json:"usageData"`
@@ -59,10 +59,10 @@ func (m CreateVulnerabilityAuditDetails) String() string {
5959
// Not recommended for calling this function directly
6060
func (m CreateVulnerabilityAuditDetails) ValidateEnumValue() (bool, error) {
6161
errMessage := []string{}
62+
6263
if _, ok := GetMappingVulnerabilityAuditBuildTypeEnum(string(m.BuildType)); !ok && m.BuildType != "" {
6364
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BuildType: %s. Supported values are: %s.", m.BuildType, strings.Join(GetVulnerabilityAuditBuildTypeEnumStringValues(), ",")))
6465
}
65-
6666
if len(errMessage) > 0 {
6767
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
6868
}
@@ -74,14 +74,14 @@ func (m *CreateVulnerabilityAuditDetails) UnmarshalJSON(data []byte) (e error) {
7474
model := struct {
7575
CompartmentId *string `json:"compartmentId"`
7676
ApplicationDependencies []ApplicationDependency `json:"applicationDependencies"`
77+
BuildType VulnerabilityAuditBuildTypeEnum `json:"buildType"`
7778
Configuration *VulnerabilityAuditConfiguration `json:"configuration"`
7879
UsageData usagedatadetails `json:"usageData"`
7980
DisplayName *string `json:"displayName"`
8081
Source vulnerabilityauditsource `json:"source"`
8182
FreeformTags map[string]string `json:"freeformTags"`
8283
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
8384
KnowledgeBaseId *string `json:"knowledgeBaseId"`
84-
BuildType VulnerabilityAuditBuildTypeEnum `json:"buildType"`
8585
}{}
8686

8787
e = json.Unmarshal(data, &model)
@@ -93,6 +93,8 @@ func (m *CreateVulnerabilityAuditDetails) UnmarshalJSON(data []byte) (e error) {
9393

9494
m.ApplicationDependencies = make([]ApplicationDependency, len(model.ApplicationDependencies))
9595
copy(m.ApplicationDependencies, model.ApplicationDependencies)
96+
m.BuildType = model.BuildType
97+
9698
m.Configuration = model.Configuration
9799

98100
nn, e = model.UsageData.UnmarshalPolymorphicJSON(model.UsageData.JsonData)
@@ -123,7 +125,5 @@ func (m *CreateVulnerabilityAuditDetails) UnmarshalJSON(data []byte) (e error) {
123125

124126
m.KnowledgeBaseId = model.KnowledgeBaseId
125127

126-
m.BuildType = model.BuildType
127-
128128
return
129129
}

adm/create_vulnerability_audit_request_response.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ type CreateVulnerabilityAuditResponse struct {
9292
// For optimistic concurrency control. See `if-match`.
9393
Etag *string `presentIn:"header" name:"etag"`
9494

95-
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
96-
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
97-
9895
// Unique Oracle-assigned identifier for the request. If you need to contact
9996
// Oracle about a particular request, please provide the request ID.
10097
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`

adm/detect_configuration.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ type DetectConfiguration struct {
3131

3232
// The maximum Common Vulnerability Scoring System Version 3 (CVSS V3) score. An artifact with a CVSS V3 score below this value is not considered for patching.
3333
MaxPermissibleCvssV3Score *float32 `mandatory:"false" json:"maxPermissibleCvssV3Score"`
34+
35+
// The maximum ADM Severity. An artifact with an ADM Severity below this value is not considered for patching.
36+
MaxPermissibleSeverity ConfigSeverityEnum `mandatory:"false" json:"maxPermissibleSeverity,omitempty"`
3437
}
3538

3639
func (m DetectConfiguration) String() string {
@@ -46,6 +49,9 @@ func (m DetectConfiguration) ValidateEnumValue() (bool, error) {
4649
if _, ok := GetMappingDetectConfigurationUpgradePolicyEnum(string(m.UpgradePolicy)); !ok && m.UpgradePolicy != "" {
4750
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpgradePolicy: %s. Supported values are: %s.", m.UpgradePolicy, strings.Join(GetDetectConfigurationUpgradePolicyEnumStringValues(), ",")))
4851
}
52+
if _, ok := GetMappingConfigSeverityEnum(string(m.MaxPermissibleSeverity)); !ok && m.MaxPermissibleSeverity != "" {
53+
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MaxPermissibleSeverity: %s. Supported values are: %s.", m.MaxPermissibleSeverity, strings.Join(GetConfigSeverityEnumStringValues(), ",")))
54+
}
4955
if len(errMessage) > 0 {
5056
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
5157
}

adm/list_application_dependency_recommendations_request_response.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ type ListApplicationDependencyRecommendationsRequest struct {
3636
// A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.
3737
Gav *string `mandatory:"false" contributesTo:"query" name:"gav"`
3838

39+
// A filter to return only resources that match the entire PURL given (https://github.com/package-url/purl-spec/).
40+
Purl *string `mandatory:"false" contributesTo:"query" name:"purl"`
41+
3942
// The field to sort by. Only one sort order may be provided.
4043
// If sort order is dfs, the nodes are returned by going through the application dependency tree in a depth-first manner. Children are sorted based on their GAV property alphabetically (either ascending or descending, depending on the order parameter). Default order is ascending.
4144
// If sort order is bfs, the nodes are returned by going through the application dependency tree in a breadth-first manner. Children are sorted based on their GAV property alphabetically (either ascending or descending, depending on the order parameter). Default order is ascending.
4245
// Default order for gav is ascending where ascending corresponds to alphanumerical order.
46+
// Default order for purl is ascending where ascending corresponds to alphabetical order
4347
// Default order for nodeId is ascending where ascending corresponds to alphanumerical order.
4448
// Sorting by DFS or BFS cannot be used in conjunction with the following query parameters: "gav", "cvssV2GreaterThanOrEqual", "cvssV3GreaterThanOrEqual" and "vulnerabilityId".
4549
SortBy ListApplicationDependencyRecommendationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
@@ -168,20 +172,23 @@ type ListApplicationDependencyRecommendationsSortByEnum string
168172
// Set of constants representing the allowable values for ListApplicationDependencyRecommendationsSortByEnum
169173
const (
170174
ListApplicationDependencyRecommendationsSortByGav ListApplicationDependencyRecommendationsSortByEnum = "gav"
175+
ListApplicationDependencyRecommendationsSortByPurl ListApplicationDependencyRecommendationsSortByEnum = "purl"
171176
ListApplicationDependencyRecommendationsSortByNodeid ListApplicationDependencyRecommendationsSortByEnum = "nodeId"
172177
ListApplicationDependencyRecommendationsSortByDfs ListApplicationDependencyRecommendationsSortByEnum = "dfs"
173178
ListApplicationDependencyRecommendationsSortByBfs ListApplicationDependencyRecommendationsSortByEnum = "bfs"
174179
)
175180

176181
var mappingListApplicationDependencyRecommendationsSortByEnum = map[string]ListApplicationDependencyRecommendationsSortByEnum{
177182
"gav": ListApplicationDependencyRecommendationsSortByGav,
183+
"purl": ListApplicationDependencyRecommendationsSortByPurl,
178184
"nodeId": ListApplicationDependencyRecommendationsSortByNodeid,
179185
"dfs": ListApplicationDependencyRecommendationsSortByDfs,
180186
"bfs": ListApplicationDependencyRecommendationsSortByBfs,
181187
}
182188

183189
var mappingListApplicationDependencyRecommendationsSortByEnumLowerCase = map[string]ListApplicationDependencyRecommendationsSortByEnum{
184190
"gav": ListApplicationDependencyRecommendationsSortByGav,
191+
"purl": ListApplicationDependencyRecommendationsSortByPurl,
185192
"nodeid": ListApplicationDependencyRecommendationsSortByNodeid,
186193
"dfs": ListApplicationDependencyRecommendationsSortByDfs,
187194
"bfs": ListApplicationDependencyRecommendationsSortByBfs,
@@ -200,6 +207,7 @@ func GetListApplicationDependencyRecommendationsSortByEnumValues() []ListApplica
200207
func GetListApplicationDependencyRecommendationsSortByEnumStringValues() []string {
201208
return []string{
202209
"gav",
210+
"purl",
203211
"nodeId",
204212
"dfs",
205213
"bfs",

0 commit comments

Comments
 (0)