-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Resource:
azurerm_extended_location_custom_location
(#24267)
* temp * acc test * extended location temp * Fix test * Update acc test * Update extension type * update test ext * New Resource: azurerm_extended_location_custom_location * update allowed cats * fix gencheck issue * Update to use commonschema * address some comments * update docs * pass golint * update to avoid nil dereference * temp * acc test * extended location temp * Fix test * Update acc test * Update extension type * update test ext * New Resource: azurerm_extended_location_custom_location * fix conflict * Added validation func, more acc test, updated script and docs * change name validation func * remove location overrride in acc tests * Address comments, remove unused location overrides, add examples in doc * Fix indent in client list * address comments, change elem type, removing redundant code * Update vendors * update oid in python script, add more comments inline for users * Address comments, remove some unupdatable attributes * revert * address comments on update --------- Co-authored-by: Elena Xin (Centific Technologies Inc) <[email protected]>
- Loading branch information
1 parent
a02cf62
commit 19ad4f1
Showing
35 changed files
with
2,353 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
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,27 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
package client | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
CustomLocationsClient *customlocations.CustomLocationsClient | ||
} | ||
|
||
func NewClient(o *common.ClientOptions) (*Client, error) { | ||
customLocationsClient, err := customlocations.NewCustomLocationsClientWithBaseURI(o.Environment.ResourceManager) | ||
if err != nil { | ||
return nil, fmt.Errorf("building CustomLocations client: %+v", err) | ||
} | ||
o.Configure(customLocationsClient.Client, o.Authorizers.ResourceManager) | ||
|
||
return &Client{ | ||
CustomLocationsClient: customLocationsClient, | ||
}, nil | ||
} |
Oops, something went wrong.