Skip to content

Commit

Permalink
Merge pull request #786 from hashicorp/auto-pr/67990021f
Browse files Browse the repository at this point in the history
Auto PR: Regenerating the Go SDK (bce3136)
  • Loading branch information
mbfrahry authored Dec 18, 2023
2 parents 33b3107 + bce3136 commit 3dd84b9
Show file tree
Hide file tree
Showing 36 changed files with 24 additions and 467 deletions.
52 changes: 0 additions & 52 deletions resource-manager/maintenance/2023-04-01/applyupdate/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions resource-manager/maintenance/2023-04-01/applyupdate/client.go

This file was deleted.

43 changes: 0 additions & 43 deletions resource-manager/maintenance/2023-04-01/applyupdate/constants.go

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions resource-manager/maintenance/2023-04-01/applyupdate/version.go

This file was deleted.

6 changes: 0 additions & 6 deletions resource-manager/maintenance/2023-04-01/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package v2023_04_01

import (
"github.com/Azure/go-autorest/autorest"
"github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/applyupdate"
"github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/applyupdates"
"github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments"
"github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations"
Expand All @@ -14,7 +13,6 @@ import (
)

type Client struct {
ApplyUpdate *applyupdate.ApplyUpdateClient
ApplyUpdates *applyupdates.ApplyUpdatesClient
ConfigurationAssignments *configurationassignments.ConfigurationAssignmentsClient
MaintenanceConfigurations *maintenanceconfigurations.MaintenanceConfigurationsClient
Expand All @@ -24,9 +22,6 @@ type Client struct {

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

applyUpdateClient := applyupdate.NewApplyUpdateClientWithBaseURI(endpoint)
configureAuthFunc(&applyUpdateClient.Client)

applyUpdatesClient := applyupdates.NewApplyUpdatesClientWithBaseURI(endpoint)
configureAuthFunc(&applyUpdatesClient.Client)

Expand All @@ -43,7 +38,6 @@ func NewClientWithBaseURI(endpoint string, configureAuthFunc func(c *autorest.Cl
configureAuthFunc(&updatesClient.Client)

return Client{
ApplyUpdate: &applyUpdateClient,
ApplyUpdates: &applyUpdatesClient,
ConfigurationAssignments: &configurationAssignmentsClient,
MaintenanceConfigurations: &maintenanceConfigurationsClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ client.Client.Authorizer = authorizer
ctx := context.TODO()
id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue")

payload := appserviceenvironments.PrivateLinkConnectionApprovalRequestResource{
payload := appserviceenvironments.RemotePrivateEndpointConnectionARMResource{
// ...
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type ApproveOrRejectPrivateEndpointConnectionOperationResponse struct {
}

// ApproveOrRejectPrivateEndpointConnection ...
func (c AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) (result ApproveOrRejectPrivateEndpointConnectionOperationResponse, err error) {
func (c AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnection(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) (result ApproveOrRejectPrivateEndpointConnectionOperationResponse, err error) {
opts := client.RequestOptions{
ContentType: "application/json; charset=utf-8",
ExpectedStatusCodes: []int{
Expand Down Expand Up @@ -60,7 +60,7 @@ func (c AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnection(c
}

// ApproveOrRejectPrivateEndpointConnectionThenPoll performs ApproveOrRejectPrivateEndpointConnection then polls until it's completed
func (c AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input PrivateLinkConnectionApprovalRequestResource) error {
func (c AppServiceEnvironmentsClient) ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx context.Context, id HostingEnvironmentPrivateEndpointConnectionId, input RemotePrivateEndpointConnectionARMResource) error {
result, err := c.ApproveOrRejectPrivateEndpointConnection(ctx, id, input)
if err != nil {
return fmt.Errorf("performing ApproveOrRejectPrivateEndpointConnection: %+v", err)
Expand Down

This file was deleted.

Loading

0 comments on commit 3dd84b9

Please sign in to comment.