Skip to content

Commit 215dc9b

Browse files
author
DEXREQ Automation
committed
Merge pull request #2503 in SDK/oci-go-sdk from merge_to_github2023-08-28 to github
Releasing Version 65.48.0 Squashed commit of the following: commit ef29e6e61fe25e4f7a4660da25b47f8e19214952 Author: oci-dex-release-bot <oci-dex-releases-bot_ww@oracle.com> Date: Mon Aug 28 18:51:39 2023 +0000 Releasing version 65 48 0
1 parent b872b59 commit 215dc9b

File tree

1,208 files changed

+8181
-8752
lines changed

Some content is hidden

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

1,208 files changed

+8181
-8752
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.48.0 - 2023-08-29
8+
### Added
9+
- Support for creating and updating network monitors in the Application Performance Monitoring Synthetics service
10+
- Support for integration of GoldenGate service for replication in the Database Migration Service
11+
- Support for displaying resource usage information on autonomous container database and cloud autonomous vm cluster get operations in the Database service
12+
- Support for FastConnect Media Access Control Security (MACSec) fail open option in the Network Monitoring service
13+
- Support for generic bare metal types and configuration maps in compute instance platform configuration in the Compute service
14+
- Support for encrypted FastConnect in the Network Monitoring service
15+
- Support for new parameters on customer premises equipment and virtual circuit create operations in the Network Monitoring service
16+
- Support for virtual circuit associated tunnels in the Network Monitoring service
17+
- Support for additional parameters on dynamic routing gateway create and update operations in the Network Monitoring service
18+
- Support for assigning an IPv6 address to a compute instance during instance launch or secondary VNIC attach in the Compute service
19+
20+
### Breaking Changes
21+
- The models `AnalyticsCluster`, `AnalyticsClusterMemoryEstimate`, `AnalyticsClusterMemoryEstimateStatus`, `AnalyticsClusterNode`, `AnalyticsClusterSchemaMemoryEstimate`, `AnalyticsClusterSummary`, `AnalyticsClusterTableMemoryEstimate`, `UpdateAnalyticsClusterDetails`, `AddAnalyticsClusterRequest`, `DeleteAnalyticsClusterRequest`, `GenerateAnalyticsClusterMemoryEstimateRequest`, `GetAnalyticsClusterRequest`, `RestartAnalyticsClusterRequest`, `StartAnalyticsClusterRequest`, `StopAnalyticsClusterRequest`, `UpdateAnalyticsClusterRequest`, `DeleteAnalyticsClusterResponse`, `GetAnalyticsClusterMemoryEstimateResponse`, `RestartAnalyticsClusterResponse`, `StartAnalyticsClusterResponse`, `StopAnalyticsClusterResponse`, `UpdateAnalyticsClusterResponse` were removed in the MySQL Database service
22+
- The properties `IsAnalyticsClusterAttached` and `AnalyticsCluster` were removed from `DbSystem` and `DbSystemSummary` models in the MySQL Database service
23+
- The enum member `ANALYTICSCLUSTER` was removed from the enum `IsSupportedForEnum` in the models `ShapeSummary` and `ListShapesRequest` in the MySQL Database service
24+
- The enum members `ADD_ANALYTICS_CLUSTER`, `UPDATE_ANALYTICS_CLUSTER`, `DELETE_ANALYTICS_CLUSTER`, `START_ANALYTICS_CLUSTER`, `STOP_ANALYTICS_CLUSTER`, `RESTART_ANALYTICS_CLUSTER`, `GENERATE_ANALYTICS_CLUSTER_MEMORY_ESTIMATE` were removed from the enum `WorkRequestOperationType` in the MySQL Database service
25+
- The property `IsAnalyticsClusterAttached` was removed from the model `ListDbSystemsRequest` in the MySQL Database service
26+
- The operations `AddAnalyticsCluster`, `DeleteAnalyticsCluster`, `GenerateAnalyticsClusterMemoryEstimate`, `GetAnalyticsCluster`, `GetAnalyticsClusterMemoryEstimate`, `RestartAnalyticsCluster`, `StartAnalyticsCluster`, `StopAnalyticsCluster`, `UpdateAnalyticsCluster` were removed from the `DbSystemClient` in the MySQL Database service
27+
28+
729
## 65.47.2 - 2023-08-22
830
### Added
931
- Support for Compute Cloud at Customer service

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ EXCLUDED_CLEAN_DIRECTORIES = objectstorage/transfer*
2525

2626
build: lint $(TARGETS_BUILD)
2727

28+
static-check:
29+
@staticcheck ./...
30+
@echo "Success: No static check warnings"
31+
2832
test: build $(TARGETS_TEST)
2933

3034
test-only: $(TARGETS_TEST)

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,36 @@ go install github.com/gofrs/flock
207207
```
208208
go install github.com/golang/lint/golint
209209
```
210+
- Install [staticcheck](https://github.com/dominikh/go-tools) with the command:
211+
```
212+
go install honnef.co/go/tools/cmd/staticcheck@2023.1.3
213+
```
214+
215+
### Linting and Staticcheck
216+
Linting (performed by golint) can be done with the following command:
217+
218+
```
219+
make lint
220+
```
221+
This command is also run by the make build and make test commands.
222+
Linting will perform a number of formatting changes across the code base.
223+
224+
Staticcheck can be run with:
225+
226+
```
227+
make static-check
228+
```
229+
Staticcheck will provide formatting warnings but will not make any changes to any files.
230+
You can also cause staticcheck to be run before calls to "git commit" with the pre-commit plugin.
231+
232+
```
233+
pre-commit install
234+
```
235+
You can install pre-commit itself, you can use your package manager of choice, such as
236+
237+
```
238+
brew install pre-commit
239+
```
210240

211241
### Build
212242
Building is provided by the make file at the root of the project. To build the project execute.

accessgovernancecp/accessgovernancecp_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (client *AccessGovernanceCPClient) setConfigurationProvider(configProvider
8080
region, _ := configProvider.Region()
8181
client.SetRegion(region)
8282
if client.Host == "" {
83-
return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
83+
return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
8484
}
8585
client.config = &configProvider
8686
return nil

adm/adm_applicationdependencymanagement_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (client *ApplicationDependencyManagementClient) setConfigurationProvider(co
8080
region, _ := configProvider.Region()
8181
client.SetRegion(region)
8282
if client.Host == "" {
83-
return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
83+
return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
8484
}
8585
client.config = &configProvider
8686
return nil

adm/create_vulnerability_audit_details.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ func (m *CreateVulnerabilityAuditDetails) UnmarshalJSON(data []byte) (e error) {
8989
m.CompartmentId = model.CompartmentId
9090

9191
m.ApplicationDependencies = make([]ApplicationDependency, len(model.ApplicationDependencies))
92-
for i, n := range model.ApplicationDependencies {
93-
m.ApplicationDependencies[i] = n
94-
}
95-
92+
copy(m.ApplicationDependencies, model.ApplicationDependencies)
9693
m.Configuration = model.Configuration
9794

9895
m.DisplayName = model.DisplayName

adm/vulnerability_audit.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ func (m *VulnerabilityAudit) UnmarshalJSON(data []byte) (e error) {
163163
m.LifecycleState = model.LifecycleState
164164

165165
m.Vulnerabilities = make([]Vulnerability, len(model.Vulnerabilities))
166-
for i, n := range model.Vulnerabilities {
167-
m.Vulnerabilities[i] = n
168-
}
169-
166+
copy(m.Vulnerabilities, model.Vulnerabilities)
170167
m.MaxObservedCvssV2Score = model.MaxObservedCvssV2Score
171168

172169
m.MaxObservedCvssV3Score = model.MaxObservedCvssV3Score

aianomalydetection/aianomalydetection_anomalydetection_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (client *AnomalyDetectionClient) setConfigurationProvider(configProvider co
8282
region, _ := configProvider.Region()
8383
client.SetRegion(region)
8484
if client.Host == "" {
85-
return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
85+
return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
8686
}
8787
client.config = &configProvider
8888
return nil

aianomalydetection/detect_anomalies_details.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ type DetectAnomaliesDetails interface {
3131

3232
type detectanomaliesdetails struct {
3333
JsonData []byte
34-
ModelId *string `mandatory:"true" json:"modelId"`
3534
Sensitivity *float32 `mandatory:"false" json:"sensitivity"`
35+
ModelId *string `mandatory:"true" json:"modelId"`
3636
RequestType string `json:"requestType"`
3737
}
3838

@@ -77,16 +77,16 @@ func (m *detectanomaliesdetails) UnmarshalPolymorphicJSON(data []byte) (interfac
7777
}
7878
}
7979

80-
//GetModelId returns ModelId
81-
func (m detectanomaliesdetails) GetModelId() *string {
82-
return m.ModelId
83-
}
84-
85-
//GetSensitivity returns Sensitivity
80+
// GetSensitivity returns Sensitivity
8681
func (m detectanomaliesdetails) GetSensitivity() *float32 {
8782
return m.Sensitivity
8883
}
8984

85+
// GetModelId returns ModelId
86+
func (m detectanomaliesdetails) GetModelId() *string {
87+
return m.ModelId
88+
}
89+
9090
func (m detectanomaliesdetails) String() string {
9191
return common.PointerString(m)
9292
}

aidocument/aidocument_aiservicedocument_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (client *AIServiceDocumentClient) setConfigurationProvider(configProvider c
8080
region, _ := configProvider.Region()
8181
client.SetRegion(region)
8282
if client.Host == "" {
83-
return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
83+
return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region")
8484
}
8585
client.config = &configProvider
8686
return nil

0 commit comments

Comments
 (0)