Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencies - update batch to 2022-10-01 #21962

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/services/batch/batch_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package batch
import (
"fmt"

"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchaccount"
)

// expandBatchAccountKeyVaultReference expands Batch account KeyVault reference
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_account_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchaccount"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/batch/validate"
keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-helpers/resourcemanager/identity"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchaccount"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_account_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchaccount"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_application_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/application"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/application"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/batch/validate"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_application_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/application"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/application"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/application"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/application"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_certificate_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/certificate"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/certificate"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/batch/validate"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_certificate_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/certificate"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/certificate"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"regexp"
"testing"

"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/certificate"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/certificate"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
4 changes: 2 additions & 2 deletions internal/services/batch/batch_job_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/Azure/go-autorest/autorest/date"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/pool"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/pool"
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/batch/parse"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/batch/validate"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_job_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchaccount"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
14 changes: 7 additions & 7 deletions internal/services/batch/batch_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/pool"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/pool"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/utils"
)
Expand Down Expand Up @@ -369,8 +369,8 @@ func flattenBatchPoolMountConfig(d *pluginsdk.ResourceData, config *pool.MountCo
cifsMountConfigList := make([]interface{}, 0)
cifsMountConfig := make(map[string]interface{})

cifsMountConfig["user_name"] = config.CifsMountConfiguration.Username
cifsMountConfig["password"] = findSensitiveInfoForMountConfig("password", "user_name", config.CifsMountConfiguration.Username, "cifs_mount", d)
cifsMountConfig["user_name"] = config.CifsMountConfiguration.UserName
cifsMountConfig["password"] = findSensitiveInfoForMountConfig("password", "user_name", config.CifsMountConfiguration.UserName, "cifs_mount", d)
cifsMountConfig["source"] = config.CifsMountConfiguration.Source
cifsMountConfig["relative_mount_path"] = config.CifsMountConfiguration.RelativeMountPath

Expand Down Expand Up @@ -1055,7 +1055,7 @@ func expandBatchPoolCIFSMountConfiguration(list []interface{}) (*pool.CIFSMountC

configMap := list[0].(map[string]interface{})
result := pool.CIFSMountConfiguration{
Username: configMap["user_name"].(string),
UserName: configMap["user_name"].(string),
Source: configMap["source"].(string),
Password: configMap["password"].(string),
RelativeMountPath: configMap["relative_mount_path"].(string),
Expand Down Expand Up @@ -1104,7 +1104,7 @@ func ExpandBatchPoolNetworkConfiguration(list []interface{}) (*pool.NetworkConfi
networkConfiguration := &pool.NetworkConfiguration{}

if v, ok := networkConfigValue["dynamic_vnet_assignment_scope"]; ok {
networkConfiguration.DynamicVNetAssignmentScope = pointer.To(pool.DynamicVNetAssignmentScope(v.(string)))
networkConfiguration.DynamicVnetAssignmentScope = pointer.To(pool.DynamicVNetAssignmentScope(v.(string)))
}

if v, ok := networkConfigValue["subnet_id"]; ok {
Expand Down Expand Up @@ -1297,8 +1297,8 @@ func flattenBatchPoolNetworkConfiguration(input *pool.NetworkConfiguration) []in
}

dynamicVNetAssignmentScope := ""
if input.DynamicVNetAssignmentScope != nil {
dynamicVNetAssignmentScope = string(*input.DynamicVNetAssignmentScope)
if input.DynamicVnetAssignmentScope != nil {
dynamicVNetAssignmentScope = string(*input.DynamicVnetAssignmentScope)
}

return []interface{}{
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_pool_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/pool"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/pool"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/batch/validate"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_pool_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-helpers/resourcemanager/identity"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/pool"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/pool"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/batch/batch_pool_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"regexp"
"testing"

"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/pool"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/pool"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
8 changes: 4 additions & 4 deletions internal/services/batch/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"

"github.com/Azure/go-autorest/autorest"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/application"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/certificate"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-01-01/pool"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/application"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/batchaccount"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/certificate"
"github.com/hashicorp/go-azure-sdk/resource-manager/batch/2022-10-01/pool"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
batchDataplane "github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch"
)
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading