Skip to content

Commit 623a07e

Browse files
authored
Releasing version 4.47.0
Releasing version 4.47.0
2 parents 7a99c7f + de635f6 commit 623a07e

File tree

10,349 files changed

+116121
-111553
lines changed

Some content is hidden

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

10,349 files changed

+116121
-111553
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 4.47.0 (Unreleased)
2+
3+
### Added
4+
- Support for MySQL MDS Outbound replication added
5+
- Support for GoldenGate deployment upgrades
6+
- Support for scheduled job status in database management
7+
- Operator driven backup
8+
- Gateway plugin support for Management Agent
9+
110
## 4.46.0 (September 29, 2021)
211

312
### Added

examples/databasemanagement/main.tf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,14 @@ data "oci_database_management_db_management_private_endpoints" "test_db_manageme
208208
name = var.db_management_private_endpoint_name
209209
vcn_id = oci_core_vcn.test_vcn.id
210210
state = var.db_management_private_endpoint_state
211-
}
211+
}
212+
213+
data "oci_database_management_job_executions_status" "test_job_executions_status" {
214+
#Required
215+
compartment_id = var.compartment_id
216+
start_time = formatdate("YYYY-MM-DD'T'hh:mm:ss'.000'Z", timeadd(timestamp(), "-12h"))
217+
end_time = formatdate("YYYY-MM-DD'T'hh:mm:ss'.000'Z", timestamp())
218+
219+
#Optional
220+
managed_database_id = var.managed_database_id
221+
}

examples/goldengate/Deployment/main.tf

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ variable "deployment_cpu_core_count" {
2020
default = 1
2121
}
2222

23-
variable "deployment_defined_tags_value" {
24-
default = "value"
25-
}
26-
2723
variable "deployment_deployment_type" {
2824
default = "OGG"
2925
}
@@ -37,7 +33,6 @@ variable "deployment_display_name" {
3733
}
3834

3935
variable "deployment_fqdn" {
40-
default = "fqdn.ggs.com"
4136
}
4237

4338
variable "deployment_freeform_tags" {
@@ -69,20 +64,16 @@ variable "deployment_ogg_data_deployment_name" {
6964
}
7065

7166
variable "deployment_ogg_data_certificate" {
72-
default = "certificate"
7367
}
7468

7569
variable "deployment_ogg_data_key" {
76-
default = "key"
7770
}
7871

7972
variable "deployment_state" {
8073
default = "ACTIVE"
8174
}
8275

83-
variable defined_tag_namespace_name { default = "" }
84-
85-
76+
#variable defined_tag_namespace_name { default = "" }
8677

8778
provider "oci" {
8879
tenancy_ocid = var.tenancy_ocid
@@ -100,6 +91,7 @@ resource "oci_core_network_security_group" "test_network_security_group" {
10091

10192
resource "oci_core_subnet" "test_subnet" {
10293
cidr_block = "10.0.0.0/24"
94+
display_name = "TestSubnet"
10395
compartment_id = var.compartment_ocid
10496
vcn_id = oci_core_vcn.test_vcn.id
10597
}
@@ -123,25 +115,9 @@ resource "oci_golden_gate_deployment_backup" "test_deployment_backup" {
123115

124116
}
125117

126-
resource "oci_identity_tag_namespace" "tag-namespace1" {
127-
#Required
128-
compartment_id = var.tenancy_ocid
129-
description = "example tag namespace"
130-
name = var.defined_tag_namespace_name != "" ? var.defined_tag_namespace_name : "example-tag-namespace-all"
131-
is_retired = false
132-
}
133-
134-
resource "oci_identity_tag" "tag1" {
135-
#Required
136-
description = "example tag"
137-
name = "example-tag"
138-
tag_namespace_id = oci_identity_tag_namespace.tag-namespace1.id
139-
is_retired = false
140-
}
141-
142118
resource "oci_objectstorage_bucket" "test_bucket" {
143119
compartment_id = var.compartment_ocid
144-
name = "tfTestBucket"
120+
name = "tfTestBucketold"
145121
namespace = data.oci_objectstorage_namespace.test_namespace.namespace
146122
}
147123

@@ -153,13 +129,12 @@ resource "oci_golden_gate_deployment" "test_backup_deployment" {
153129
display_name = var.deployment_display_name
154130
is_auto_scaling_enabled = var.deployment_is_auto_scaling_enabled
155131
license_model = var.deployment_license_model
156-
subnet_id = oci_core_subnet.test_subnet.id
132+
subnet_id = oci_core_subnet.test_subnet.id
157133
ogg_data {
158134
admin_password = var.deployment_ogg_data_admin_password
159135
admin_username = var.deployment_ogg_data_admin_username
160136
deployment_name = var.deployment_ogg_data_deployment_name
161137
}
162-
163138
}
164139

165140
resource "oci_golden_gate_deployment" "test_deployment" {
@@ -187,8 +162,8 @@ resource "oci_golden_gate_deployment" "test_deployment" {
187162
deployment_name = var.deployment_ogg_data_deployment_name
188163

189164
#Optional
190-
certificate = var.deployment_ogg_data_certificate
191-
key = var.deployment_ogg_data_key
165+
#certificate = var.deployment_ogg_data_certificate
166+
#key = var.deployment_ogg_data_key
192167
}
193168
}
194169

examples/management_agent/management_agent.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,8 @@ data "oci_management_agent_management_agent_available_histories" "test_managemen
7070
time_availability_status_started_less_than = "2029-09-28T01:01:01.000Z"
7171

7272
}
73+
74+
data "oci_management_agent_management_agent_get_auto_upgradable_config" "test_management_agent_get_auto_upgradable_config" {
75+
#Required
76+
compartment_id = var.tenancy_ocid
77+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c
88
github.com/hashicorp/terraform-exec v0.13.3
99
github.com/hashicorp/terraform-plugin-sdk v1.17.2
10-
github.com/oracle/oci-go-sdk/v48 v48.0.0
10+
github.com/oracle/oci-go-sdk/v49 v49.0.0
1111
github.com/stretchr/testify v1.7.0
1212
golang.org/x/mod v0.4.2
1313
gopkg.in/yaml.v2 v2.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
302302
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
303303
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
304304
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
305-
github.com/oracle/oci-go-sdk/v48 v48.0.0 h1:ux/bkBFIHOPWhcCxx/c67jTIr/TDGJGRKn5rW6zqy1s=
306-
github.com/oracle/oci-go-sdk/v48 v48.0.0/go.mod h1:eCa0yXKSofRr/J5fv8pqnxX72yTG2FkbBkL5vC2RXuQ=
305+
github.com/oracle/oci-go-sdk/v49 v49.0.0 h1:Hm81VzXH/P/w3mX8DCQLqZCHBF9pSCIFQ4gAHlGZcss=
306+
github.com/oracle/oci-go-sdk/v49 v49.0.0/go.mod h1:a73341zd+PThjefFMCR7tJZoFy7hqfXx72I1OUPs/pI=
307307
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
308308
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
309309
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

oci/ai_anomaly_detection_ai_private_endpoint_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"context"
88

99
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
10-
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v48/aianomalydetection"
10+
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v49/aianomalydetection"
1111
)
1212

1313
func init() {
@@ -49,7 +49,7 @@ func (s *AiAnomalyDetectionAiPrivateEndpointDataSourceCrud) Get() error {
4949
request.AiPrivateEndpointId = &tmp
5050
}
5151

52-
request.RequestMetadata.RetryPolicy = getRetryPolicy(false, "ai_anomaly_detection")
52+
request.RequestMetadata.RetryPolicy = GetRetryPolicy(false, "ai_anomaly_detection")
5353

5454
response, err := s.Client.GetAiPrivateEndpoint(context.Background(), request)
5555
if err != nil {

oci/ai_anomaly_detection_ai_private_endpoint_resource.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
1414
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1515

16-
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v48/aianomalydetection"
17-
oci_common "github.com/oracle/oci-go-sdk/v48/common"
16+
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v49/aianomalydetection"
17+
oci_common "github.com/oracle/oci-go-sdk/v49/common"
1818
)
1919

2020
func init() {
@@ -206,23 +206,23 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Create() error {
206206
}
207207

208208
if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok {
209-
request.FreeformTags = objectMapToStringMap(freeformTags.(map[string]interface{}))
209+
request.FreeformTags = ObjectMapToStringMap(freeformTags.(map[string]interface{}))
210210
}
211211

212212
if subnetId, ok := s.D.GetOkExists("subnet_id"); ok {
213213
tmp := subnetId.(string)
214214
request.SubnetId = &tmp
215215
}
216216

217-
request.RequestMetadata.RetryPolicy = getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
217+
request.RequestMetadata.RetryPolicy = GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
218218

219219
response, err := s.Client.CreateAiPrivateEndpoint(context.Background(), request)
220220
if err != nil {
221221
return err
222222
}
223223

224224
workId := response.OpcWorkRequestId
225-
return s.getAiPrivateEndpointFromWorkRequest(workId, getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection"), oci_ai_anomaly_detection.ActionTypeCreated, s.D.Timeout(schema.TimeoutCreate))
225+
return s.getAiPrivateEndpointFromWorkRequest(workId, GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection"), oci_ai_anomaly_detection.ActionTypeCreated, s.D.Timeout(schema.TimeoutCreate))
226226
}
227227

228228
func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) getAiPrivateEndpointFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy,
@@ -277,7 +277,7 @@ func aiPrivateEndpointWorkRequestShouldRetryFunc(timeout time.Duration) func(res
277277

278278
func aiPrivateEndpointWaitForWorkRequest(wId *string, entityType string, action oci_ai_anomaly_detection.ActionTypeEnum,
279279
timeout time.Duration, disableFoundRetries bool, client *oci_ai_anomaly_detection.AnomalyDetectionClient) (*string, error) {
280-
retryPolicy := getRetryPolicy(disableFoundRetries, "ai_anomaly_detection")
280+
retryPolicy := GetRetryPolicy(disableFoundRetries, "ai_anomaly_detection")
281281
retryPolicy.ShouldRetryOperation = aiPrivateEndpointWorkRequestShouldRetryFunc(timeout)
282282

283283
response := oci_ai_anomaly_detection.GetWorkRequestResponse{}
@@ -358,7 +358,7 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Get() error {
358358
tmp := s.D.Id()
359359
request.AiPrivateEndpointId = &tmp
360360

361-
request.RequestMetadata.RetryPolicy = getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
361+
request.RequestMetadata.RetryPolicy = GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
362362

363363
response, err := s.Client.GetAiPrivateEndpoint(context.Background(), request)
364364
if err != nil {
@@ -411,18 +411,18 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Update() error {
411411
}
412412

413413
if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok {
414-
request.FreeformTags = objectMapToStringMap(freeformTags.(map[string]interface{}))
414+
request.FreeformTags = ObjectMapToStringMap(freeformTags.(map[string]interface{}))
415415
}
416416

417-
request.RequestMetadata.RetryPolicy = getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
417+
request.RequestMetadata.RetryPolicy = GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
418418

419419
response, err := s.Client.UpdateAiPrivateEndpoint(context.Background(), request)
420420
if err != nil {
421421
return err
422422
}
423423

424424
workId := response.OpcWorkRequestId
425-
return s.getAiPrivateEndpointFromWorkRequest(workId, getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection"), oci_ai_anomaly_detection.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate))
425+
return s.getAiPrivateEndpointFromWorkRequest(workId, GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection"), oci_ai_anomaly_detection.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate))
426426
}
427427

428428
func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Delete() error {
@@ -431,7 +431,7 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) Delete() error {
431431
tmp := s.D.Id()
432432
request.AiPrivateEndpointId = &tmp
433433

434-
request.RequestMetadata.RetryPolicy = getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
434+
request.RequestMetadata.RetryPolicy = GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
435435

436436
response, err := s.Client.DeleteAiPrivateEndpoint(context.Background(), request)
437437
if err != nil {
@@ -546,13 +546,13 @@ func (s *AiAnomalyDetectionAiPrivateEndpointResourceCrud) updateCompartment(comp
546546
compartmentTmp := compartment.(string)
547547
changeCompartmentRequest.CompartmentId = &compartmentTmp
548548

549-
changeCompartmentRequest.RequestMetadata.RetryPolicy = getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
549+
changeCompartmentRequest.RequestMetadata.RetryPolicy = GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection")
550550

551551
response, err := s.Client.ChangeAiPrivateEndpointCompartment(context.Background(), changeCompartmentRequest)
552552
if err != nil {
553553
return err
554554
}
555555

556556
workId := response.OpcWorkRequestId
557-
return s.getAiPrivateEndpointFromWorkRequest(workId, getRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection"), oci_ai_anomaly_detection.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate))
557+
return s.getAiPrivateEndpointFromWorkRequest(workId, GetRetryPolicy(s.DisableNotFoundRetries, "ai_anomaly_detection"), oci_ai_anomaly_detection.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate))
558558
}

0 commit comments

Comments
 (0)