-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #841 from hashicorp/auto-pr/dac1b5388
Auto PR: Regenerating the Go SDK (e9cd7db)
- Loading branch information
Showing
1,290 changed files
with
93,092 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(¬ebookWorkspacesResourceClient.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: ¬ebookWorkspacesResourceClient, | ||
PrivateEndpointConnections: &privateEndpointConnectionsClient, | ||
PrivateLinkResources: &privateLinkResourcesClient, | ||
Rbacs: &rbacsClient, | ||
Restorables: &restorablesClient, | ||
Services: &servicesClient, | ||
SqlDedicatedGateway: &sqlDedicatedGatewayClient, | ||
} | ||
} |
Oops, something went wrong.