-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hc-github-team-tf-azure
committed
Nov 11, 2024
1 parent
b730ec9
commit c79afc0
Showing
921 changed files
with
67,288 additions
and
14 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
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
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
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
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
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
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,100 @@ | ||
package v2024_10_01 | ||
|
||
// 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/recoveryservices/2024-10-01/getprivatelinkresources" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/listprivatelinkresources" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/recoveryservices" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/registeredidentities" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/replicationusages" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaultcertificates" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaultextendedinfo" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaults" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/vaultusages" | ||
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" | ||
sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" | ||
) | ||
|
||
type Client struct { | ||
GetPrivateLinkResources *getprivatelinkresources.GetPrivateLinkResourcesClient | ||
ListPrivateLinkResources *listprivatelinkresources.ListPrivateLinkResourcesClient | ||
RecoveryServices *recoveryservices.RecoveryServicesClient | ||
RegisteredIdentities *registeredidentities.RegisteredIdentitiesClient | ||
ReplicationUsages *replicationusages.ReplicationUsagesClient | ||
VaultCertificates *vaultcertificates.VaultCertificatesClient | ||
VaultExtendedInfo *vaultextendedinfo.VaultExtendedInfoClient | ||
VaultUsages *vaultusages.VaultUsagesClient | ||
Vaults *vaults.VaultsClient | ||
} | ||
|
||
func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { | ||
getPrivateLinkResourcesClient, err := getprivatelinkresources.NewGetPrivateLinkResourcesClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building GetPrivateLinkResources client: %+v", err) | ||
} | ||
configureFunc(getPrivateLinkResourcesClient.Client) | ||
|
||
listPrivateLinkResourcesClient, err := listprivatelinkresources.NewListPrivateLinkResourcesClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building ListPrivateLinkResources client: %+v", err) | ||
} | ||
configureFunc(listPrivateLinkResourcesClient.Client) | ||
|
||
recoveryServicesClient, err := recoveryservices.NewRecoveryServicesClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building RecoveryServices client: %+v", err) | ||
} | ||
configureFunc(recoveryServicesClient.Client) | ||
|
||
registeredIdentitiesClient, err := registeredidentities.NewRegisteredIdentitiesClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building RegisteredIdentities client: %+v", err) | ||
} | ||
configureFunc(registeredIdentitiesClient.Client) | ||
|
||
replicationUsagesClient, err := replicationusages.NewReplicationUsagesClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building ReplicationUsages client: %+v", err) | ||
} | ||
configureFunc(replicationUsagesClient.Client) | ||
|
||
vaultCertificatesClient, err := vaultcertificates.NewVaultCertificatesClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building VaultCertificates client: %+v", err) | ||
} | ||
configureFunc(vaultCertificatesClient.Client) | ||
|
||
vaultExtendedInfoClient, err := vaultextendedinfo.NewVaultExtendedInfoClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building VaultExtendedInfo client: %+v", err) | ||
} | ||
configureFunc(vaultExtendedInfoClient.Client) | ||
|
||
vaultUsagesClient, err := vaultusages.NewVaultUsagesClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building VaultUsages client: %+v", err) | ||
} | ||
configureFunc(vaultUsagesClient.Client) | ||
|
||
vaultsClient, err := vaults.NewVaultsClientWithBaseURI(sdkApi) | ||
if err != nil { | ||
return nil, fmt.Errorf("building Vaults client: %+v", err) | ||
} | ||
configureFunc(vaultsClient.Client) | ||
|
||
return &Client{ | ||
GetPrivateLinkResources: getPrivateLinkResourcesClient, | ||
ListPrivateLinkResources: listPrivateLinkResourcesClient, | ||
RecoveryServices: recoveryServicesClient, | ||
RegisteredIdentities: registeredIdentitiesClient, | ||
ReplicationUsages: replicationUsagesClient, | ||
VaultCertificates: vaultCertificatesClient, | ||
VaultExtendedInfo: vaultExtendedInfoClient, | ||
VaultUsages: vaultUsagesClient, | ||
Vaults: vaultsClient, | ||
}, nil | ||
} |
36 changes: 36 additions & 0 deletions
36
resource-manager/recoveryservices/2024-10-01/getprivatelinkresources/README.md
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,36 @@ | ||
|
||
## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/getprivatelinkresources` Documentation | ||
|
||
The `getprivatelinkresources` SDK allows for interaction with Azure Resource Manager `recoveryservices` (API Version `2024-10-01`). | ||
|
||
This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). | ||
|
||
### Import Path | ||
|
||
```go | ||
import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-10-01/getprivatelinkresources" | ||
``` | ||
|
||
|
||
### Client Initialization | ||
|
||
```go | ||
client := getprivatelinkresources.NewGetPrivateLinkResourcesClientWithBaseURI("https://management.azure.com") | ||
client.Client.Authorizer = authorizer | ||
``` | ||
|
||
|
||
### Example Usage: `GetPrivateLinkResourcesClient.PrivateLinkResourcesGet` | ||
|
||
```go | ||
ctx := context.TODO() | ||
id := getprivatelinkresources.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "privateLinkResourceName") | ||
|
||
read, err := client.PrivateLinkResourcesGet(ctx, id) | ||
if err != nil { | ||
// handle the error | ||
} | ||
if model := read.Model; model != nil { | ||
// do something with the model/response object | ||
} | ||
``` |
26 changes: 26 additions & 0 deletions
26
resource-manager/recoveryservices/2024-10-01/getprivatelinkresources/client.go
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,26 @@ | ||
package getprivatelinkresources | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" | ||
sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" | ||
) | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type GetPrivateLinkResourcesClient struct { | ||
Client *resourcemanager.Client | ||
} | ||
|
||
func NewGetPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*GetPrivateLinkResourcesClient, error) { | ||
client, err := resourcemanager.NewClient(sdkApi, "getprivatelinkresources", defaultApiVersion) | ||
if err != nil { | ||
return nil, fmt.Errorf("instantiating GetPrivateLinkResourcesClient: %+v", err) | ||
} | ||
|
||
return &GetPrivateLinkResourcesClient{ | ||
Client: client, | ||
}, nil | ||
} |
Oops, something went wrong.