Skip to content

Commit

Permalink
Merge pull request #1120 from hashicorp/auto-pr/44cc3980b
Browse files Browse the repository at this point in the history
Auto PR: Regenerating the Go SDK (0165dee)
  • Loading branch information
stephybun authored Nov 18, 2024
2 parents 5245fc9 + 0165dee commit 46464c1
Show file tree
Hide file tree
Showing 1,976 changed files with 144,813 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var _ SecretParameters = URLSigningKeyParameters{}
type URLSigningKeyParameters struct {
KeyId string `json:"keyId"`
SecretSource ResourceReference `json:"secretSource"`
SecretVersion *string `json:"secretVersion,omitempty"`
SecretVersion string `json:"secretVersion"`

// Fields inherited from SecretParameters

Expand Down
136 changes: 136 additions & 0 deletions resource-manager/cosmosdb/2024-11-15/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
package v2024_11_15

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

import (
"fmt"

"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/cosmosdb"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/datatransfer"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/graphapicompute"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/managedcassandras"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/materializedviewsbuilder"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/mongorbacs"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/notebookworkspacesresource"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/privateendpointconnections"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/privatelinkresources"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/rbacs"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/restorables"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-11-15/sqldedicatedgateway"
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"
sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments"
)

type Client struct {
CosmosDB *cosmosdb.CosmosDBClient
DataTransfer *datatransfer.DataTransferClient
GraphAPICompute *graphapicompute.GraphAPIComputeClient
ManagedCassandras *managedcassandras.ManagedCassandrasClient
MaterializedViewsBuilder *materializedviewsbuilder.MaterializedViewsBuilderClient
Mongorbacs *mongorbacs.MongorbacsClient
NotebookWorkspacesResource *notebookworkspacesresource.NotebookWorkspacesResourceClient
PrivateEndpointConnections *privateendpointconnections.PrivateEndpointConnectionsClient
PrivateLinkResources *privatelinkresources.PrivateLinkResourcesClient
Rbacs *rbacs.RbacsClient
Restorables *restorables.RestorablesClient
Services *services.ServicesClient
SqlDedicatedGateway *sqldedicatedgateway.SqlDedicatedGatewayClient
}

func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) {
cosmosDBClient, err := cosmosdb.NewCosmosDBClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building CosmosDB client: %+v", err)
}
configureFunc(cosmosDBClient.Client)

dataTransferClient, err := datatransfer.NewDataTransferClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building DataTransfer client: %+v", err)
}
configureFunc(dataTransferClient.Client)

graphAPIComputeClient, err := graphapicompute.NewGraphAPIComputeClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building GraphAPICompute client: %+v", err)
}
configureFunc(graphAPIComputeClient.Client)

managedCassandrasClient, err := managedcassandras.NewManagedCassandrasClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building ManagedCassandras client: %+v", err)
}
configureFunc(managedCassandrasClient.Client)

materializedViewsBuilderClient, err := materializedviewsbuilder.NewMaterializedViewsBuilderClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building MaterializedViewsBuilder client: %+v", err)
}
configureFunc(materializedViewsBuilderClient.Client)

mongorbacsClient, err := mongorbacs.NewMongorbacsClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building Mongorbacs client: %+v", err)
}
configureFunc(mongorbacsClient.Client)

notebookWorkspacesResourceClient, err := notebookworkspacesresource.NewNotebookWorkspacesResourceClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building NotebookWorkspacesResource client: %+v", err)
}
configureFunc(notebookWorkspacesResourceClient.Client)

privateEndpointConnectionsClient, err := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building PrivateEndpointConnections client: %+v", err)
}
configureFunc(privateEndpointConnectionsClient.Client)

privateLinkResourcesClient, err := privatelinkresources.NewPrivateLinkResourcesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building PrivateLinkResources client: %+v", err)
}
configureFunc(privateLinkResourcesClient.Client)

rbacsClient, err := rbacs.NewRbacsClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building Rbacs client: %+v", err)
}
configureFunc(rbacsClient.Client)

restorablesClient, err := restorables.NewRestorablesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building Restorables client: %+v", err)
}
configureFunc(restorablesClient.Client)

servicesClient, err := services.NewServicesClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building Services client: %+v", err)
}
configureFunc(servicesClient.Client)

sqlDedicatedGatewayClient, err := sqldedicatedgateway.NewSqlDedicatedGatewayClientWithBaseURI(sdkApi)
if err != nil {
return nil, fmt.Errorf("building SqlDedicatedGateway client: %+v", err)
}
configureFunc(sqlDedicatedGatewayClient.Client)

return &Client{
CosmosDB: cosmosDBClient,
DataTransfer: dataTransferClient,
GraphAPICompute: graphAPIComputeClient,
ManagedCassandras: managedCassandrasClient,
MaterializedViewsBuilder: materializedViewsBuilderClient,
Mongorbacs: mongorbacsClient,
NotebookWorkspacesResource: notebookWorkspacesResourceClient,
PrivateEndpointConnections: privateEndpointConnectionsClient,
PrivateLinkResources: privateLinkResourcesClient,
Rbacs: rbacsClient,
Restorables: restorablesClient,
Services: servicesClient,
SqlDedicatedGateway: sqlDedicatedGatewayClient,
}, nil
}
Loading

0 comments on commit 46464c1

Please sign in to comment.