Skip to content

Commit

Permalink
new resource and data source: azurerm_oracle_exadata_infrastructure (#…
Browse files Browse the repository at this point in the history
…27177)

* * Add Exadata Infrastructure files.

* * Format.

* * Move to bottom.

* * Add validators.

* * Format blocks.

* * Address comments.

* Update website/docs/r/oracledatabase_exadata_infrastructure.html.markdown

Co-authored-by: kt <[email protected]>

* Update website/docs/r/oracledatabase_exadata_infrastructure.html.markdown

Co-authored-by: kt <[email protected]>

* Update website/docs/r/oracledatabase_exadata_infrastructure.html.markdown

Co-authored-by: kt <[email protected]>

* * Address comments.

* Update internal/services/oracledatabase/exadata_infrastructure_resource_test.go

* Update internal/services/oracledatabase/exadata_infrastructure_resource_test.go

* * Fix website linter issues.

* * Merge from main.

* * Update test.

* * Remove fields not supported in ODB@A UI.

* * Adjust timeouts.

* * Rearrange guard and update maintenance window.

* * Update.

* * Update.

* * Update docs.

* * Update name.

* * Update spec.

* * Update spec.

---------

Co-authored-by: kt <[email protected]>
  • Loading branch information
eelhomsi and katbyte authored Oct 11, 2024
1 parent bc131c0 commit 5a3a324
Show file tree
Hide file tree
Showing 265 changed files with 17,841 additions and 1 deletion.
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
26 changes: 26 additions & 0 deletions internal/services/oracledatabase/client/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright © 2024, Oracle and/or its affiliates. All rights reserved

package client

import (
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, err
}
return &Client{
OracleDatabaseClient: oracleDatabaseClient,
}, nil
}
Loading

0 comments on commit 5a3a324

Please sign in to comment.