Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce OracleDatabase ExaData Infrastructure Resource & Data #27678

Merged
merged 53 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
90eb21b
* Add Exadata Infrastructure files.
eelhomsi Aug 9, 2024
9482eba
Merge branch 'main' into introduce-exa-data-and-resource
eelhomsi Aug 12, 2024
d26aada
* Format.
eelhomsi Sep 3, 2024
16a5e92
* Move to bottom.
eelhomsi Sep 9, 2024
61e90b7
* Add validators.
eelhomsi Sep 9, 2024
6f35ff7
* Format blocks.
eelhomsi Sep 9, 2024
19bc88c
* Address comments.
eelhomsi Sep 24, 2024
b3e4f33
Update website/docs/r/oracledatabase_exadata_infrastructure.html.mark…
eelhomsi Sep 25, 2024
76a1f16
Update website/docs/r/oracledatabase_exadata_infrastructure.html.mark…
eelhomsi Sep 25, 2024
4652730
Update website/docs/r/oracledatabase_exadata_infrastructure.html.mark…
eelhomsi Sep 25, 2024
4ab3c70
* Address comments.
eelhomsi Sep 25, 2024
659816a
Merge remote-tracking branch 'origin/introduce-exa-data-and-resource'…
eelhomsi Sep 25, 2024
2253a16
Update internal/services/oracledatabase/exadata_infrastructure_resour…
katbyte Sep 27, 2024
936cd8c
Update internal/services/oracledatabase/exadata_infrastructure_resour…
katbyte Sep 27, 2024
153ec94
* Fix website linter issues.
eelhomsi Oct 2, 2024
aea4588
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 3, 2024
5f7eb7c
* Merge from main.
eelhomsi Oct 3, 2024
a46e0d7
* Update test.
eelhomsi Oct 3, 2024
7442f44
* Remove fields not supported in ODB@A UI.
eelhomsi Oct 4, 2024
4745284
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 4, 2024
a148c3f
* Adjust timeouts.
eelhomsi Oct 4, 2024
40aa9ac
* Rearrange guard and update maintenance window.
eelhomsi Oct 8, 2024
2449ce3
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 8, 2024
6101d90
* Update.
eelhomsi Oct 9, 2024
0868f6b
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 9, 2024
809c7cc
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 10, 2024
2db6d11
* Update.
eelhomsi Oct 10, 2024
50a2a9f
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 11, 2024
3ccf7ba
* Update docs.
eelhomsi Oct 11, 2024
3f0ac5b
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 11, 2024
dbc8fd4
* Update name.
eelhomsi Oct 11, 2024
8da9bc6
* Update spec.
eelhomsi Oct 11, 2024
4634c98
* Update spec.
eelhomsi Oct 11, 2024
2158901
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 17, 2024
fec193b
* Update to address PR comments.
eelhomsi Oct 17, 2024
0a34cbd
* Update to address PR comments.
eelhomsi Oct 17, 2024
76b7953
Update internal/services/oracledatabase/exadata_infrastructure_data_s…
eelhomsi Oct 17, 2024
686b41b
* Update to address PR comments.
eelhomsi Oct 17, 2024
ad11629
Merge remote-tracking branch 'origin/introduce-exa-data-and-resource'…
eelhomsi Oct 17, 2024
d6aa54c
* Update to address PR comments.
eelhomsi Oct 17, 2024
89b22ec
* Update to address PR comments.
eelhomsi Oct 17, 2024
9a2c28b
* Update to address PR comments.
eelhomsi Oct 17, 2024
a8361d9
* Update to address PR comments.
eelhomsi Oct 17, 2024
0912fdb
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 17, 2024
393aad5
* Update to address PR comments.
eelhomsi Oct 17, 2024
f260313
* Fix test.
eelhomsi Oct 17, 2024
09584dc
minor adjustments and rewrite of the update function to allow updates…
stephybun Oct 17, 2024
5283bf5
revert resource name in acceptance test since OCI side can only accep…
stephybun Oct 17, 2024
0e6a1dd
* Add ForceNew to Schema.
eelhomsi Oct 17, 2024
cdcde22
Merge remote-tracking branch 'origin/introduce-exa-data-and-resource'…
eelhomsi Oct 17, 2024
82abc42
* Revert to old update behaviour.
eelhomsi Oct 17, 2024
d7d6731
* Remove `HasChangesExcept` logic.
eelhomsi Oct 17, 2024
bb80ceb
Merge remote-tracking branch 'refs/remotes/origin/main' into introduc…
eelhomsi Oct 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .teamcity/components/generated/services.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ var services = mapOf(
"newrelic" to "New Relic",
"nginx" to "Nginx",
"notificationhub" to "Notification Hub",
"oracledatabase" to "Oracle Database",
"orbital" to "Orbital",
"paloalto" to "Palo Alto",
"policy" to "Policy",
Expand Down
5 changes: 5 additions & 0 deletions internal/clients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ import (
newrelic "github.com/hashicorp/terraform-provider-azurerm/internal/services/newrelic/client"
nginx "github.com/hashicorp/terraform-provider-azurerm/internal/services/nginx/client"
notificationhub "github.com/hashicorp/terraform-provider-azurerm/internal/services/notificationhub/client"
oracledatabase "github.com/hashicorp/terraform-provider-azurerm/internal/services/oracledatabase/client"
orbital "github.com/hashicorp/terraform-provider-azurerm/internal/services/orbital/client"
paloalto "github.com/hashicorp/terraform-provider-azurerm/internal/services/paloalto/client"
policy "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/client"
Expand Down Expand Up @@ -236,6 +237,7 @@ type Client struct {
NewRelic *newrelic.Client
Nginx *nginx_2024_06_01_preview.Client
NotificationHubs *notificationhub.Client
OracleDatabase *oracledatabase.Client
Orbital *orbital.Client
PaloAlto *paloalto.Client
Policy *policy.Client
Expand Down Expand Up @@ -532,6 +534,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error
if client.NotificationHubs, err = notificationhub.NewClient(o); err != nil {
return fmt.Errorf("building clients for NotificationHubs: %+v", err)
}
if client.OracleDatabase, err = oracledatabase.NewClient(o); err != nil {
return fmt.Errorf("building clients for OracleDatabase: %+v", err)
}
if client.Orbital, err = orbital.NewClient(o); err != nil {
return fmt.Errorf("building clients for Orbital: %+v", err)
}
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/services/newrelic"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/nginx"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/notificationhub"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/oracledatabase"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/orbital"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/paloalto"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/policy"
Expand Down Expand Up @@ -188,6 +189,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration {
networkfunction.Registration{},
newrelic.Registration{},
nginx.Registration{},
oracledatabase.Registration{},
orbital.Registration{},
paloalto.Registration{},
policy.Registration{},
Expand Down
28 changes: 28 additions & 0 deletions internal/services/oracledatabase/client/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright © 2024, Oracle and/or its affiliates. All rights reserved

package client

import (
"fmt"

oracedatabase "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01"
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

type Client struct {
OracleDatabaseClient *oracedatabase.Client
}

func NewClient(o *common.ClientOptions) (*Client, error) {
o.DisableCorrelationRequestID = true
oracleDatabaseClient, err := oracedatabase.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) {
o.Configure(c, o.Authorizers.ResourceManager)
})
if err != nil {
return nil, fmt.Errorf("building Database client: %+v", err)
}
return &Client{
OracleDatabaseClient: oracleDatabaseClient,
}, nil
}
Loading
Loading