Skip to content

Commit acbf196

Browse files
authored
Candidate for release_v3.84.0
Candidate for release_v3.84.0
2 parents 85014cb + cd6f0a4 commit acbf196

File tree

79 files changed

+1759
-235
lines changed

Some content is hidden

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

79 files changed

+1759
-235
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
## 3.84.0 (Unreleased)
2+
3+
### Added
4+
- Support `name` field to Identity Provider Group Summary response
5+
- Support for ADB-S: Private Endpoint
6+
- Support for `register` and `reregister` to `datasafe` in `Autonomous database - Dedicated` resources
7+
- Support for `network_endpoint_details` in `oci_analytics_analytics_instance` resource
8+
29
## 3.83.1 (July 03, 2020)
310

411
### Fixed

examples/analytics/main.tf

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ provider "oci" {
2222
private_key_path = "${var.private_key_path}"
2323
}
2424

25-
resource "oci_analytics_analytics_instance" "test_oce_instance" {
25+
resource "oci_analytics_analytics_instance" "test_oce_instance_public" {
2626
compartment_id = "${var.compartment_ocid}"
2727
description = "OAC instance"
2828
email_notification = "${var.email_notification}"
@@ -34,16 +34,59 @@ resource "oci_analytics_analytics_instance" "test_oce_instance" {
3434
capacity_value = 2
3535
}
3636

37-
name = "testoacinstance"
37+
name = "testoacinstance1"
3838
freeform_tags = "${map("freeformkey", "freeformvalue")}"
3939
state = "ACTIVE"
4040
idcs_access_token = "${var.idcs_access_token}"
41+
42+
# Optional
43+
network_endpoint_details {
44+
#Required
45+
network_endpoint_type = "PUBLIC"
46+
47+
#Optional
48+
whitelisted_ips = ["${oci_core_vcn.test_vcn.cidr_block}"]
49+
50+
whitelisted_vcns = [{
51+
#Optional
52+
id = "${oci_core_vcn.test_vcn.id}"
53+
whitelisted_ips = ["${oci_core_vcn.test_vcn.cidr_block}"]
54+
}]
55+
}
56+
}
57+
58+
resource "oci_analytics_analytics_instance" "test_oce_instance_private" {
59+
compartment_id = "${var.compartment_ocid}"
60+
description = "OAC instance"
61+
email_notification = "${var.email_notification}"
62+
feature_set = "ENTERPRISE_ANALYTICS"
63+
license_type = "LICENSE_INCLUDED"
64+
65+
capacity {
66+
capacity_type = "OLPU_COUNT"
67+
capacity_value = 2
68+
}
69+
70+
name = "testoacinstance2"
71+
freeform_tags = "${map("freeformkey", "freeformvalue")}"
72+
state = "ACTIVE"
73+
idcs_access_token = "${var.idcs_access_token}"
74+
75+
# Optional
76+
network_endpoint_details {
77+
#Required
78+
network_endpoint_type = "PRIVATE"
79+
80+
#Optional
81+
subnet_id = "${oci_core_subnet.test_subnet.id}"
82+
vcn_id = "${oci_core_vcn.test_vcn.id}"
83+
}
4184
}
4285

4386
data "oci_analytics_analytics_instances" "test_instance" {
4487
compartment_id = "${var.compartment_ocid}"
4588
}
4689

4790
output "test" {
48-
value = "${data.oci_analytics_analytics_instances.test_instance.analytics_instances.*.id}"
91+
value = "${data.oci_analytics_analytics_instances.test_instance.id}"
4992
}

examples/analytics/subnet.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
resource "oci_core_vcn" "test_vcn" {
5+
cidr_block = "10.0.0.0/16"
6+
compartment_id = "${var.compartment_ocid}"
7+
display_name = "exampleVCN"
8+
dns_label = "tfexamplevcn"
9+
}
10+
11+
resource "oci_core_subnet" "test_subnet" {
12+
cidr_block = "10.0.1.0/24"
13+
display_name = "regionalSubnet"
14+
dns_label = "regionalsubnet"
15+
compartment_id = "${var.compartment_ocid}"
16+
vcn_id = "${oci_core_vcn.test_vcn.id}"
17+
security_list_ids = ["${oci_core_vcn.test_vcn.default_security_list_id}"]
18+
route_table_id = "${oci_core_vcn.test_vcn.default_route_table_id}"
19+
dhcp_options_id = "${oci_core_vcn.test_vcn.default_dhcp_options_id}"
20+
}

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 v0.12.4-0.20190628193153-a74738cd35fc
99
github.com/mitchellh/cli v1.0.0
10-
github.com/oracle/oci-go-sdk v21.1.0+incompatible
10+
github.com/oracle/oci-go-sdk v21.2.0+incompatible
1111
github.com/stretchr/objx v0.1.1 // indirect
1212
github.com/stretchr/testify v1.3.0
1313
gopkg.in/yaml.v2 v2.2.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ github.com/oracle/oci-go-sdk v21.0.0+incompatible h1:NMVM7JHdbH2crOOOiN3iEdmMJ6Z
457457
github.com/oracle/oci-go-sdk v21.0.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
458458
github.com/oracle/oci-go-sdk v21.1.0+incompatible h1:VFYs6hcxQ8plUGWbIcZAGbDhQttMwH+CWSvRZjJGXNo=
459459
github.com/oracle/oci-go-sdk v21.1.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
460+
github.com/oracle/oci-go-sdk v21.2.0+incompatible h1:iaZTdpIQjd73yYCju+s+3dgG49ZCxtj2O25eqDfrgsE=
461+
github.com/oracle/oci-go-sdk v21.2.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
460462
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 h1:m3CEgv3ah1Rhy82L+c0QG/U3VyY1UsvsIdkh0/rU97Y=
461463
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
462464
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func main() {
2323
var compartmentName = flag.String("compartment_name", "", "[export] The name of a compartment to export.")
2424
var outputPath = flag.String("output_path", "", "[export] Path to output generated configurations and state files of the exported compartment")
2525
var services = flag.String("services", "", "[export] Comma-separated list of service resources to export. By default, all compartment-scope resources are exported.")
26+
var excludeServices = flag.String("exclude_services", "", "[export] [experimental] Comma-separated list of service resources to exclude from export. If a service is present in both 'services' and 'exclude_services' argument, it will be excluded.")
2627
var ids = flag.String("ids", "", "[export] Comma-separated list of resource IDs to export. The ID could either be an OCID or a Terraform import ID. By default, all resources are exported.")
2728
var generateStateFile = flag.Bool("generate_state", false, "[export][experimental] Set this to import the discovered resources into a state file along with the Terraform configuration")
2829
var help = flag.Bool("help", false, "Prints usage options")
@@ -70,6 +71,10 @@ func main() {
7071
args.Services = strings.Split(*services, ",")
7172
}
7273

74+
if excludeServices != nil && *excludeServices != "" {
75+
args.ExcludeServices = strings.Split(*excludeServices, ",")
76+
}
77+
7378
if ids != nil && *ids != "" {
7479
args.IDs = strings.Split(*ids, ",")
7580
}

oci/analytics_analytics_instance_data_source.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ func (s *AnalyticsAnalyticsInstanceDataSourceCrud) SetData() error {
9999
s.D.Set("name", *s.Res.Name)
100100
}
101101

102+
if s.Res.NetworkEndpointDetails != nil {
103+
networkEndpointDetailsArray := []interface{}{}
104+
if networkEndpointDetailsMap := NetworkEndpointDetailsToMap(&s.Res.NetworkEndpointDetails); networkEndpointDetailsMap != nil {
105+
networkEndpointDetailsArray = append(networkEndpointDetailsArray, networkEndpointDetailsMap)
106+
}
107+
s.D.Set("network_endpoint_details", networkEndpointDetailsArray)
108+
} else {
109+
s.D.Set("network_endpoint_details", nil)
110+
}
111+
102112
if s.Res.ServiceUrl != nil {
103113
s.D.Set("service_url", *s.Res.ServiceUrl)
104114
}

0 commit comments

Comments
 (0)