Skip to content

Commit 95157a5

Browse files
authored
Releasing version 4.74.0
2 parents 2ac47b1 + d38d27d commit 95157a5

File tree

326 files changed

+15897
-1035
lines changed

Some content is hidden

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

326 files changed

+15897
-1035
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 4.74.0 (May 04, 2022)
2+
3+
### Added
4+
- E4 Dense Availability for OCVS
5+
- Nvme variable to LaunchInstanceShapeConfigDetails & UpdateInstanceShapeConfigDetails
6+
- Provisioned Concurrency for Oracle Functions
7+
- Support for App Dependency Management service
8+
- support for rename database, added tests for extending database-name length.
9+
110
## 4.73.0 (April 27, 2022)
211

312
### Added

examples/adm/main.tf

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {}
5+
variable "user_ocid" {}
6+
variable "fingerprint" {}
7+
variable "private_key_path" {}
8+
variable "region" {}
9+
variable "compartment_ocid" {}
10+
11+
variable "knowledge_base_freeform_tags" {
12+
default = { "bar-key" = "value" }
13+
}
14+
15+
variable "knowledge_base_defined_tags" {
16+
default = { "example-tag-namespace-all.example-tag" = "value" }
17+
}
18+
19+
variable "knowledge_base_id" {
20+
default = "id"
21+
}
22+
23+
provider "oci" {
24+
tenancy_ocid = var.tenancy_ocid
25+
user_ocid = var.user_ocid
26+
fingerprint = var.fingerprint
27+
private_key_path = var.private_key_path
28+
region = var.region
29+
}
30+
31+
resource "oci_adm_knowledge_base" "example_knowledge_base" {
32+
#Required
33+
compartment_id = var.compartment_ocid
34+
35+
#Optional
36+
display_name = "Example Knowledge Base"
37+
}
38+
39+
resource "oci_adm_vulnerability_audit" "example_vulnerability_audit" {
40+
#Required
41+
compartment_id = var.compartment_ocid
42+
build_type = "MAVEN"
43+
44+
#Optional
45+
knowledge_base_id = oci_adm_knowledge_base.example_knowledge_base.id
46+
application_dependencies {
47+
gav = "com.google.guava:guava:29.0-jre"
48+
node_id = "node_id"
49+
application_dependency_node_ids = ["node_id"]
50+
}
51+
display_name = "Example Vulnerability Audit"
52+
}
53+
54+
data "oci_adm_knowledge_base" "example_knowledge_base" {
55+
knowledge_base_id = oci_adm_knowledge_base.example_knowledge_base.id
56+
}
57+
58+
data "oci_adm_knowledge_bases" "example_knowledge_bases" {
59+
compartment_id = var.compartment_ocid
60+
}
61+
62+
data "oci_adm_vulnerability_audit" "example_vulnerability_audit" {
63+
vulnerability_audit_id = oci_adm_vulnerability_audit.example_vulnerability_audit.id
64+
}

examples/database/adb/autonomous_database.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "oci_database_autonomous_database" "autonomous_database" {
2828
compartment_id = var.compartment_ocid
2929
cpu_core_count = "1"
3030
data_storage_size_in_tbs = "1"
31-
db_name = "adbdb1f"
31+
db_name = "adbDatabaseName123"
3232

3333
#Optional
3434
db_version = data.oci_database_autonomous_db_versions.test_autonomous_db_versions.autonomous_db_versions[0].version

examples/functions/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ resource "oci_functions_function" "test_function" {
102102
trace_config {
103103
is_enabled = var.function_trace_config.is_enabled
104104
}
105+
106+
provisioned_concurrency_config {
107+
strategy = "CONSTANT"
108+
count = 40
109+
}
105110
}
106111

107112
data "oci_functions_functions" "test_functions" {

examples/ocvp/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ resource "oci_ocvp_sddc" "test_sddc" {
379379
provisioning_vlan_id = oci_core_vlan.test_provisioning_vlan.id
380380
replication_vlan_id = oci_core_vlan.test_replication_vlan.id
381381
initial_sku = "HOUR"
382+
initial_host_ocpu_count = "52.0"
383+
initial_host_shape_name = "BM.DenseIO2.52"
382384
is_shielded_instance_enabled = false
383385
hcx_action = "upgrade"
384386
refresh_hcx_license_status = true
@@ -396,6 +398,8 @@ resource "oci_ocvp_esxi_host" "test_esxi_host" {
396398
#Optional
397399
compute_availability_domain = data.oci_identity_availability_domains.ADs.availability_domains[0]["name"]
398400
current_sku = data.oci_ocvp_supported_skus.test_supported_skus.items[0].name
401+
host_ocpu_count = "52.0"
402+
host_shape_name = "BM.DenseIO2.52"
399403
next_sku = data.oci_ocvp_supported_skus.test_supported_skus.items[0].name
400404
#defined_tags = {"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "${var.esxihost_defined_tags_value}"}
401405
#display_name = var.esxihost_display_name

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ require (
5353
github.com/mitchellh/mapstructure v1.1.2 // indirect
5454
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5555
github.com/oklog/run v1.0.0 // indirect
56-
github.com/oracle/oci-go-sdk/v65 v65.3.0
56+
github.com/oracle/oci-go-sdk/v65 v65.4.0
5757
github.com/pmezard/go-difflib v1.0.0 // indirect
5858
github.com/sony/gobreaker v0.5.0 // indirect
5959
github.com/ulikunitz/xz v0.5.8 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
289289
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
290290
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
291291
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
292-
github.com/oracle/oci-go-sdk/v65 v65.3.0 h1:O8QvjQHyKeIxxyLBkv0w7NAmwPSDeIg/eZCevKMNq3s=
293-
github.com/oracle/oci-go-sdk/v65 v65.3.0/go.mod h1:oyMrMa1vOzzKTmPN+kqrTR9y9kPA2tU1igN3NUSNTIE=
292+
github.com/oracle/oci-go-sdk/v65 v65.4.0 h1:ybRzSKC+LyUPn8RYX7PBuxuUuEjOARE9aT+HSpYIRh0=
293+
github.com/oracle/oci-go-sdk/v65 v65.4.0/go.mod h1:oyMrMa1vOzzKTmPN+kqrTR9y9kPA2tU1igN3NUSNTIE=
294294
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
295295
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
296296
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

internal/client/adm_clients.go

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
package client
5+
6+
import (
7+
oci_adm "github.com/oracle/oci-go-sdk/v65/adm"
8+
9+
oci_common "github.com/oracle/oci-go-sdk/v65/common"
10+
)
11+
12+
func init() {
13+
RegisterOracleClient("oci_adm.ApplicationDependencyManagementClient", &OracleClient{InitClientFn: initAdmApplicationDependencyManagementClient})
14+
}
15+
16+
func initAdmApplicationDependencyManagementClient(configProvider oci_common.ConfigurationProvider, configureClient ConfigureClient, serviceClientOverrides ServiceClientOverrides) (interface{}, error) {
17+
client, err := oci_adm.NewApplicationDependencyManagementClientWithConfigurationProvider(configProvider)
18+
if err != nil {
19+
return nil, err
20+
}
21+
err = configureClient(&client.BaseClient)
22+
if err != nil {
23+
return nil, err
24+
}
25+
26+
if serviceClientOverrides.HostUrlOverride != "" {
27+
client.Host = serviceClientOverrides.HostUrlOverride
28+
}
29+
return &client, nil
30+
}
31+
32+
func (m *OracleClients) ApplicationDependencyManagementClient() *oci_adm.ApplicationDependencyManagementClient {
33+
return m.GetClient("oci_adm.ApplicationDependencyManagementClient").(*oci_adm.ApplicationDependencyManagementClient)
34+
}

internal/globalvar/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const (
2323
ClientHostOverridesEnv = "CLIENT_HOST_OVERRIDES"
2424
CustomCertLocationEnv = "custom_cert_location"
2525
AcceptLocalCerts = "accept_local_certs"
26+
JobOCID = "job-ocid"
2627

2728
AuthAttrName = "auth"
2829
TenancyOcidAttrName = "tenancy_ocid"

internal/globalvar/version.go

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

10-
const Version = "4.73.0"
11-
const ReleaseDate = "2022-04-27"
10+
const Version = "4.74.0"
11+
const ReleaseDate = "2022-05-04"
1212

1313
func PrintVersion() {
1414
log.Printf("[INFO] terraform-provider-oci %s\n", Version)

0 commit comments

Comments
 (0)