Skip to content

Commit

Permalink
Merge pull request #841 from hashicorp/auto-pr/dac1b5388
Browse files Browse the repository at this point in the history
Auto PR: Regenerating the Go SDK (e9cd7db)
  • Loading branch information
jackofallops authored Jan 24, 2024
2 parents 93e3e0f + e9cd7db commit cb742c7
Show file tree
Hide file tree
Showing 1,290 changed files with 93,092 additions and 0 deletions.
89 changes: 89 additions & 0 deletions resource-manager/cosmosdb/2022-05-15/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
package v2022_05_15

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

import (
"github.com/Azure/go-autorest/autorest"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/datatransfer"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/graphapicompute"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/managedcassandras"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/materializedviewsbuilder"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/notebookworkspacesresource"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/privateendpointconnections"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/privatelinkresources"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/rbacs"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/restorables"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/services"
"github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway"
)

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

func NewClientWithBaseURI(endpoint string, configureAuthFunc func(c *autorest.Client)) Client {

cosmosDBClient := cosmosdb.NewCosmosDBClientWithBaseURI(endpoint)
configureAuthFunc(&cosmosDBClient.Client)

dataTransferClient := datatransfer.NewDataTransferClientWithBaseURI(endpoint)
configureAuthFunc(&dataTransferClient.Client)

graphAPIComputeClient := graphapicompute.NewGraphAPIComputeClientWithBaseURI(endpoint)
configureAuthFunc(&graphAPIComputeClient.Client)

managedCassandrasClient := managedcassandras.NewManagedCassandrasClientWithBaseURI(endpoint)
configureAuthFunc(&managedCassandrasClient.Client)

materializedViewsBuilderClient := materializedviewsbuilder.NewMaterializedViewsBuilderClientWithBaseURI(endpoint)
configureAuthFunc(&materializedViewsBuilderClient.Client)

notebookWorkspacesResourceClient := notebookworkspacesresource.NewNotebookWorkspacesResourceClientWithBaseURI(endpoint)
configureAuthFunc(&notebookWorkspacesResourceClient.Client)

privateEndpointConnectionsClient := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI(endpoint)
configureAuthFunc(&privateEndpointConnectionsClient.Client)

privateLinkResourcesClient := privatelinkresources.NewPrivateLinkResourcesClientWithBaseURI(endpoint)
configureAuthFunc(&privateLinkResourcesClient.Client)

rbacsClient := rbacs.NewRbacsClientWithBaseURI(endpoint)
configureAuthFunc(&rbacsClient.Client)

restorablesClient := restorables.NewRestorablesClientWithBaseURI(endpoint)
configureAuthFunc(&restorablesClient.Client)

servicesClient := services.NewServicesClientWithBaseURI(endpoint)
configureAuthFunc(&servicesClient.Client)

sqlDedicatedGatewayClient := sqldedicatedgateway.NewSqlDedicatedGatewayClientWithBaseURI(endpoint)
configureAuthFunc(&sqlDedicatedGatewayClient.Client)

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

0 comments on commit cb742c7

Please sign in to comment.