diff --git a/internal/services/storage/client/client.go b/internal/services/storage/client/client.go index d3bfd4b531a1..80a24e23add6 100644 --- a/internal/services/storage/client/client.go +++ b/internal/services/storage/client/client.go @@ -6,7 +6,7 @@ package client import ( "fmt" - storage_v2023_01_01 "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01" + storage "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01" "github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource" "github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource" "github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource" @@ -23,7 +23,7 @@ var StorageDomainSuffix *string type Client struct { StorageDomainSuffix string - ResourceManager *storage_v2023_01_01.Client + ResourceManager *storage.Client // TODO: import the Storage Sync Meta Client and use that SyncCloudEndpointsClient *cloudendpointresource.CloudEndpointResourceClient SyncGroupsClient *syncgroupresource.SyncGroupResourceClient @@ -43,7 +43,7 @@ func NewClient(o *common.ClientOptions) (*Client, error) { // Set global variable for post-configure validation StorageDomainSuffix = storageSuffix - resourceManager, err := storage_v2023_01_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { + resourceManager, err := storage.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) if err != nil { diff --git a/internal/services/storage/client/helpers.go b/internal/services/storage/client/helpers.go index 2c7f9b09f1f4..110f5f07bf0c 100644 --- a/internal/services/storage/client/helpers.go +++ b/internal/services/storage/client/helpers.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" ) var ( @@ -70,7 +70,7 @@ func (ad *AccountDetails) AccountKey(ctx context.Context, client Client) (*strin log.Printf("[DEBUG] Cache Miss - looking up the account key for %s..", ad.StorageAccountId) opts := storageaccounts.DefaultListKeysOperationOptions() - opts.Expand = pointer.To(storageaccounts.ListKeyExpandKerb) + opts.Expand = pointer.To(storageaccounts.ExpandKerb) listKeysResp, err := client.ResourceManager.StorageAccounts.ListKeys(ctx, ad.StorageAccountId, opts) if err != nil { return nil, fmt.Errorf("listing Keys for %s: %+v", ad.StorageAccountId, err) diff --git a/internal/services/storage/custompollers/data_plane_file_share_availability_poller.go b/internal/services/storage/custompollers/data_plane_file_share_availability_poller.go index 1b00b53a9dda..c50f1709b678 100644 --- a/internal/services/storage/custompollers/data_plane_file_share_availability_poller.go +++ b/internal/services/storage/custompollers/data_plane_file_share_availability_poller.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices" "github.com/hashicorp/go-azure-sdk/sdk/client" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" storageClients "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" @@ -18,13 +18,13 @@ import ( var _ pollers.PollerType = &DataPlaneFileShareAvailabilityPoller{} type DataPlaneFileShareAvailabilityPoller struct { - client *fileservice.FileServiceClient + client *fileservices.FileServicesClient storageAccountId commonids.StorageAccountId } func NewDataPlaneFileShareAvailabilityPoller(client *storageClients.Client, account *storageClients.AccountDetails) (*DataPlaneFileShareAvailabilityPoller, error) { return &DataPlaneFileShareAvailabilityPoller{ - client: client.ResourceManager.FileService, + client: client.ResourceManager.FileServices, storageAccountId: account.StorageAccountId, }, nil } diff --git a/internal/services/storage/custompollers/storage_share_create_poller.go b/internal/services/storage/custompollers/storage_share_create_poller.go index c5c9f22a689b..6b75e0dd164f 100644 --- a/internal/services/storage/custompollers/storage_share_create_poller.go +++ b/internal/services/storage/custompollers/storage_share_create_poller.go @@ -8,7 +8,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" ) diff --git a/internal/services/storage/helpers.go b/internal/services/storage/helpers.go index 8ecf3f9769ea..8d4868c08120 100644 --- a/internal/services/storage/helpers.go +++ b/internal/services/storage/helpers.go @@ -6,7 +6,7 @@ package storage import ( "sort" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" ) func sortedKeysFromSlice(input map[storageaccounts.Kind]struct{}) []string { diff --git a/internal/services/storage/parse/object_replication.go b/internal/services/storage/parse/object_replication.go index 68dfa318a664..084d801803b1 100644 --- a/internal/services/storage/parse/object_replication.go +++ b/internal/services/storage/parse/object_replication.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup" ) // This is manual for concat two ids are not supported in auto-generation @@ -16,11 +16,11 @@ import ( var _ resourceids.Id = ObjectReplicationId{} type ObjectReplicationId struct { - Src objectreplicationpolicies.ObjectReplicationPolicyId - Dst objectreplicationpolicies.ObjectReplicationPolicyId + Src objectreplicationpolicyoperationgroup.ObjectReplicationPolicyId + Dst objectreplicationpolicyoperationgroup.ObjectReplicationPolicyId } -func NewObjectReplicationID(srcId, dstId objectreplicationpolicies.ObjectReplicationPolicyId) ObjectReplicationId { +func NewObjectReplicationID(srcId, dstId objectreplicationpolicyoperationgroup.ObjectReplicationPolicyId) ObjectReplicationId { return ObjectReplicationId{ Src: srcId, Dst: dstId, @@ -46,12 +46,12 @@ func ObjectReplicationID(input string) (*ObjectReplicationId, error) { if len(ids) != 2 { return nil, fmt.Errorf("storage Object Replication Id is composed as format `sourceId;destinationId`") } - srcId, err := objectreplicationpolicies.ParseObjectReplicationPolicyID(ids[0]) + srcId, err := objectreplicationpolicyoperationgroup.ParseObjectReplicationPolicyID(ids[0]) if err != nil { return nil, err } - dstId, err := objectreplicationpolicies.ParseObjectReplicationPolicyID(strings.TrimSuffix(ids[1], ";")) + dstId, err := objectreplicationpolicyoperationgroup.ParseObjectReplicationPolicyID(strings.TrimSuffix(ids[1], ";")) if err != nil { return nil, err } diff --git a/internal/services/storage/parse/object_replication_test.go b/internal/services/storage/parse/object_replication_test.go index d7211d12ddf4..1f577c2fde40 100644 --- a/internal/services/storage/parse/object_replication_test.go +++ b/internal/services/storage/parse/object_replication_test.go @@ -8,13 +8,13 @@ package parse import ( "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup" ) func TestObjectReplicationIDFormatter(t *testing.T) { actual := NewObjectReplicationID( - objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "resGroup1", "storageAccount1", "objectReplicationPolicy1"), - objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "resGroup2", "storageAccount2", "objectReplicationPolicy2"), + objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "resGroup1", "storageAccount1", "objectReplicationPolicy1"), + objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "resGroup2", "storageAccount2", "objectReplicationPolicy2"), ).ID() expected := "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Storage/storageAccounts/storageAccount1/objectReplicationPolicies/objectReplicationPolicy1;/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup2/providers/Microsoft.Storage/storageAccounts/storageAccount2/objectReplicationPolicies/objectReplicationPolicy2" if actual != expected { @@ -134,13 +134,13 @@ func TestObjectReplicationID(t *testing.T) { // valid Input: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Storage/storageAccounts/storageAccount1/objectReplicationPolicies/objectReplicationPolicy1;/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup2/providers/Microsoft.Storage/storageAccounts/storageAccount2/objectReplicationPolicies/objectReplicationPolicy2", Expected: &ObjectReplicationId{ - Src: objectreplicationpolicies.ObjectReplicationPolicyId{ + Src: objectreplicationpolicyoperationgroup.ObjectReplicationPolicyId{ SubscriptionId: "12345678-1234-9876-4563-123456789012", ResourceGroupName: "resGroup1", StorageAccountName: "storageAccount1", ObjectReplicationPolicyId: "objectReplicationPolicy1", }, - Dst: objectreplicationpolicies.ObjectReplicationPolicyId{ + Dst: objectreplicationpolicyoperationgroup.ObjectReplicationPolicyId{ SubscriptionId: "12345678-1234-9876-4563-123456789012", ResourceGroupName: "resGroup2", StorageAccountName: "storageAccount2", diff --git a/internal/services/storage/storage_account_customer_managed_key_resource.go b/internal/services/storage/storage_account_customer_managed_key_resource.go index 652a53434298..17e6ed37baf6 100644 --- a/internal/services/storage/storage_account_customer_managed_key_resource.go +++ b/internal/services/storage/storage_account_customer_managed_key_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/keyvault" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/storage/storage_account_customer_managed_key_resource_list.go b/internal/services/storage/storage_account_customer_managed_key_resource_list.go index 9e906501de5a..c79c55dbffee 100644 --- a/internal/services/storage/storage_account_customer_managed_key_resource_list.go +++ b/internal/services/storage/storage_account_customer_managed_key_resource_list.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-plugin-framework/list" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/internal/services/storage/storage_account_customer_managed_key_resource_test.go b/internal/services/storage/storage_account_customer_managed_key_resource_test.go index 17f292e6db72..70b6b1d44ee2 100644 --- a/internal/services/storage/storage_account_customer_managed_key_resource_test.go +++ b/internal/services/storage/storage_account_customer_managed_key_resource_test.go @@ -13,7 +13,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/go-uuid" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/storage/storage_account_data_plane_helpers.go b/internal/services/storage/storage_account_data_plane_helpers.go index 8943efadbc14..cec95bbe46d9 100644 --- a/internal/services/storage/storage_account_data_plane_helpers.go +++ b/internal/services/storage/storage_account_data_plane_helpers.go @@ -12,7 +12,7 @@ import ( "slices" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/custompollers" diff --git a/internal/services/storage/storage_account_data_source.go b/internal/services/storage/storage_account_data_source.go index 047a253e8c7b..c0c8534e3353 100644 --- a/internal/services/storage/storage_account_data_source.go +++ b/internal/services/storage/storage_account_data_source.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -568,7 +568,7 @@ func dataSourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) e d.SetId(id.ID()) listKeysOpts := storageaccounts.DefaultListKeysOperationOptions() - listKeysOpts.Expand = pointer.To(storageaccounts.ListKeyExpandKerb) + listKeysOpts.Expand = pointer.To(storageaccounts.ExpandKerb) keys, err := client.ListKeys(ctx, id, listKeysOpts) if err != nil { hasWriteLock := response.WasConflict(keys.HttpResponse) diff --git a/internal/services/storage/storage_account_helpers_endpoints_credentials.go b/internal/services/storage/storage_account_helpers_endpoints_credentials.go index bfd3833c14ec..262768cfbc8a 100644 --- a/internal/services/storage/storage_account_helpers_endpoints_credentials.go +++ b/internal/services/storage/storage_account_helpers_endpoints_credentials.go @@ -8,7 +8,7 @@ import ( "net/url" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/storage/storage_account_helpers_network.go b/internal/services/storage/storage_account_helpers_network.go index 61cf559ec4f0..f96b502c918f 100644 --- a/internal/services/storage/storage_account_helpers_network.go +++ b/internal/services/storage/storage_account_helpers_network.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/storage/storage_account_local_user_resource.go b/internal/services/storage/storage_account_local_user_resource.go index 0e77527bb174..eac18d9f740d 100644 --- a/internal/services/storage/storage_account_local_user_resource.go +++ b/internal/services/storage/storage_account_local_user_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" computevalidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" @@ -196,11 +196,11 @@ func (r LocalUserResource) ModelObject() interface{} { } func (r LocalUserResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return localusers.ValidateLocalUserID + return localuseroperationgroup.ValidateLocalUserID } func (r LocalUserResource) Identity() resourceids.ResourceId { - return &localusers.LocalUserId{} + return &localuseroperationgroup.LocalUserId{} } func (r LocalUserResource) CustomizeDiff() sdk.ResourceFunc { @@ -222,7 +222,7 @@ func (r LocalUserResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Storage.ResourceManager.LocalUsers + client := metadata.Client.Storage.ResourceManager.LocalUserOperationGroup var plan LocalUserModel if err := metadata.Decode(&plan); err != nil { @@ -243,8 +243,8 @@ func (r LocalUserResource) Create() sdk.ResourceFunc { return err } - id := localusers.NewLocalUserID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, plan.Name) - existing, err := client.Get(ctx, id) + id := localuseroperationgroup.NewLocalUserID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, plan.Name) + existing, err := client.LocalUsersGet(ctx, id) if err != nil { if !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("checking for presence of existing %s: %+v", id, err) @@ -254,8 +254,8 @@ func (r LocalUserResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - params := localusers.LocalUser{ - Properties: &localusers.LocalUserProperties{ + params := localuseroperationgroup.LocalUser{ + Properties: &localuseroperationgroup.LocalUserProperties{ PermissionScopes: r.expandPermissionScopes(plan.PermissionScope), SshAuthorizedKeys: r.expandSSHAuthorizedKeys(plan.SshAuthorizedKey), HasSshKey: pointer.To(plan.SshKeyEnabled), @@ -267,13 +267,13 @@ func (r LocalUserResource) Create() sdk.ResourceFunc { params.Properties.HomeDirectory = pointer.To(plan.HomeDirectory) } - if _, err = client.CreateOrUpdate(ctx, id, params); err != nil { + if _, err = client.LocalUsersCreateOrUpdate(ctx, id, params); err != nil { return fmt.Errorf("creating %s: %+v", id, err) } state := plan if plan.SshPasswordEnabled { - resp, err := client.RegeneratePassword(ctx, id) + resp, err := client.LocalUsersRegeneratePassword(ctx, id) if err != nil { return fmt.Errorf("generating password for %s: %v", id.ID(), err) } @@ -299,8 +299,8 @@ func (r LocalUserResource) Read() sdk.ResourceFunc { Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Storage.ResourceManager.LocalUsers - id, err := localusers.ParseLocalUserID(metadata.ResourceData.Id()) + client := metadata.Client.Storage.ResourceManager.LocalUserOperationGroup + id, err := localuseroperationgroup.ParseLocalUserID(metadata.ResourceData.Id()) if err != nil { return err } @@ -310,7 +310,7 @@ func (r LocalUserResource) Read() sdk.ResourceFunc { return err } - existing, err := client.Get(ctx, *id) + existing, err := client.LocalUsersGet(ctx, *id) if err != nil { if response.WasNotFound(existing.HttpResponse) { return metadata.MarkAsGone(id) @@ -358,7 +358,7 @@ func (r LocalUserResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - id, err := localusers.ParseLocalUserID(metadata.ResourceData.Id()) + id, err := localuseroperationgroup.ParseLocalUserID(metadata.ResourceData.Id()) if err != nil { return err } @@ -368,9 +368,9 @@ func (r LocalUserResource) Update() sdk.ResourceFunc { return err } - client := metadata.Client.Storage.ResourceManager.LocalUsers + client := metadata.Client.Storage.ResourceManager.LocalUserOperationGroup - params, err := client.Get(ctx, *id) + params, err := client.LocalUsersGet(ctx, *id) if err != nil { return fmt.Errorf("retrieving %s: %+v", id, err) } @@ -414,7 +414,7 @@ func (r LocalUserResource) Update() sdk.ResourceFunc { // Also, after `ssh_key_enabled` being set to back true, but without calling the RegeneratePassword(), then if you // call GET on the local user again, it returns the `ssh_key_enabled` as false, which indicates that we shall always // generate a password when enable the `ssh_key_enabled`. - resp, err := client.RegeneratePassword(ctx, *id) + resp, err := client.LocalUsersRegeneratePassword(ctx, *id) if err != nil { return fmt.Errorf("generating password for %s: %v", id.ID(), err) } @@ -432,7 +432,7 @@ func (r LocalUserResource) Update() sdk.ResourceFunc { } } - if _, err := client.CreateOrUpdate(ctx, *id, localusers.LocalUser{Properties: props}); err != nil { + if _, err := client.LocalUsersCreateOrUpdate(ctx, *id, localuseroperationgroup.LocalUser{Properties: props}); err != nil { return fmt.Errorf("updating %s: %+v", id, err) } return nil @@ -444,14 +444,14 @@ func (r LocalUserResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Storage.ResourceManager.LocalUsers + client := metadata.Client.Storage.ResourceManager.LocalUserOperationGroup - id, err := localusers.ParseLocalUserID(metadata.ResourceData.Id()) + id, err := localuseroperationgroup.ParseLocalUserID(metadata.ResourceData.Id()) if err != nil { return err } - if _, err := client.Delete(ctx, *id); err != nil { + if _, err := client.LocalUsersDelete(ctx, *id); err != nil { return fmt.Errorf("deleting %s: %+v", id, err) } @@ -460,12 +460,12 @@ func (r LocalUserResource) Delete() sdk.ResourceFunc { } } -func (r LocalUserResource) expandPermissionScopes(input []PermissionScopeModel) *[]localusers.PermissionScope { +func (r LocalUserResource) expandPermissionScopes(input []PermissionScopeModel) *[]localuseroperationgroup.PermissionScope { if len(input) == 0 { return nil } - output := make([]localusers.PermissionScope, 0, len(input)) + output := make([]localuseroperationgroup.PermissionScope, 0, len(input)) for _, v := range input { // The length constraint is guaranteed by schema permissions := v.Permissions[0] @@ -486,7 +486,7 @@ func (r LocalUserResource) expandPermissionScopes(input []PermissionScopeModel) permissionStr += "c" } - output = append(output, localusers.PermissionScope{ + output = append(output, localuseroperationgroup.PermissionScope{ Permissions: permissionStr, Service: v.Service, ResourceName: v.ResourceName, @@ -496,7 +496,7 @@ func (r LocalUserResource) expandPermissionScopes(input []PermissionScopeModel) return &output } -func (r LocalUserResource) flattenPermissionScopes(input *[]localusers.PermissionScope) []PermissionScopeModel { +func (r LocalUserResource) flattenPermissionScopes(input *[]localuseroperationgroup.PermissionScope) []PermissionScopeModel { if input == nil { return nil } @@ -532,14 +532,14 @@ func (r LocalUserResource) flattenPermissionScopes(input *[]localusers.Permissio return output } -func (r LocalUserResource) expandSSHAuthorizedKeys(input []SshAuthorizedKeyModel) *[]localusers.SshPublicKey { +func (r LocalUserResource) expandSSHAuthorizedKeys(input []SshAuthorizedKeyModel) *[]localuseroperationgroup.SshPublicKey { if len(input) == 0 { return nil } - output := make([]localusers.SshPublicKey, 0, len(input)) + output := make([]localuseroperationgroup.SshPublicKey, 0, len(input)) for _, v := range input { - output = append(output, localusers.SshPublicKey{ + output = append(output, localuseroperationgroup.SshPublicKey{ Description: pointer.To(v.Description), Key: pointer.To(v.Key), }) diff --git a/internal/services/storage/storage_account_local_user_resource_test.go b/internal/services/storage/storage_account_local_user_resource_test.go index 8721ba475c76..64dc93298bdf 100644 --- a/internal/services/storage/storage_account_local_user_resource_test.go +++ b/internal/services/storage/storage_account_local_user_resource_test.go @@ -10,7 +10,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/storage/2023-05-01/localusers" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup" "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" @@ -184,14 +184,14 @@ func TestAccLocalUser_requiresImport(t *testing.T) { } func (r StorageAccountLocalUserResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - client := clients.Storage.ResourceManager.LocalUsers + client := clients.Storage.ResourceManager.LocalUserOperationGroup - id, err := localusers.ParseLocalUserID(state.ID) + id, err := localuseroperationgroup.ParseLocalUserID(state.ID) if err != nil { return nil, err } - if resp, err := client.Get(ctx, *id); err != nil { + if resp, err := client.LocalUsersGet(ctx, *id); err != nil { if response.WasNotFound(resp.HttpResponse) { return pointer.To(false), nil } diff --git a/internal/services/storage/storage_account_network_rules_resource.go b/internal/services/storage/storage_account_network_rules_resource.go index 9a33324945a5..2103943e0774 100644 --- a/internal/services/storage/storage_account_network_rules_resource.go +++ b/internal/services/storage/storage_account_network_rules_resource.go @@ -11,7 +11,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "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" diff --git a/internal/services/storage/storage_account_network_rules_resource_test.go b/internal/services/storage/storage_account_network_rules_resource_test.go index fdc5900d7a6f..aeadb22fba43 100644 --- a/internal/services/storage/storage_account_network_rules_resource_test.go +++ b/internal/services/storage/storage_account_network_rules_resource_test.go @@ -11,7 +11,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "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" diff --git a/internal/services/storage/storage_account_queue_properties_resource.go b/internal/services/storage/storage_account_queue_properties_resource.go index b37ffb6a69b9..c59d37abb7fc 100644 --- a/internal/services/storage/storage_account_queue_properties_resource.go +++ b/internal/services/storage/storage_account_queue_properties_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/storage/storage_account_resource.go b/internal/services/storage/storage_account_resource.go index 56c9120a1b7d..2a644d9b4bc6 100644 --- a/internal/services/storage/storage_account_resource.go +++ b/internal/services/storage/storage_account_resource.go @@ -21,9 +21,9 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/keyvault" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "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" @@ -1676,7 +1676,7 @@ func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) e } } - if _, err = storageClient.BlobService.SetServiceProperties(ctx, id, *blobProperties); err != nil { + if _, err = storageClient.BlobServices.SetServiceProperties(ctx, id, *blobProperties); err != nil { return fmt.Errorf("updating `blob_properties`: %+v", err) } } @@ -1701,7 +1701,7 @@ func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) e } } - if _, err = storageClient.FileService.SetServiceProperties(ctx, id, sharePayload); err != nil { + if _, err = storageClient.FileServices.SetServiceProperties(ctx, id, sharePayload); err != nil { return fmt.Errorf("updating `share_properties`: %+v", err) } } @@ -1974,12 +1974,12 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e // Issue : https://github.com/Azure/azure-rest-api-specs/issues/11237 if v := d.Get("blob_properties.0.restore_policy"); d.HasChange("blob_properties.0.restore_policy") && len(v.([]interface{})) == 0 { log.Print("[DEBUG] Disabling RestorePolicy prior to changing DeleteRetentionPolicy") - blobPayload := blobservice.BlobServiceProperties{ - Properties: &blobservice.BlobServicePropertiesProperties{ + blobPayload := blobservices.BlobServiceProperties{ + Properties: &blobservices.BlobServicePropertiesProperties{ RestorePolicy: expandAccountBlobPropertiesRestorePolicy(v.([]interface{})), }, } - if _, err := storageClient.BlobService.SetServiceProperties(ctx, *id, blobPayload); err != nil { + if _, err := storageClient.BlobServices.SetServiceProperties(ctx, *id, blobPayload); err != nil { return fmt.Errorf("updating Azure Storage Account blob restore policy %q: %+v", id.StorageAccountName, err) } } @@ -1993,7 +1993,7 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e } } - if _, err = storageClient.BlobService.SetServiceProperties(ctx, *id, *blobProperties); err != nil { + if _, err = storageClient.BlobServices.SetServiceProperties(ctx, *id, *blobProperties); err != nil { return fmt.Errorf("updating `blob_properties` for %s: %+v", *id, err) } } @@ -2072,7 +2072,7 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e sharePayload.Properties.ProtocolSettings.Smb.Multichannel = nil } - if _, err = storageClient.FileService.SetServiceProperties(ctx, *id, sharePayload); err != nil { + if _, err = storageClient.FileServices.SetServiceProperties(ctx, *id, sharePayload); err != nil { return fmt.Errorf("updating File Share Properties for %s: %+v", *id, err) } } @@ -2132,7 +2132,7 @@ func resourceStorageAccountFlatten(ctx context.Context, d *pluginsdk.ResourceDat d.Set("resource_group_name", id.ResourceGroupName) listKeysOpts := storageaccounts.DefaultListKeysOperationOptions() - listKeysOpts.Expand = pointer.To(storageaccounts.ListKeyExpandKerb) + listKeysOpts.Expand = pointer.To(storageaccounts.ExpandKerb) supportLevel := storageAccountServiceSupportLevel{ supportBlob: false, @@ -2326,7 +2326,7 @@ func resourceStorageAccountFlatten(ctx context.Context, d *pluginsdk.ResourceDat blobProperties := make([]interface{}, 0) if supportLevel.supportBlob { - blobProps, err := storageClient.BlobService.GetServiceProperties(ctx, id) + blobProps, err := storageClient.BlobServices.GetServiceProperties(ctx, id) if err != nil { return fmt.Errorf("reading blob properties for %s: %+v", id, err) } @@ -2339,7 +2339,7 @@ func resourceStorageAccountFlatten(ctx context.Context, d *pluginsdk.ResourceDat shareProperties := make([]interface{}, 0) if supportLevel.supportShare { - shareProps, err := storageClient.FileService.GetServiceProperties(ctx, id) + shareProps, err := storageClient.FileServices.GetServiceProperties(ctx, id) if err != nil { return fmt.Errorf("retrieving share properties for %s: %+v", id, err) } @@ -2678,8 +2678,8 @@ func expandAccountActiveDirectoryProperties(input []interface{}) *storageaccount m := input[0].(map[string]interface{}) output := &storageaccounts.ActiveDirectoryProperties{ - DomainGuid: m["domain_guid"].(string), - DomainName: m["domain_name"].(string), + DomainGuid: pointer.To(m["domain_guid"].(string)), + DomainName: pointer.To(m["domain_name"].(string)), } if v := m["storage_sid"]; v != "" { output.AzureStorageSid = pointer.To(v.(string)) @@ -2797,12 +2797,12 @@ func flattenAccountRoutingPreference(input *storageaccounts.RoutingPreference) [ return output } -func expandAccountBlobServiceProperties(kind storageaccounts.Kind, input []interface{}) (*blobservice.BlobServiceProperties, error) { - props := blobservice.BlobServicePropertiesProperties{ - Cors: &blobservice.CorsRules{ - CorsRules: &[]blobservice.CorsRule{}, +func expandAccountBlobServiceProperties(kind storageaccounts.Kind, input []interface{}) (*blobservices.BlobServiceProperties, error) { + props := blobservices.BlobServicePropertiesProperties{ + Cors: &blobservices.CorsRules{ + CorsRules: &[]blobservices.CorsRule{}, }, - DeleteRetentionPolicy: &blobservice.DeleteRetentionPolicy{ + DeleteRetentionPolicy: &blobservices.DeleteRetentionPolicy{ Enabled: pointer.To(false), }, } @@ -2813,10 +2813,10 @@ func expandAccountBlobServiceProperties(kind storageaccounts.Kind, input []inter // - Versioning: See https://learn.microsoft.com/en-us/azure/storage/blobs/versioning-overview#how-blob-versioning-works // - Restore Policy: See https://learn.microsoft.com/en-us/azure/storage/blobs/point-in-time-restore-overview#prerequisites-for-point-in-time-restore if kind != storageaccounts.KindStorage { - props.LastAccessTimeTrackingPolicy = &blobservice.LastAccessTimeTrackingPolicy{ + props.LastAccessTimeTrackingPolicy = &blobservices.LastAccessTimeTrackingPolicy{ Enable: false, } - props.ChangeFeed = &blobservice.ChangeFeed{ + props.ChangeFeed = &blobservices.ChangeFeed{ Enabled: pointer.To(false), } props.IsVersioningEnabled = pointer.To(false) @@ -2851,10 +2851,10 @@ func expandAccountBlobServiceProperties(kind storageaccounts.Kind, input []inter restorePolicyRaw := v["restore_policy"].([]interface{}) versioningEnabled := v["versioning_enabled"].(bool) if kind != storageaccounts.KindStorage { - props.LastAccessTimeTrackingPolicy = &blobservice.LastAccessTimeTrackingPolicy{ + props.LastAccessTimeTrackingPolicy = &blobservices.LastAccessTimeTrackingPolicy{ Enable: lastAccessTimeEnabled, } - props.ChangeFeed = &blobservice.ChangeFeed{ + props.ChangeFeed = &blobservices.ChangeFeed{ Enabled: pointer.To(changeFeedEnabled), } if changeFeedRetentionInDays != 0 { @@ -2892,12 +2892,12 @@ func expandAccountBlobServiceProperties(kind storageaccounts.Kind, input []inter } } - return &blobservice.BlobServiceProperties{ + return &blobservices.BlobServiceProperties{ Properties: &props, }, nil } -func flattenAccountBlobServiceProperties(input *blobservice.BlobServiceProperties) []interface{} { +func flattenAccountBlobServiceProperties(input *blobservices.BlobServiceProperties) []interface{} { if input == nil || input.Properties == nil { return []interface{}{} } @@ -2961,8 +2961,8 @@ func flattenAccountBlobServiceProperties(input *blobservice.BlobServicePropertie } } -func expandAccountBlobDeleteRetentionPolicy(input []interface{}) *blobservice.DeleteRetentionPolicy { - result := blobservice.DeleteRetentionPolicy{ +func expandAccountBlobDeleteRetentionPolicy(input []interface{}) *blobservices.DeleteRetentionPolicy { + result := blobservices.DeleteRetentionPolicy{ Enabled: pointer.To(false), } if len(input) == 0 || input[0] == nil { @@ -2971,14 +2971,14 @@ func expandAccountBlobDeleteRetentionPolicy(input []interface{}) *blobservice.De policy := input[0].(map[string]interface{}) - return &blobservice.DeleteRetentionPolicy{ + return &blobservices.DeleteRetentionPolicy{ Enabled: pointer.To(true), AllowPermanentDelete: pointer.To(policy["permanent_delete_enabled"].(bool)), Days: pointer.To(int64(policy["days"].(int))), } } -func flattenAccountBlobDeleteRetentionPolicy(input *blobservice.DeleteRetentionPolicy) []interface{} { +func flattenAccountBlobDeleteRetentionPolicy(input *blobservices.DeleteRetentionPolicy) []interface{} { deleteRetentionPolicy := make([]interface{}, 0) if input == nil { @@ -3005,8 +3005,8 @@ func flattenAccountBlobDeleteRetentionPolicy(input *blobservice.DeleteRetentionP return deleteRetentionPolicy } -func expandAccountBlobContainerDeleteRetentionPolicy(input []interface{}) *blobservice.DeleteRetentionPolicy { - result := blobservice.DeleteRetentionPolicy{ +func expandAccountBlobContainerDeleteRetentionPolicy(input []interface{}) *blobservices.DeleteRetentionPolicy { + result := blobservices.DeleteRetentionPolicy{ Enabled: pointer.To(false), } if len(input) == 0 || input[0] == nil { @@ -3015,13 +3015,13 @@ func expandAccountBlobContainerDeleteRetentionPolicy(input []interface{}) *blobs policy := input[0].(map[string]interface{}) - return &blobservice.DeleteRetentionPolicy{ + return &blobservices.DeleteRetentionPolicy{ Enabled: pointer.To(true), Days: pointer.To(int64(policy["days"].(int))), } } -func flattenAccountBlobContainerDeleteRetentionPolicy(input *blobservice.DeleteRetentionPolicy) []interface{} { +func flattenAccountBlobContainerDeleteRetentionPolicy(input *blobservices.DeleteRetentionPolicy) []interface{} { deleteRetentionPolicy := make([]interface{}, 0) if input == nil { @@ -3042,8 +3042,8 @@ func flattenAccountBlobContainerDeleteRetentionPolicy(input *blobservice.DeleteR return deleteRetentionPolicy } -func expandAccountBlobPropertiesRestorePolicy(input []interface{}) *blobservice.RestorePolicyProperties { - result := blobservice.RestorePolicyProperties{ +func expandAccountBlobPropertiesRestorePolicy(input []interface{}) *blobservices.RestorePolicyProperties { + result := blobservices.RestorePolicyProperties{ Enabled: false, } if len(input) == 0 || input[0] == nil { @@ -3052,13 +3052,13 @@ func expandAccountBlobPropertiesRestorePolicy(input []interface{}) *blobservice. policy := input[0].(map[string]interface{}) - return &blobservice.RestorePolicyProperties{ + return &blobservices.RestorePolicyProperties{ Enabled: true, Days: pointer.To(int64(policy["days"].(int))), } } -func flattenAccountBlobPropertiesRestorePolicy(input *blobservice.RestorePolicyProperties) []interface{} { +func flattenAccountBlobPropertiesRestorePolicy(input *blobservices.RestorePolicyProperties) []interface{} { restorePolicy := make([]interface{}, 0) if input == nil { @@ -3079,19 +3079,19 @@ func flattenAccountBlobPropertiesRestorePolicy(input *blobservice.RestorePolicyP return restorePolicy } -func expandAccountBlobPropertiesCors(input []interface{}) *blobservice.CorsRules { - blobCorsRules := blobservice.CorsRules{} +func expandAccountBlobPropertiesCors(input []interface{}) *blobservices.CorsRules { + blobCorsRules := blobservices.CorsRules{} if len(input) > 0 { - corsRules := make([]blobservice.CorsRule, 0) + corsRules := make([]blobservices.CorsRule, 0) for _, raw := range input { item := raw.(map[string]interface{}) - allowedMethods := make([]blobservice.AllowedMethods, 0) + allowedMethods := make([]blobservices.AllowedMethods, 0) for _, val := range *utils.ExpandStringSlice(item["allowed_methods"].([]interface{})) { - allowedMethods = append(allowedMethods, blobservice.AllowedMethods(val)) + allowedMethods = append(allowedMethods, blobservices.AllowedMethods(val)) } - corsRules = append(corsRules, blobservice.CorsRule{ + corsRules = append(corsRules, blobservices.CorsRule{ AllowedHeaders: *utils.ExpandStringSlice(item["allowed_headers"].([]interface{})), AllowedOrigins: *utils.ExpandStringSlice(item["allowed_origins"].([]interface{})), AllowedMethods: allowedMethods, @@ -3104,7 +3104,7 @@ func expandAccountBlobPropertiesCors(input []interface{}) *blobservice.CorsRules return &blobCorsRules } -func flattenAccountBlobPropertiesCorsRule(input *blobservice.CorsRules) []interface{} { +func flattenAccountBlobPropertiesCorsRule(input *blobservices.CorsRules) []interface{} { corsRules := make([]interface{}, 0) if input == nil || input.CorsRules == nil { @@ -3124,13 +3124,13 @@ func flattenAccountBlobPropertiesCorsRule(input *blobservice.CorsRules) []interf return corsRules } -func expandAccountShareProperties(input []interface{}) fileservice.FileServiceProperties { - props := fileservice.FileServiceProperties{ - Properties: &fileservice.FileServicePropertiesProperties{ - Cors: &fileservice.CorsRules{ - CorsRules: &[]fileservice.CorsRule{}, +func expandAccountShareProperties(input []interface{}) fileservices.FileServiceProperties { + props := fileservices.FileServiceProperties{ + Properties: &fileservices.FileServicePropertiesProperties{ + Cors: &fileservices.CorsRules{ + CorsRules: &[]fileservices.CorsRule{}, }, - ShareDeleteRetentionPolicy: &fileservice.DeleteRetentionPolicy{ + ShareDeleteRetentionPolicy: &fileservices.DeleteRetentionPolicy{ Enabled: pointer.To(false), }, }, @@ -3143,7 +3143,7 @@ func expandAccountShareProperties(input []interface{}) fileservice.FileServicePr props.Properties.Cors = expandAccountSharePropertiesCorsRule(v["cors_rule"].([]interface{})) - props.Properties.ProtocolSettings = &fileservice.ProtocolSettings{ + props.Properties.ProtocolSettings = &fileservices.ProtocolSettings{ Smb: expandAccountSharePropertiesSMB(v["smb"].([]interface{})), } } @@ -3151,7 +3151,7 @@ func expandAccountShareProperties(input []interface{}) fileservice.FileServicePr return props } -func flattenAccountShareProperties(input *fileservice.FileServiceProperties) []interface{} { +func flattenAccountShareProperties(input *fileservices.FileServiceProperties) []interface{} { output := make([]interface{}, 0) if input != nil { @@ -3167,19 +3167,19 @@ func flattenAccountShareProperties(input *fileservice.FileServiceProperties) []i return output } -func expandAccountSharePropertiesCorsRule(input []interface{}) *fileservice.CorsRules { - blobCorsRules := fileservice.CorsRules{} +func expandAccountSharePropertiesCorsRule(input []interface{}) *fileservices.CorsRules { + blobCorsRules := fileservices.CorsRules{} if len(input) > 0 { - corsRules := make([]fileservice.CorsRule, 0) + corsRules := make([]fileservices.CorsRule, 0) for _, raw := range input { item := raw.(map[string]interface{}) - allowedMethods := make([]fileservice.AllowedMethods, 0) + allowedMethods := make([]fileservices.AllowedMethods, 0) for _, val := range *utils.ExpandStringSlice(item["allowed_methods"].([]interface{})) { - allowedMethods = append(allowedMethods, fileservice.AllowedMethods(val)) + allowedMethods = append(allowedMethods, fileservices.AllowedMethods(val)) } - corsRules = append(corsRules, fileservice.CorsRule{ + corsRules = append(corsRules, fileservices.CorsRule{ AllowedHeaders: *utils.ExpandStringSlice(item["allowed_headers"].([]interface{})), AllowedMethods: allowedMethods, AllowedOrigins: *utils.ExpandStringSlice(item["allowed_origins"].([]interface{})), @@ -3192,7 +3192,7 @@ func expandAccountSharePropertiesCorsRule(input []interface{}) *fileservice.Cors return &blobCorsRules } -func flattenAccountSharePropertiesCorsRule(input *fileservice.CorsRules) []interface{} { +func flattenAccountSharePropertiesCorsRule(input *fileservices.CorsRules) []interface{} { corsRules := make([]interface{}, 0) if input == nil || input.CorsRules == nil { @@ -3212,8 +3212,8 @@ func flattenAccountSharePropertiesCorsRule(input *fileservice.CorsRules) []inter return corsRules } -func expandAccountShareDeleteRetentionPolicy(input []interface{}) *fileservice.DeleteRetentionPolicy { - result := fileservice.DeleteRetentionPolicy{ +func expandAccountShareDeleteRetentionPolicy(input []interface{}) *fileservices.DeleteRetentionPolicy { + result := fileservices.DeleteRetentionPolicy{ Enabled: pointer.To(false), } if len(input) == 0 || input[0] == nil { @@ -3222,13 +3222,13 @@ func expandAccountShareDeleteRetentionPolicy(input []interface{}) *fileservice.D policy := input[0].(map[string]interface{}) - return &fileservice.DeleteRetentionPolicy{ + return &fileservices.DeleteRetentionPolicy{ Enabled: pointer.To(true), Days: pointer.To(int64(policy["days"].(int))), } } -func flattenAccountShareDeleteRetentionPolicy(input *fileservice.DeleteRetentionPolicy) []interface{} { +func flattenAccountShareDeleteRetentionPolicy(input *fileservices.DeleteRetentionPolicy) []interface{} { output := make([]interface{}, 0) if input != nil { @@ -3247,9 +3247,9 @@ func flattenAccountShareDeleteRetentionPolicy(input *fileservice.DeleteRetention return output } -func expandAccountSharePropertiesSMB(input []interface{}) *fileservice.SmbSetting { +func expandAccountSharePropertiesSMB(input []interface{}) *fileservices.SmbSetting { if len(input) == 0 || input[0] == nil { - return &fileservice.SmbSetting{ + return &fileservices.SmbSetting{ AuthenticationMethods: pointer.To(""), ChannelEncryption: pointer.To(""), KerberosTicketEncryption: pointer.To(""), @@ -3260,18 +3260,18 @@ func expandAccountSharePropertiesSMB(input []interface{}) *fileservice.SmbSettin v := input[0].(map[string]interface{}) - return &fileservice.SmbSetting{ + return &fileservices.SmbSetting{ AuthenticationMethods: utils.ExpandStringSliceWithDelimiter(v["authentication_types"].(*pluginsdk.Set).List(), ";"), ChannelEncryption: utils.ExpandStringSliceWithDelimiter(v["channel_encryption_type"].(*pluginsdk.Set).List(), ";"), KerberosTicketEncryption: utils.ExpandStringSliceWithDelimiter(v["kerberos_ticket_encryption_type"].(*pluginsdk.Set).List(), ";"), Versions: utils.ExpandStringSliceWithDelimiter(v["versions"].(*pluginsdk.Set).List(), ";"), - Multichannel: &fileservice.Multichannel{ + Multichannel: &fileservices.Multichannel{ Enabled: pointer.To(v["multichannel_enabled"].(bool)), }, } } -func flattenAccountSharePropertiesSMB(input *fileservice.ProtocolSettings) []interface{} { +func flattenAccountSharePropertiesSMB(input *fileservices.ProtocolSettings) []interface{} { if input == nil || input.Smb == nil { return []interface{}{} } diff --git a/internal/services/storage/storage_account_resource_list.go b/internal/services/storage/storage_account_resource_list.go index 303848150a4e..190bc02fd145 100644 --- a/internal/services/storage/storage_account_resource_list.go +++ b/internal/services/storage/storage_account_resource_list.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-plugin-framework/list" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/internal/services/storage/storage_account_resource_test.go b/internal/services/storage/storage_account_resource_test.go index 5a74af14b509..3674789af93a 100644 --- a/internal/services/storage/storage_account_resource_test.go +++ b/internal/services/storage/storage_account_resource_test.go @@ -14,7 +14,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" diff --git a/internal/services/storage/storage_account_static_website_resource.go b/internal/services/storage/storage_account_static_website_resource.go index cee85fba0c81..d590bbd4d813 100644 --- a/internal/services/storage/storage_account_static_website_resource.go +++ b/internal/services/storage/storage_account_static_website_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/storage/storage_blob_inventory_policy_resource.go b/internal/services/storage/storage_blob_inventory_policy_resource.go index 611e528d0aa1..a19f6d65429f 100644 --- a/internal/services/storage/storage_blob_inventory_policy_resource.go +++ b/internal/services/storage/storage_blob_inventory_policy_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/storage/storage_container_immutability_policy_resource.go b/internal/services/storage/storage_container_immutability_policy_resource.go index aa6eb952dbff..6ead5acb02cf 100644 --- a/internal/services/storage/storage_container_immutability_policy_resource.go +++ b/internal/services/storage/storage_container_immutability_policy_resource.go @@ -12,7 +12,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" @@ -127,7 +127,7 @@ func (r StorageContainerImmutabilityPolicyResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 10 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Storage.ResourceManager.BlobContainers + client := metadata.Client.Storage.ResourceManager.ImmutabilityPolicies var model ContainerImmutabilityPolicyModel if err := metadata.Decode(&model); err != nil { @@ -141,7 +141,7 @@ func (r StorageContainerImmutabilityPolicyResource) Create() sdk.ResourceFunc { id := parse.NewStorageContainerImmutabilityPolicyID(containerId.SubscriptionId, containerId.ResourceGroupName, containerId.StorageAccountName, "default", containerId.ContainerName, "default") - existing, err := client.GetImmutabilityPolicy(ctx, *containerId, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) + existing, err := client.BlobContainersGetImmutabilityPolicy(ctx, *containerId, immutabilitypolicies.DefaultBlobContainersGetImmutabilityPolicyOperationOptions()) if err != nil { if !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("checking for presence of existing %s: %+v", id, err) @@ -151,15 +151,15 @@ func (r StorageContainerImmutabilityPolicyResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - input := blobcontainers.ImmutabilityPolicy{ - Properties: blobcontainers.ImmutabilityPolicyProperty{ + input := immutabilitypolicies.ImmutabilityPolicy{ + Properties: immutabilitypolicies.ImmutabilityPolicyProperty{ AllowProtectedAppendWrites: pointer.To(model.ProtectedAppendWritesEnabled), AllowProtectedAppendWritesAll: pointer.To(model.ProtectedAppendWritesAllEnabled), ImmutabilityPeriodSinceCreationInDays: pointer.To(model.ImmutabilityPeriodInDays), }, } - resp, err := client.CreateOrUpdateImmutabilityPolicy(ctx, *containerId, input, blobcontainers.DefaultCreateOrUpdateImmutabilityPolicyOperationOptions()) + resp, err := client.BlobContainersCreateOrUpdateImmutabilityPolicy(ctx, *containerId, input, immutabilitypolicies.DefaultBlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions()) if err != nil { return fmt.Errorf("creating %s: %+v", id, err) } @@ -173,11 +173,11 @@ func (r StorageContainerImmutabilityPolicyResource) Create() sdk.ResourceFunc { return fmt.Errorf("preparing to lock %s: model was nil", id) } - options := blobcontainers.LockImmutabilityPolicyOperationOptions{ + options := immutabilitypolicies.BlobContainersLockImmutabilityPolicyOperationOptions{ IfMatch: resp.Model.Etag, } - if _, err = client.LockImmutabilityPolicy(ctx, *containerId, options); err != nil { + if _, err = client.BlobContainersLockImmutabilityPolicy(ctx, *containerId, options); err != nil { return fmt.Errorf("locking %s: %+v", id, err) } } @@ -191,7 +191,7 @@ func (r StorageContainerImmutabilityPolicyResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 10 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Storage.ResourceManager.BlobContainers + client := metadata.Client.Storage.ResourceManager.ImmutabilityPolicies id, err := parse.StorageContainerImmutabilityPolicyID(metadata.ResourceData.Id()) if err != nil { @@ -208,7 +208,7 @@ func (r StorageContainerImmutabilityPolicyResource) Update() sdk.ResourceFunc { return err } - resp, err := client.GetImmutabilityPolicy(ctx, *containerId, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) + resp, err := client.BlobContainersGetImmutabilityPolicy(ctx, *containerId, immutabilitypolicies.DefaultBlobContainersGetImmutabilityPolicyOperationOptions()) if err != nil { if response.WasNotFound(resp.HttpResponse) || r.isDeleted(resp.Model) { return nil @@ -220,19 +220,19 @@ func (r StorageContainerImmutabilityPolicyResource) Update() sdk.ResourceFunc { return fmt.Errorf("retrieving %s: model was nil", id) } - input := blobcontainers.ImmutabilityPolicy{ - Properties: blobcontainers.ImmutabilityPolicyProperty{ + input := immutabilitypolicies.ImmutabilityPolicy{ + Properties: immutabilitypolicies.ImmutabilityPolicyProperty{ AllowProtectedAppendWrites: pointer.To(model.ProtectedAppendWritesEnabled), AllowProtectedAppendWritesAll: pointer.To(model.ProtectedAppendWritesAllEnabled), ImmutabilityPeriodSinceCreationInDays: pointer.To(model.ImmutabilityPeriodInDays), }, } - options := blobcontainers.CreateOrUpdateImmutabilityPolicyOperationOptions{ + options := immutabilitypolicies.BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions{ IfMatch: resp.Model.Etag, } - updateResp, err := client.CreateOrUpdateImmutabilityPolicy(ctx, *containerId, input, options) + updateResp, err := client.BlobContainersCreateOrUpdateImmutabilityPolicy(ctx, *containerId, input, options) if err != nil { return fmt.Errorf("updating %s: %+v", id, err) } @@ -244,11 +244,11 @@ func (r StorageContainerImmutabilityPolicyResource) Update() sdk.ResourceFunc { return fmt.Errorf("preparing to lock %s: model was nil", id) } - lockOptions := blobcontainers.LockImmutabilityPolicyOperationOptions{ + lockOptions := immutabilitypolicies.BlobContainersLockImmutabilityPolicyOperationOptions{ IfMatch: updateResp.Model.Etag, } - if _, err = client.LockImmutabilityPolicy(ctx, *containerId, lockOptions); err != nil { + if _, err = client.BlobContainersLockImmutabilityPolicy(ctx, *containerId, lockOptions); err != nil { return fmt.Errorf("locking %s: %+v", id, err) } } @@ -263,7 +263,7 @@ func (r StorageContainerImmutabilityPolicyResource) Read() sdk.ResourceFunc { Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Storage.ResourceManager.BlobContainers + client := metadata.Client.Storage.ResourceManager.ImmutabilityPolicies id, err := parse.StorageContainerImmutabilityPolicyID(metadata.ResourceData.Id()) if err != nil { @@ -272,7 +272,7 @@ func (r StorageContainerImmutabilityPolicyResource) Read() sdk.ResourceFunc { containerId := commonids.NewStorageContainerID(id.SubscriptionId, id.ResourceGroup, id.StorageAccountName, id.ContainerName) - resp, err := client.GetImmutabilityPolicy(ctx, containerId, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) + resp, err := client.BlobContainersGetImmutabilityPolicy(ctx, containerId, immutabilitypolicies.DefaultBlobContainersGetImmutabilityPolicyOperationOptions()) if err != nil { if response.WasNotFound(resp.HttpResponse) || r.isDeleted(resp.Model) { return metadata.MarkAsGone(id) @@ -296,7 +296,7 @@ func (r StorageContainerImmutabilityPolicyResource) Read() sdk.ResourceFunc { state.ImmutabilityPeriodInDays = *props.ImmutabilityPeriodSinceCreationInDays } if props.State != nil { - state.Locked = *props.State == blobcontainers.ImmutabilityPolicyStateLocked + state.Locked = *props.State == immutabilitypolicies.ImmutabilityPolicyStateLocked } } @@ -309,7 +309,7 @@ func (r StorageContainerImmutabilityPolicyResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 10 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Storage.ResourceManager.BlobContainers + client := metadata.Client.Storage.ResourceManager.ImmutabilityPolicies id, err := parse.StorageContainerImmutabilityPolicyID(metadata.ResourceData.Id()) if err != nil { @@ -318,7 +318,7 @@ func (r StorageContainerImmutabilityPolicyResource) Delete() sdk.ResourceFunc { containerId := commonids.NewStorageContainerID(id.SubscriptionId, id.ResourceGroup, id.StorageAccountName, id.ContainerName) - resp, err := client.GetImmutabilityPolicy(ctx, containerId, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) + resp, err := client.BlobContainersGetImmutabilityPolicy(ctx, containerId, immutabilitypolicies.DefaultBlobContainersGetImmutabilityPolicyOperationOptions()) if err != nil { if response.WasNotFound(resp.HttpResponse) || r.isDeleted(resp.Model) { return nil @@ -330,11 +330,11 @@ func (r StorageContainerImmutabilityPolicyResource) Delete() sdk.ResourceFunc { return fmt.Errorf("retrieving %s: model was nil", id) } - options := blobcontainers.DeleteImmutabilityPolicyOperationOptions{ + options := immutabilitypolicies.BlobContainersDeleteImmutabilityPolicyOperationOptions{ IfMatch: resp.Model.Etag, } - if _, err := client.DeleteImmutabilityPolicy(ctx, containerId, options); err != nil { + if _, err := client.BlobContainersDeleteImmutabilityPolicy(ctx, containerId, options); err != nil { return fmt.Errorf("deleting %s: %+v", id, err) } @@ -343,7 +343,7 @@ func (r StorageContainerImmutabilityPolicyResource) Delete() sdk.ResourceFunc { } } -func (r StorageContainerImmutabilityPolicyResource) isDeleted(input *blobcontainers.ImmutabilityPolicy) bool { +func (r StorageContainerImmutabilityPolicyResource) isDeleted(input *immutabilitypolicies.ImmutabilityPolicy) bool { if input == nil { return true } diff --git a/internal/services/storage/storage_container_immutability_policy_resource_test.go b/internal/services/storage/storage_container_immutability_policy_resource_test.go index a621b99c4f00..585b65d8ebb3 100644 --- a/internal/services/storage/storage_container_immutability_policy_resource_test.go +++ b/internal/services/storage/storage_container_immutability_policy_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies" "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" @@ -120,7 +120,7 @@ func (r StorageContainerImmutabilityPolicyResource) Exists(ctx context.Context, containerId := commonids.NewStorageContainerID(id.SubscriptionId, id.ResourceGroup, id.StorageAccountName, id.ContainerName) - resp, err := client.Storage.ResourceManager.BlobContainers.GetImmutabilityPolicy(ctx, containerId, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) + resp, err := client.Storage.ResourceManager.ImmutabilityPolicies.BlobContainersGetImmutabilityPolicy(ctx, containerId, immutabilitypolicies.DefaultBlobContainersGetImmutabilityPolicyOperationOptions()) if err != nil { return nil, fmt.Errorf("retrieving %s: %+v", id, err) } diff --git a/internal/services/storage/storage_container_resource.go b/internal/services/storage/storage_container_resource.go index ec076e076577..4cceb22a4384 100644 --- a/internal/services/storage/storage_container_resource.go +++ b/internal/services/storage/storage_container_resource.go @@ -13,7 +13,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/storage/storage_containers_data_source.go b/internal/services/storage/storage_containers_data_source.go index c8c3072a72f1..cd6b238109c1 100644 --- a/internal/services/storage/storage_containers_data_source.go +++ b/internal/services/storage/storage_containers_data_source.go @@ -10,7 +10,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -88,7 +88,7 @@ func (r storageContainersDataSource) Read() sdk.ResourceFunc { Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - blobContainersClient := metadata.Client.Storage.ResourceManager.BlobContainers + blobServicesClient := metadata.Client.Storage.ResourceManager.BlobServices var plan storageContainersDataSourceModel if err := metadata.Decode(&plan); err != nil { @@ -120,7 +120,7 @@ func (r storageContainersDataSource) Read() sdk.ResourceFunc { return fmt.Errorf("parsing Account ID: %v", err) } - resp, err := blobContainersClient.ListCompleteMatchingPredicate(ctx, *id, blobcontainers.DefaultListOperationOptions(), blobcontainers.ListContainerItemOperationPredicate{}) + resp, err := blobServicesClient.BlobContainersListCompleteMatchingPredicate(ctx, *id, blobservices.BlobContainersListOperationOptions{}, blobservices.ListContainerItemOperationPredicate{}) if err != nil { return fmt.Errorf("retrieving %s: %+v", id, err) } @@ -138,7 +138,7 @@ func (r storageContainersDataSource) Read() sdk.ResourceFunc { } } -func flattenStorageContainersContainers(l []blobcontainers.ListContainerItem, accountId accounts.AccountId, prefix string) []containerModel { +func flattenStorageContainersContainers(l []blobservices.ListContainerItem, accountId accounts.AccountId, prefix string) []containerModel { output := make([]containerModel, 0, len(l)) for _, item := range l { var name string diff --git a/internal/services/storage/storage_encryption_scope_data_source.go b/internal/services/storage/storage_encryption_scope_data_source.go index 69ca973fdce7..6a66aa705ff1 100644 --- a/internal/services/storage/storage_encryption_scope_data_source.go +++ b/internal/services/storage/storage_encryption_scope_data_source.go @@ -10,7 +10,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/storage/storage_encryption_scope_resource.go b/internal/services/storage/storage_encryption_scope_resource.go index f47bba79c88f..c2b1a4b5a609 100644 --- a/internal/services/storage/storage_encryption_scope_resource.go +++ b/internal/services/storage/storage_encryption_scope_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/keyvault" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/storage/storage_encryption_scope_resource_test.go b/internal/services/storage/storage_encryption_scope_resource_test.go index 698d88e72676..406de2478679 100644 --- a/internal/services/storage/storage_encryption_scope_resource_test.go +++ b/internal/services/storage/storage_encryption_scope_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes" "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" diff --git a/internal/services/storage/storage_management_policy_resource.go b/internal/services/storage/storage_management_policy_resource.go index 7ea029d58ea7..07d32bdb128a 100644 --- a/internal/services/storage/storage_management_policy_resource.go +++ b/internal/services/storage/storage_management_policy_resource.go @@ -13,7 +13,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/parse" diff --git a/internal/services/storage/storage_object_replication_resource.go b/internal/services/storage/storage_object_replication_resource.go index c0f5f12d0c22..2970ded6833a 100644 --- a/internal/services/storage/storage_object_replication_resource.go +++ b/internal/services/storage/storage_object_replication_resource.go @@ -12,7 +12,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/parse" @@ -115,7 +115,7 @@ func resourceStorageObjectReplication() *pluginsdk.Resource { } func resourceStorageObjectReplicationCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicies + client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicyOperationGroup ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -128,17 +128,17 @@ func resourceStorageObjectReplicationCreate(d *pluginsdk.ResourceData, meta inte return err } - srcId := objectreplicationpolicies.NewObjectReplicationPolicyID(srcAccount.SubscriptionId, srcAccount.ResourceGroupName, srcAccount.StorageAccountName, "default") - dstId := objectreplicationpolicies.NewObjectReplicationPolicyID(dstAccount.SubscriptionId, dstAccount.ResourceGroupName, dstAccount.StorageAccountName, "default") + srcId := objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyID(srcAccount.SubscriptionId, srcAccount.ResourceGroupName, srcAccount.StorageAccountName, "default") + dstId := objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyID(dstAccount.SubscriptionId, dstAccount.ResourceGroupName, dstAccount.StorageAccountName, "default") - resp, err := client.List(ctx, *dstAccount) + resp, err := client.ObjectReplicationPoliciesList(ctx, *dstAccount) if err != nil { if response.WasNotFound(resp.HttpResponse) { return fmt.Errorf("checking for present of existing Storage Object Replication for destination %q): %+v", dstAccount, err) } } - if resp.Model != nil && resp.Model.Value != nil { - for _, existing := range *resp.Model.Value { + if resp.Model != nil { + for _, existing := range *resp.Model { if existing.Name != nil && *existing.Name != "" { if prop := existing.Properties; prop != nil && ( // Storage allows either a storage account name (only when allowCrossTenantReplication of the SA is false) or a full resource id (both cases). @@ -153,8 +153,8 @@ func resourceStorageObjectReplicationCreate(d *pluginsdk.ResourceData, meta inte } } - props := objectreplicationpolicies.ObjectReplicationPolicy{ - Properties: &objectreplicationpolicies.ObjectReplicationPolicyProperties{ + props := objectreplicationpolicyoperationgroup.ObjectReplicationPolicy{ + Properties: &objectreplicationpolicyoperationgroup.ObjectReplicationPolicyProperties{ SourceAccount: srcAccount.ID(), DestinationAccount: dstAccount.ID(), Rules: expandArmObjectReplicationRuleArray(d.Get("rules").(*pluginsdk.Set).List()), @@ -162,7 +162,7 @@ func resourceStorageObjectReplicationCreate(d *pluginsdk.ResourceData, meta inte } // create in dest storage account - dstResp, err := client.CreateOrUpdate(ctx, dstId, props) + dstResp, err := client.ObjectReplicationPoliciesCreateOrUpdate(ctx, dstId, props) if err != nil { return fmt.Errorf("creating Storage Object Replication for destination storage account name %q: %+v", dstId.StorageAccountName, err) } @@ -186,7 +186,7 @@ func resourceStorageObjectReplicationCreate(d *pluginsdk.ResourceData, meta inte // create in source storage account, update policy Id and ruleId which are computed from destination ORP props.Properties.Rules = dstResp.Model.Properties.Rules - if _, err := client.CreateOrUpdate(ctx, srcId, props); err != nil { + if _, err := client.ObjectReplicationPoliciesCreateOrUpdate(ctx, srcId, props); err != nil { return fmt.Errorf("creating Storage Object Replication %q for source storage account name %q: %+v", srcId.ObjectReplicationPolicyId, srcId.StorageAccountName, err) } @@ -196,7 +196,7 @@ func resourceStorageObjectReplicationCreate(d *pluginsdk.ResourceData, meta inte } func resourceStorageObjectReplicationUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicies + client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicyOperationGroup ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -208,8 +208,8 @@ func resourceStorageObjectReplicationUpdate(d *pluginsdk.ResourceData, meta inte srcAccount := commonids.NewStorageAccountID(id.Src.SubscriptionId, id.Src.ResourceGroupName, id.Src.StorageAccountName) dstAccount := commonids.NewStorageAccountID(id.Dst.SubscriptionId, id.Dst.ResourceGroupName, id.Dst.StorageAccountName) - props := objectreplicationpolicies.ObjectReplicationPolicy{ - Properties: &objectreplicationpolicies.ObjectReplicationPolicyProperties{ + props := objectreplicationpolicyoperationgroup.ObjectReplicationPolicy{ + Properties: &objectreplicationpolicyoperationgroup.ObjectReplicationPolicyProperties{ SourceAccount: srcAccount.ID(), DestinationAccount: dstAccount.ID(), Rules: expandArmObjectReplicationRuleArray(d.Get("rules").(*pluginsdk.Set).List()), @@ -217,7 +217,7 @@ func resourceStorageObjectReplicationUpdate(d *pluginsdk.ResourceData, meta inte } // update in dest storage account - resp, err := client.CreateOrUpdate(ctx, id.Dst, props) + resp, err := client.ObjectReplicationPoliciesCreateOrUpdate(ctx, id.Dst, props) if err != nil { return fmt.Errorf("updating %q for destination storage account name %q: %+v", id, id.Dst.StorageAccountName, err) } @@ -230,7 +230,7 @@ func resourceStorageObjectReplicationUpdate(d *pluginsdk.ResourceData, meta inte // update in source storage account, update policy Id and ruleId props.Properties.Rules = resp.Model.Properties.Rules - if _, err := client.CreateOrUpdate(ctx, id.Src, props); err != nil { + if _, err := client.ObjectReplicationPoliciesCreateOrUpdate(ctx, id.Src, props); err != nil { return fmt.Errorf("updating %q for source storage account name %q: %+v", id, id.Src.StorageAccountName, err) } @@ -238,7 +238,7 @@ func resourceStorageObjectReplicationUpdate(d *pluginsdk.ResourceData, meta inte } func resourceStorageObjectReplicationRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicies + client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicyOperationGroup ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -247,7 +247,7 @@ func resourceStorageObjectReplicationRead(d *pluginsdk.ResourceData, meta interf return err } - dstResp, err := client.Get(ctx, id.Dst) + dstResp, err := client.ObjectReplicationPoliciesGet(ctx, id.Dst) if err != nil { if response.WasNotFound(dstResp.HttpResponse) { log.Printf("[INFO] storage object replication %q (dst) does not exist - removing from state", d.Id()) @@ -257,7 +257,7 @@ func resourceStorageObjectReplicationRead(d *pluginsdk.ResourceData, meta interf return fmt.Errorf("retrieving %q: %+v", id, err) } - srcResp, err := client.Get(ctx, id.Src) + srcResp, err := client.ObjectReplicationPoliciesGet(ctx, id.Src) if err != nil { if response.WasNotFound(srcResp.HttpResponse) { log.Printf("[INFO] storage object replication %q (src) does not exist - removing from state", d.Id()) @@ -282,7 +282,7 @@ func resourceStorageObjectReplicationRead(d *pluginsdk.ResourceData, meta interf } func resourceStorageObjectReplicationDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicies + client := meta.(*clients.Client).Storage.ResourceManager.ObjectReplicationPolicyOperationGroup ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() @@ -291,24 +291,24 @@ func resourceStorageObjectReplicationDelete(d *pluginsdk.ResourceData, meta inte return err } - if _, err := client.Delete(ctx, id.Dst); err != nil { + if _, err := client.ObjectReplicationPoliciesDelete(ctx, id.Dst); err != nil { return fmt.Errorf("deleting %q: %+v", id.Dst, err) } - if _, err := client.Delete(ctx, id.Src); err != nil { + if _, err := client.ObjectReplicationPoliciesDelete(ctx, id.Src); err != nil { return fmt.Errorf("deleting %q : %+v", id.Dst, err) } return nil } -func expandArmObjectReplicationRuleArray(input []interface{}) *[]objectreplicationpolicies.ObjectReplicationPolicyRule { - results := make([]objectreplicationpolicies.ObjectReplicationPolicyRule, 0) +func expandArmObjectReplicationRuleArray(input []interface{}) *[]objectreplicationpolicyoperationgroup.ObjectReplicationPolicyRule { + results := make([]objectreplicationpolicyoperationgroup.ObjectReplicationPolicyRule, 0) for _, item := range input { v := item.(map[string]interface{}) - result := objectreplicationpolicies.ObjectReplicationPolicyRule{ + result := objectreplicationpolicyoperationgroup.ObjectReplicationPolicyRule{ SourceContainer: v["source_container_name"].(string), DestinationContainer: v["destination_container_name"].(string), - Filters: &objectreplicationpolicies.ObjectReplicationPolicyFilter{ + Filters: &objectreplicationpolicyoperationgroup.ObjectReplicationPolicyFilter{ MinCreationTime: pointer.To(expandArmObjectReplicationMinCreationTime(v["copy_blobs_created_after"].(string))), }, } @@ -337,7 +337,7 @@ func expandArmObjectReplicationMinCreationTime(input string) string { } } -func flattenObjectReplicationRules(input *[]objectreplicationpolicies.ObjectReplicationPolicyRule) []interface{} { +func flattenObjectReplicationRules(input *[]objectreplicationpolicyoperationgroup.ObjectReplicationPolicyRule) []interface{} { results := make([]interface{}, 0) if input == nil { return results diff --git a/internal/services/storage/storage_object_replication_resource_test.go b/internal/services/storage/storage_object_replication_resource_test.go index 00aa9816943b..2bd773f6c4c1 100644 --- a/internal/services/storage/storage_object_replication_resource_test.go +++ b/internal/services/storage/storage_object_replication_resource_test.go @@ -160,7 +160,7 @@ func (r StorageObjectReplicationResource) Exists(ctx context.Context, client *cl if err != nil { return nil, err } - dstResp, err := client.Storage.ResourceManager.ObjectReplicationPolicies.Get(ctx, id.Dst) + dstResp, err := client.Storage.ResourceManager.ObjectReplicationPolicyOperationGroup.ObjectReplicationPoliciesGet(ctx, id.Dst) if err != nil { if response.WasNotFound(dstResp.HttpResponse) { return pointer.To(false), nil @@ -168,7 +168,7 @@ func (r StorageObjectReplicationResource) Exists(ctx context.Context, client *cl return nil, fmt.Errorf("retrieving %q: %+v", id, err) } - srcResp, err := client.Storage.ResourceManager.ObjectReplicationPolicies.Get(ctx, id.Src) + srcResp, err := client.Storage.ResourceManager.ObjectReplicationPolicyOperationGroup.ObjectReplicationPoliciesGet(ctx, id.Src) if err != nil { if response.WasNotFound(srcResp.HttpResponse) { return pointer.To(false), nil diff --git a/internal/services/storage/storage_queue_data_source.go b/internal/services/storage/storage_queue_data_source.go index 2b0884c375f3..c95f759e03d9 100644 --- a/internal/services/storage/storage_queue_data_source.go +++ b/internal/services/storage/storage_queue_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" @@ -78,7 +78,7 @@ func dataSourceStorageQueue() *pluginsdk.Resource { func dataSourceStorageQueueRead(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId - queueClient := meta.(*clients.Client).Storage.ResourceManager.QueueService + queueClient := meta.(*clients.Client).Storage.ResourceManager.StorageQueues ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -143,7 +143,7 @@ func dataSourceStorageQueueRead(d *pluginsdk.ResourceData, meta interface{}) err return err } - id := queueservice.NewQueueID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, queueName) + id := storagequeues.NewQueueID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, queueName) resp, err := queueClient.QueueGet(ctx, id) if err != nil { diff --git a/internal/services/storage/storage_queue_resource.go b/internal/services/storage/storage_queue_resource.go index 976e38958a10..33b906c96c48 100644 --- a/internal/services/storage/storage_queue_resource.go +++ b/internal/services/storage/storage_queue_resource.go @@ -13,7 +13,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/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" @@ -38,14 +38,14 @@ func resourceStorageQueue() *pluginsdk.Resource { Importer: helpers.ImporterValidatingStorageResourceId(func(id, storageDomainSuffix string) error { if !features.FivePointOh() { if strings.HasPrefix(id, "/subscriptions/") { - _, err := queueservice.ParseQueueID(id) + _, err := storagequeues.ParseQueueID(id) return err } _, err := queues.ParseQueueID(id, storageDomainSuffix) return err } - _, err := queueservice.ParseQueueID(id) + _, err := storagequeues.ParseQueueID(id) return err }), @@ -137,7 +137,7 @@ func resourceStorageQueue() *pluginsdk.Resource { func resourceStorageQueueCreate(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId - queueClient := meta.(*clients.Client).Storage.ResourceManager.QueueService + queueClient := meta.(*clients.Client).Storage.ResourceManager.StorageQueues ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -200,7 +200,7 @@ func resourceStorageQueueCreate(d *pluginsdk.ResourceData, meta interface{}) err return err } - id := queueservice.NewQueueID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, queueName) + id := storagequeues.NewQueueID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, queueName) existing, err := queueClient.QueueGet(ctx, id) if err != nil { @@ -212,8 +212,8 @@ func resourceStorageQueueCreate(d *pluginsdk.ResourceData, meta interface{}) err return tf.ImportAsExistsError("azurerm_storage_queue", id.ID()) } - payload := queueservice.StorageQueue{ - Properties: &queueservice.QueueProperties{ + payload := storagequeues.StorageQueue{ + Properties: &storagequeues.QueueProperties{ Metadata: &metaData, }, } @@ -228,7 +228,7 @@ func resourceStorageQueueCreate(d *pluginsdk.ResourceData, meta interface{}) err } func resourceStorageQueueUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - queueClient := meta.(*clients.Client).Storage.ResourceManager.QueueService + queueClient := meta.(*clients.Client).Storage.ResourceManager.StorageQueues subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -264,7 +264,7 @@ func resourceStorageQueueUpdate(d *pluginsdk.ResourceData, meta interface{}) err return resourceStorageQueueRead(d, meta) } - id, err := queueservice.ParseQueueID(d.Id()) + id, err := storagequeues.ParseQueueID(d.Id()) if err != nil { return err } @@ -278,7 +278,7 @@ func resourceStorageQueueUpdate(d *pluginsdk.ResourceData, meta interface{}) err return fmt.Errorf("unexpected null model after retrieving %v", id) } - payload := queueservice.StorageQueue{ + payload := storagequeues.StorageQueue{ Properties: existing.Model.Properties, } @@ -295,7 +295,7 @@ func resourceStorageQueueUpdate(d *pluginsdk.ResourceData, meta interface{}) err } func resourceStorageQueueRead(d *pluginsdk.ResourceData, meta interface{}) error { - queueClient := meta.(*clients.Client).Storage.ResourceManager.QueueService + queueClient := meta.(*clients.Client).Storage.ResourceManager.StorageQueues subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -354,14 +354,14 @@ func resourceStorageQueueRead(d *pluginsdk.ResourceData, meta interface{}) error return err } - id := queueservice.NewQueueID(subscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, d.Get("name").(string)) + id := storagequeues.NewQueueID(subscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, d.Get("name").(string)) d.SetId(id.ID()) // Continue the code flow outside this block } } } - id, err := queueservice.ParseQueueID(d.Id()) + id, err := storagequeues.ParseQueueID(d.Id()) if err != nil { return err } @@ -414,7 +414,7 @@ func resourceStorageQueueRead(d *pluginsdk.ResourceData, meta interface{}) error } func resourceStorageQueueDelete(d *pluginsdk.ResourceData, meta interface{}) error { - queueClient := meta.(*clients.Client).Storage.ResourceManager.QueueService + queueClient := meta.(*clients.Client).Storage.ResourceManager.StorageQueues subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() @@ -447,7 +447,7 @@ func resourceStorageQueueDelete(d *pluginsdk.ResourceData, meta interface{}) err return nil } - id, err := queueservice.ParseQueueID(d.Id()) + id, err := storagequeues.ParseQueueID(d.Id()) if err != nil { return err } diff --git a/internal/services/storage/storage_queue_resource_test.go b/internal/services/storage/storage_queue_resource_test.go index 66285c16d78d..e1411396ca7f 100644 --- a/internal/services/storage/storage_queue_resource_test.go +++ b/internal/services/storage/storage_queue_resource_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues" "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" @@ -253,11 +253,11 @@ func (r StorageQueueResource) Exists(ctx context.Context, client *clients.Client return pointer.To(queue != nil), nil } - id, err := queueservice.ParseQueueID(state.ID) + id, err := storagequeues.ParseQueueID(state.ID) if err != nil { return nil, err } - existing, err := client.Storage.ResourceManager.QueueService.QueueGet(ctx, *id) + existing, err := client.Storage.ResourceManager.StorageQueues.QueueGet(ctx, *id) if err != nil { return nil, fmt.Errorf("retrieving %s: %+v", id, err) } diff --git a/internal/services/storage/storage_share_data_source.go b/internal/services/storage/storage_share_data_source.go index 5dbb379448c7..e3e0bd29918b 100644 --- a/internal/services/storage/storage_share_data_source.go +++ b/internal/services/storage/storage_share_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" diff --git a/internal/services/storage/storage_share_resource.go b/internal/services/storage/storage_share_resource.go index 3dc438988f91..7c7ac38cbbad 100644 --- a/internal/services/storage/storage_share_resource.go +++ b/internal/services/storage/storage_share_resource.go @@ -13,8 +13,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/storage/storage_share_resource_test.go b/internal/services/storage/storage_share_resource_test.go index f338e43731e9..8f2d4497987d 100644 --- a/internal/services/storage/storage_share_resource_test.go +++ b/internal/services/storage/storage_share_resource_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares" "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" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/README.md deleted file mode 100644 index 18e0f5842980..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations` Documentation - -The `accountmigrations` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations" -``` - - -### Client Initialization - -```go -client := accountmigrations.NewAccountMigrationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AccountMigrationsClient.StorageAccountsCustomerInitiatedMigration` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -payload := accountmigrations.StorageAccountMigration{ - // ... -} - - -if err := client.StorageAccountsCustomerInitiatedMigrationThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AccountMigrationsClient.StorageAccountsGetCustomerInitiatedMigration` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -read, err := client.StorageAccountsGetCustomerInitiatedMigration(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/client.go deleted file mode 100644 index ea6474187709..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package accountmigrations - -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 AccountMigrationsClient struct { - Client *resourcemanager.Client -} - -func NewAccountMigrationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountMigrationsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "accountmigrations", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating AccountMigrationsClient: %+v", err) - } - - return &AccountMigrationsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/constants.go deleted file mode 100644 index 872798c1c719..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/constants.go +++ /dev/null @@ -1,213 +0,0 @@ -package blobservice - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AllowedMethods string - -const ( - AllowedMethodsCONNECT AllowedMethods = "CONNECT" - AllowedMethodsDELETE AllowedMethods = "DELETE" - AllowedMethodsGET AllowedMethods = "GET" - AllowedMethodsHEAD AllowedMethods = "HEAD" - AllowedMethodsMERGE AllowedMethods = "MERGE" - AllowedMethodsOPTIONS AllowedMethods = "OPTIONS" - AllowedMethodsPATCH AllowedMethods = "PATCH" - AllowedMethodsPOST AllowedMethods = "POST" - AllowedMethodsPUT AllowedMethods = "PUT" - AllowedMethodsTRACE AllowedMethods = "TRACE" -) - -func PossibleValuesForAllowedMethods() []string { - return []string{ - string(AllowedMethodsCONNECT), - string(AllowedMethodsDELETE), - string(AllowedMethodsGET), - string(AllowedMethodsHEAD), - string(AllowedMethodsMERGE), - string(AllowedMethodsOPTIONS), - string(AllowedMethodsPATCH), - string(AllowedMethodsPOST), - string(AllowedMethodsPUT), - string(AllowedMethodsTRACE), - } -} - -func (s *AllowedMethods) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAllowedMethods(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAllowedMethods(input string) (*AllowedMethods, error) { - vals := map[string]AllowedMethods{ - "connect": AllowedMethodsCONNECT, - "delete": AllowedMethodsDELETE, - "get": AllowedMethodsGET, - "head": AllowedMethodsHEAD, - "merge": AllowedMethodsMERGE, - "options": AllowedMethodsOPTIONS, - "patch": AllowedMethodsPATCH, - "post": AllowedMethodsPOST, - "put": AllowedMethodsPUT, - "trace": AllowedMethodsTRACE, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AllowedMethods(input) - return &out, nil -} - -type Name string - -const ( - NameAccessTimeTracking Name = "AccessTimeTracking" -) - -func PossibleValuesForName() []string { - return []string{ - string(NameAccessTimeTracking), - } -} - -func (s *Name) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseName(input string) (*Name, error) { - vals := map[string]Name{ - "accesstimetracking": NameAccessTimeTracking, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Name(input) - return &out, nil -} - -type SkuName string - -const ( - SkuNamePremiumLRS SkuName = "Premium_LRS" - SkuNamePremiumZRS SkuName = "Premium_ZRS" - SkuNameStandardGRS SkuName = "Standard_GRS" - SkuNameStandardGZRS SkuName = "Standard_GZRS" - SkuNameStandardLRS SkuName = "Standard_LRS" - SkuNameStandardRAGRS SkuName = "Standard_RAGRS" - SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" - SkuNameStandardZRS SkuName = "Standard_ZRS" -) - -func PossibleValuesForSkuName() []string { - return []string{ - string(SkuNamePremiumLRS), - string(SkuNamePremiumZRS), - string(SkuNameStandardGRS), - string(SkuNameStandardGZRS), - string(SkuNameStandardLRS), - string(SkuNameStandardRAGRS), - string(SkuNameStandardRAGZRS), - string(SkuNameStandardZRS), - } -} - -func (s *SkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuName(input string) (*SkuName, error) { - vals := map[string]SkuName{ - "premium_lrs": SkuNamePremiumLRS, - "premium_zrs": SkuNamePremiumZRS, - "standard_grs": SkuNameStandardGRS, - "standard_gzrs": SkuNameStandardGZRS, - "standard_lrs": SkuNameStandardLRS, - "standard_ragrs": SkuNameStandardRAGRS, - "standard_ragzrs": SkuNameStandardRAGZRS, - "standard_zrs": SkuNameStandardZRS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuName(input) - return &out, nil -} - -type SkuTier string - -const ( - SkuTierPremium SkuTier = "Premium" - SkuTierStandard SkuTier = "Standard" -) - -func PossibleValuesForSkuTier() []string { - return []string{ - string(SkuTierPremium), - string(SkuTierStandard), - } -} - -func (s *SkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuTier(input string) (*SkuTier, error) { - vals := map[string]SkuTier{ - "premium": SkuTierPremium, - "standard": SkuTierStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuTier(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_list.go deleted file mode 100644 index 16076d2e6eaf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_list.go +++ /dev/null @@ -1,55 +0,0 @@ -package blobservice - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *BlobServiceItems -} - -// List ... -func (c BlobServiceClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/blobServices", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model BlobServiceItems - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/client.go deleted file mode 100644 index e961d80fe0b2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/client.go +++ /dev/null @@ -1,208 +0,0 @@ -package v2023_05_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/storage/2023-05-01/accountmigrations" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice" - "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -type Client struct { - AccountMigrations *accountmigrations.AccountMigrationsClient - BlobContainers *blobcontainers.BlobContainersClient - BlobInventoryPolicies *blobinventorypolicies.BlobInventoryPoliciesClient - BlobService *blobservice.BlobServiceClient - DeletedAccounts *deletedaccounts.DeletedAccountsClient - EncryptionScopes *encryptionscopes.EncryptionScopesClient - FileService *fileservice.FileServiceClient - FileShares *fileshares.FileSharesClient - LocalUsers *localusers.LocalUsersClient - ManagementPolicies *managementpolicies.ManagementPoliciesClient - ObjectReplicationPolicies *objectreplicationpolicies.ObjectReplicationPoliciesClient - PrivateEndpointConnections *privateendpointconnections.PrivateEndpointConnectionsClient - PrivateLinkResources *privatelinkresources.PrivateLinkResourcesClient - QueueService *queueservice.QueueServiceClient - QueueServiceProperties *queueserviceproperties.QueueServicePropertiesClient - Skus *skus.SkusClient - StorageAccounts *storageaccounts.StorageAccountsClient - StorageAccountsNetworkSecurityPerimeterConfigurations *storageaccountsnetworksecurityperimeterconfigurations.StorageAccountsNetworkSecurityPerimeterConfigurationsClient - StorageTaskAssignments *storagetaskassignments.StorageTaskAssignmentsClient - TableService *tableservice.TableServiceClient - TableServiceProperties *tableserviceproperties.TableServicePropertiesClient -} - -func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { - accountMigrationsClient, err := accountmigrations.NewAccountMigrationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building AccountMigrations client: %+v", err) - } - configureFunc(accountMigrationsClient.Client) - - blobContainersClient, err := blobcontainers.NewBlobContainersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building BlobContainers client: %+v", err) - } - configureFunc(blobContainersClient.Client) - - blobInventoryPoliciesClient, err := blobinventorypolicies.NewBlobInventoryPoliciesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building BlobInventoryPolicies client: %+v", err) - } - configureFunc(blobInventoryPoliciesClient.Client) - - blobServiceClient, err := blobservice.NewBlobServiceClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building BlobService client: %+v", err) - } - configureFunc(blobServiceClient.Client) - - deletedAccountsClient, err := deletedaccounts.NewDeletedAccountsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building DeletedAccounts client: %+v", err) - } - configureFunc(deletedAccountsClient.Client) - - encryptionScopesClient, err := encryptionscopes.NewEncryptionScopesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building EncryptionScopes client: %+v", err) - } - configureFunc(encryptionScopesClient.Client) - - fileServiceClient, err := fileservice.NewFileServiceClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building FileService client: %+v", err) - } - configureFunc(fileServiceClient.Client) - - fileSharesClient, err := fileshares.NewFileSharesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building FileShares client: %+v", err) - } - configureFunc(fileSharesClient.Client) - - localUsersClient, err := localusers.NewLocalUsersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building LocalUsers client: %+v", err) - } - configureFunc(localUsersClient.Client) - - managementPoliciesClient, err := managementpolicies.NewManagementPoliciesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ManagementPolicies client: %+v", err) - } - configureFunc(managementPoliciesClient.Client) - - objectReplicationPoliciesClient, err := objectreplicationpolicies.NewObjectReplicationPoliciesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ObjectReplicationPolicies client: %+v", err) - } - configureFunc(objectReplicationPoliciesClient.Client) - - privateEndpointConnectionsClient, err := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PrivateEndpointConnections client: %+v", err) - } - configureFunc(privateEndpointConnectionsClient.Client) - - privateLinkResourcesClient, err := privatelinkresources.NewPrivateLinkResourcesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PrivateLinkResources client: %+v", err) - } - configureFunc(privateLinkResourcesClient.Client) - - queueServiceClient, err := queueservice.NewQueueServiceClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building QueueService client: %+v", err) - } - configureFunc(queueServiceClient.Client) - - queueServicePropertiesClient, err := queueserviceproperties.NewQueueServicePropertiesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building QueueServiceProperties client: %+v", err) - } - configureFunc(queueServicePropertiesClient.Client) - - skusClient, err := skus.NewSkusClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Skus client: %+v", err) - } - configureFunc(skusClient.Client) - - storageAccountsClient, err := storageaccounts.NewStorageAccountsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building StorageAccounts client: %+v", err) - } - configureFunc(storageAccountsClient.Client) - - storageAccountsNetworkSecurityPerimeterConfigurationsClient, err := storageaccountsnetworksecurityperimeterconfigurations.NewStorageAccountsNetworkSecurityPerimeterConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building StorageAccountsNetworkSecurityPerimeterConfigurations client: %+v", err) - } - configureFunc(storageAccountsNetworkSecurityPerimeterConfigurationsClient.Client) - - storageTaskAssignmentsClient, err := storagetaskassignments.NewStorageTaskAssignmentsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building StorageTaskAssignments client: %+v", err) - } - configureFunc(storageTaskAssignmentsClient.Client) - - tableServiceClient, err := tableservice.NewTableServiceClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building TableService client: %+v", err) - } - configureFunc(tableServiceClient.Client) - - tableServicePropertiesClient, err := tableserviceproperties.NewTableServicePropertiesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building TableServiceProperties client: %+v", err) - } - configureFunc(tableServicePropertiesClient.Client) - - return &Client{ - AccountMigrations: accountMigrationsClient, - BlobContainers: blobContainersClient, - BlobInventoryPolicies: blobInventoryPoliciesClient, - BlobService: blobServiceClient, - DeletedAccounts: deletedAccountsClient, - EncryptionScopes: encryptionScopesClient, - FileService: fileServiceClient, - FileShares: fileSharesClient, - LocalUsers: localUsersClient, - ManagementPolicies: managementPoliciesClient, - ObjectReplicationPolicies: objectReplicationPoliciesClient, - PrivateEndpointConnections: privateEndpointConnectionsClient, - PrivateLinkResources: privateLinkResourcesClient, - QueueService: queueServiceClient, - QueueServiceProperties: queueServicePropertiesClient, - Skus: skusClient, - StorageAccounts: storageAccountsClient, - StorageAccountsNetworkSecurityPerimeterConfigurations: storageAccountsNetworkSecurityPerimeterConfigurationsClient, - StorageTaskAssignments: storageTaskAssignmentsClient, - TableService: tableServiceClient, - TableServiceProperties: tableServicePropertiesClient, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/constants.go deleted file mode 100644 index 8d1bebcc6538..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/constants.go +++ /dev/null @@ -1,175 +0,0 @@ -package fileservice - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AllowedMethods string - -const ( - AllowedMethodsCONNECT AllowedMethods = "CONNECT" - AllowedMethodsDELETE AllowedMethods = "DELETE" - AllowedMethodsGET AllowedMethods = "GET" - AllowedMethodsHEAD AllowedMethods = "HEAD" - AllowedMethodsMERGE AllowedMethods = "MERGE" - AllowedMethodsOPTIONS AllowedMethods = "OPTIONS" - AllowedMethodsPATCH AllowedMethods = "PATCH" - AllowedMethodsPOST AllowedMethods = "POST" - AllowedMethodsPUT AllowedMethods = "PUT" - AllowedMethodsTRACE AllowedMethods = "TRACE" -) - -func PossibleValuesForAllowedMethods() []string { - return []string{ - string(AllowedMethodsCONNECT), - string(AllowedMethodsDELETE), - string(AllowedMethodsGET), - string(AllowedMethodsHEAD), - string(AllowedMethodsMERGE), - string(AllowedMethodsOPTIONS), - string(AllowedMethodsPATCH), - string(AllowedMethodsPOST), - string(AllowedMethodsPUT), - string(AllowedMethodsTRACE), - } -} - -func (s *AllowedMethods) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAllowedMethods(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAllowedMethods(input string) (*AllowedMethods, error) { - vals := map[string]AllowedMethods{ - "connect": AllowedMethodsCONNECT, - "delete": AllowedMethodsDELETE, - "get": AllowedMethodsGET, - "head": AllowedMethodsHEAD, - "merge": AllowedMethodsMERGE, - "options": AllowedMethodsOPTIONS, - "patch": AllowedMethodsPATCH, - "post": AllowedMethodsPOST, - "put": AllowedMethodsPUT, - "trace": AllowedMethodsTRACE, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AllowedMethods(input) - return &out, nil -} - -type SkuName string - -const ( - SkuNamePremiumLRS SkuName = "Premium_LRS" - SkuNamePremiumZRS SkuName = "Premium_ZRS" - SkuNameStandardGRS SkuName = "Standard_GRS" - SkuNameStandardGZRS SkuName = "Standard_GZRS" - SkuNameStandardLRS SkuName = "Standard_LRS" - SkuNameStandardRAGRS SkuName = "Standard_RAGRS" - SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" - SkuNameStandardZRS SkuName = "Standard_ZRS" -) - -func PossibleValuesForSkuName() []string { - return []string{ - string(SkuNamePremiumLRS), - string(SkuNamePremiumZRS), - string(SkuNameStandardGRS), - string(SkuNameStandardGZRS), - string(SkuNameStandardLRS), - string(SkuNameStandardRAGRS), - string(SkuNameStandardRAGZRS), - string(SkuNameStandardZRS), - } -} - -func (s *SkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuName(input string) (*SkuName, error) { - vals := map[string]SkuName{ - "premium_lrs": SkuNamePremiumLRS, - "premium_zrs": SkuNamePremiumZRS, - "standard_grs": SkuNameStandardGRS, - "standard_gzrs": SkuNameStandardGZRS, - "standard_lrs": SkuNameStandardLRS, - "standard_ragrs": SkuNameStandardRAGRS, - "standard_ragzrs": SkuNameStandardRAGZRS, - "standard_zrs": SkuNameStandardZRS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuName(input) - return &out, nil -} - -type SkuTier string - -const ( - SkuTierPremium SkuTier = "Premium" - SkuTierStandard SkuTier = "Standard" -) - -func PossibleValuesForSkuTier() []string { - return []string{ - string(SkuTierPremium), - string(SkuTierStandard), - } -} - -func (s *SkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuTier(input string) (*SkuTier, error) { - vals := map[string]SkuTier{ - "premium": SkuTierPremium, - "standard": SkuTierStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuTier(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_smbsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_smbsetting.go deleted file mode 100644 index b948ac54d1c7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_smbsetting.go +++ /dev/null @@ -1,12 +0,0 @@ -package fileservice - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SmbSetting struct { - AuthenticationMethods *string `json:"authenticationMethods,omitempty"` - ChannelEncryption *string `json:"channelEncryption,omitempty"` - KerberosTicketEncryption *string `json:"kerberosTicketEncryption,omitempty"` - Multichannel *Multichannel `json:"multichannel,omitempty"` - Versions *string `json:"versions,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshareproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshareproperties.go deleted file mode 100644 index be2b3f48fa83..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshareproperties.go +++ /dev/null @@ -1,79 +0,0 @@ -package fileshares - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FileShareProperties struct { - AccessTier *ShareAccessTier `json:"accessTier,omitempty"` - AccessTierChangeTime *string `json:"accessTierChangeTime,omitempty"` - AccessTierStatus *string `json:"accessTierStatus,omitempty"` - Deleted *bool `json:"deleted,omitempty"` - DeletedTime *string `json:"deletedTime,omitempty"` - EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"` - LastModifiedTime *string `json:"lastModifiedTime,omitempty"` - LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty"` - LeaseState *LeaseState `json:"leaseState,omitempty"` - LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty"` - Metadata *map[string]string `json:"metadata,omitempty"` - RemainingRetentionDays *int64 `json:"remainingRetentionDays,omitempty"` - RootSquash *RootSquashType `json:"rootSquash,omitempty"` - ShareQuota *int64 `json:"shareQuota,omitempty"` - ShareUsageBytes *int64 `json:"shareUsageBytes,omitempty"` - SignedIdentifiers *[]SignedIdentifier `json:"signedIdentifiers,omitempty"` - SnapshotTime *string `json:"snapshotTime,omitempty"` - Version *string `json:"version,omitempty"` -} - -func (o *FileShareProperties) GetAccessTierChangeTimeAsTime() (*time.Time, error) { - if o.AccessTierChangeTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.AccessTierChangeTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *FileShareProperties) SetAccessTierChangeTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.AccessTierChangeTime = &formatted -} - -func (o *FileShareProperties) GetDeletedTimeAsTime() (*time.Time, error) { - if o.DeletedTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.DeletedTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *FileShareProperties) SetDeletedTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.DeletedTime = &formatted -} - -func (o *FileShareProperties) GetLastModifiedTimeAsTime() (*time.Time, error) { - if o.LastModifiedTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.LastModifiedTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *FileShareProperties) SetLastModifiedTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.LastModifiedTime = &formatted -} - -func (o *FileShareProperties) GetSnapshotTimeAsTime() (*time.Time, error) { - if o.SnapshotTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.SnapshotTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *FileShareProperties) SetSnapshotTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.SnapshotTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/README.md deleted file mode 100644 index 02f3c2295395..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/README.md +++ /dev/null @@ -1,123 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers` Documentation - -The `localusers` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers" -``` - - -### Client Initialization - -```go -client := localusers.NewLocalUsersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `LocalUsersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") - -payload := localusers.LocalUser{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LocalUsersClient.Delete` - -```go -ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LocalUsersClient.Get` - -```go -ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LocalUsersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -// alternatively `client.List(ctx, id, localusers.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, localusers.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LocalUsersClient.ListKeys` - -```go -ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") - -read, err := client.ListKeys(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LocalUsersClient.RegeneratePassword` - -```go -ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") - -read, err := client.RegeneratePassword(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuser.go deleted file mode 100644 index 77e65fc981a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuser.go +++ /dev/null @@ -1,16 +0,0 @@ -package localusers - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LocalUser struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *LocalUserProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/README.md deleted file mode 100644 index d3aafcedd0c7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/README.md +++ /dev/null @@ -1,90 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies` Documentation - -The `objectreplicationpolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies" -``` - - -### Client Initialization - -```go -client := objectreplicationpolicies.NewObjectReplicationPoliciesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ObjectReplicationPoliciesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "objectReplicationPolicyId") - -payload := objectreplicationpolicies.ObjectReplicationPolicy{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ObjectReplicationPoliciesClient.Delete` - -```go -ctx := context.TODO() -id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "objectReplicationPolicyId") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ObjectReplicationPoliciesClient.Get` - -```go -ctx := context.TODO() -id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "objectReplicationPolicyId") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ObjectReplicationPoliciesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_list.go deleted file mode 100644 index ee3fc07bcbe2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_list.go +++ /dev/null @@ -1,55 +0,0 @@ -package objectreplicationpolicies - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ObjectReplicationPolicies -} - -// List ... -func (c ObjectReplicationPoliciesClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/objectReplicationPolicies", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ObjectReplicationPolicies - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicies.go deleted file mode 100644 index e9617fd29cdd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicies.go +++ /dev/null @@ -1,8 +0,0 @@ -package objectreplicationpolicies - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ObjectReplicationPolicies struct { - Value *[]ObjectReplicationPolicy `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyproperties.go deleted file mode 100644 index 1bc675c903f5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyproperties.go +++ /dev/null @@ -1,30 +0,0 @@ -package objectreplicationpolicies - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ObjectReplicationPolicyProperties struct { - DestinationAccount string `json:"destinationAccount"` - EnabledTime *string `json:"enabledTime,omitempty"` - PolicyId *string `json:"policyId,omitempty"` - Rules *[]ObjectReplicationPolicyRule `json:"rules,omitempty"` - SourceAccount string `json:"sourceAccount"` -} - -func (o *ObjectReplicationPolicyProperties) GetEnabledTimeAsTime() (*time.Time, error) { - if o.EnabledTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.EnabledTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *ObjectReplicationPolicyProperties) SetEnabledTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.EnabledTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/version.go deleted file mode 100644 index bfcbf018bc21..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package objectreplicationpolicies - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/objectreplicationpolicies/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_list.go deleted file mode 100644 index d17e2e90a974..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_list.go +++ /dev/null @@ -1,55 +0,0 @@ -package privateendpointconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *PrivateEndpointConnectionListResult -} - -// List ... -func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model PrivateEndpointConnectionListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpointconnectionlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpointconnectionlistresult.go deleted file mode 100644 index 92a9ecb105a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpointconnectionlistresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package privateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionListResult struct { - Value *[]PrivateEndpointConnection `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/README.md deleted file mode 100644 index 50622f4354a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/README.md +++ /dev/null @@ -1,112 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice` Documentation - -The `queueservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice" -``` - - -### Client Initialization - -```go -client := queueservice.NewQueueServiceClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `QueueServiceClient.QueueCreate` - -```go -ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") - -payload := queueservice.StorageQueue{ - // ... -} - - -read, err := client.QueueCreate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `QueueServiceClient.QueueDelete` - -```go -ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") - -read, err := client.QueueDelete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `QueueServiceClient.QueueGet` - -```go -ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") - -read, err := client.QueueGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `QueueServiceClient.QueueList` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -// alternatively `client.QueueList(ctx, id, queueservice.DefaultQueueListOperationOptions())` can be used to do batched pagination -items, err := client.QueueListComplete(ctx, id, queueservice.DefaultQueueListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `QueueServiceClient.QueueUpdate` - -```go -ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") - -payload := queueservice.StorageQueue{ - // ... -} - - -read, err := client.QueueUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/version.go deleted file mode 100644 index eefa1f6439bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package queueservice - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/queueservice/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/README.md deleted file mode 100644 index e6d5288290b6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/README.md +++ /dev/null @@ -1,74 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties` Documentation - -The `queueserviceproperties` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties" -``` - - -### Client Initialization - -```go -client := queueserviceproperties.NewQueueServicePropertiesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `QueueServicePropertiesClient.QueueServicesGetServiceProperties` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -read, err := client.QueueServicesGetServiceProperties(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `QueueServicePropertiesClient.QueueServicesList` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -read, err := client.QueueServicesList(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `QueueServicePropertiesClient.QueueServicesSetServiceProperties` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -payload := queueserviceproperties.QueueServiceProperties{ - // ... -} - - -read, err := client.QueueServicesSetServiceProperties(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/client.go deleted file mode 100644 index 561ee9327f85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package queueserviceproperties - -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 QueueServicePropertiesClient struct { - Client *resourcemanager.Client -} - -func NewQueueServicePropertiesClientWithBaseURI(sdkApi sdkEnv.Api) (*QueueServicePropertiesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "queueserviceproperties", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating QueueServicePropertiesClient: %+v", err) - } - - return &QueueServicePropertiesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/version.go deleted file mode 100644 index cbc4dbc8ec86..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package queueserviceproperties - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/queueserviceproperties/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/README.md deleted file mode 100644 index ad0598c25a68..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus` Documentation - -The `skus` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus" -``` - - -### Client Initialization - -```go -client := skus.NewSkusClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SkusClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/method_list.go deleted file mode 100644 index a8f7100a2489..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/method_list.go +++ /dev/null @@ -1,55 +0,0 @@ -package skus - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *StorageSkuListResult -} - -// List ... -func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Storage/skus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model StorageSkuListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_skuinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_skuinformation.go deleted file mode 100644 index eaebab456128..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_skuinformation.go +++ /dev/null @@ -1,14 +0,0 @@ -package skus - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SkuInformation struct { - Capabilities *[]SKUCapability `json:"capabilities,omitempty"` - Kind *Kind `json:"kind,omitempty"` - Locations *[]string `json:"locations,omitempty"` - Name SkuName `json:"name"` - ResourceType *string `json:"resourceType,omitempty"` - Restrictions *[]Restriction `json:"restrictions,omitempty"` - Tier *SkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/README.md deleted file mode 100644 index 39e529923dd3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/README.md +++ /dev/null @@ -1,66 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations` Documentation - -The `storageaccountsnetworksecurityperimeterconfigurations` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations" -``` - - -### Client Initialization - -```go -client := storageaccountsnetworksecurityperimeterconfigurations.NewStorageAccountsNetworkSecurityPerimeterConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `StorageAccountsNetworkSecurityPerimeterConfigurationsClient.NetworkSecurityPerimeterConfigurationsGet` - -```go -ctx := context.TODO() -id := storageaccountsnetworksecurityperimeterconfigurations.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "networkSecurityPerimeterConfigurationName") - -read, err := client.NetworkSecurityPerimeterConfigurationsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `StorageAccountsNetworkSecurityPerimeterConfigurationsClient.NetworkSecurityPerimeterConfigurationsList` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -// alternatively `client.NetworkSecurityPerimeterConfigurationsList(ctx, id)` can be used to do batched pagination -items, err := client.NetworkSecurityPerimeterConfigurationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `StorageAccountsNetworkSecurityPerimeterConfigurationsClient.NetworkSecurityPerimeterConfigurationsReconcile` - -```go -ctx := context.TODO() -id := storageaccountsnetworksecurityperimeterconfigurations.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "networkSecurityPerimeterConfigurationName") - -if err := client.NetworkSecurityPerimeterConfigurationsReconcileThenPoll(ctx, id); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/client.go deleted file mode 100644 index e9467bf48768..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package storageaccountsnetworksecurityperimeterconfigurations - -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 StorageAccountsNetworkSecurityPerimeterConfigurationsClient struct { - Client *resourcemanager.Client -} - -func NewStorageAccountsNetworkSecurityPerimeterConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageAccountsNetworkSecurityPerimeterConfigurationsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "storageaccountsnetworksecurityperimeterconfigurations", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating StorageAccountsNetworkSecurityPerimeterConfigurationsClient: %+v", err) - } - - return &StorageAccountsNetworkSecurityPerimeterConfigurationsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationsget.go deleted file mode 100644 index fba52b3ccabd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationsget.go +++ /dev/null @@ -1,53 +0,0 @@ -package storageaccountsnetworksecurityperimeterconfigurations - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityPerimeterConfigurationsGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkSecurityPerimeterConfiguration -} - -// NetworkSecurityPerimeterConfigurationsGet ... -func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsGet(ctx context.Context, id NetworkSecurityPerimeterConfigurationId) (result NetworkSecurityPerimeterConfigurationsGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkSecurityPerimeterConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationslist.go deleted file mode 100644 index 59ff6cccbfbb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package storageaccountsnetworksecurityperimeterconfigurations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityPerimeterConfigurationsListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkSecurityPerimeterConfiguration -} - -type NetworkSecurityPerimeterConfigurationsListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkSecurityPerimeterConfiguration -} - -type NetworkSecurityPerimeterConfigurationsListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *NetworkSecurityPerimeterConfigurationsListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// NetworkSecurityPerimeterConfigurationsList ... -func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsList(ctx context.Context, id commonids.StorageAccountId) (result NetworkSecurityPerimeterConfigurationsListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &NetworkSecurityPerimeterConfigurationsListCustomPager{}, - Path: fmt.Sprintf("%s/networkSecurityPerimeterConfigurations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkSecurityPerimeterConfiguration `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// NetworkSecurityPerimeterConfigurationsListComplete retrieves all the results into a single object -func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsListComplete(ctx context.Context, id commonids.StorageAccountId) (NetworkSecurityPerimeterConfigurationsListCompleteResult, error) { - return c.NetworkSecurityPerimeterConfigurationsListCompleteMatchingPredicate(ctx, id, NetworkSecurityPerimeterConfigurationOperationPredicate{}) -} - -// NetworkSecurityPerimeterConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate NetworkSecurityPerimeterConfigurationOperationPredicate) (result NetworkSecurityPerimeterConfigurationsListCompleteResult, err error) { - items := make([]NetworkSecurityPerimeterConfiguration, 0) - - resp, err := c.NetworkSecurityPerimeterConfigurationsList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = NetworkSecurityPerimeterConfigurationsListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/version.go deleted file mode 100644 index 1b4dc137e30f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package storageaccountsnetworksecurityperimeterconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/storageaccountsnetworksecurityperimeterconfigurations/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_instancesreportlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_instancesreportlist.go deleted file mode 100644 index d616d5e00f40..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_instancesreportlist.go +++ /dev/null @@ -1,139 +0,0 @@ -package storagetaskassignments - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InstancesReportListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]StorageTaskReportInstance -} - -type InstancesReportListCompleteResult struct { - LatestHttpResponse *http.Response - Items []StorageTaskReportInstance -} - -type InstancesReportListOperationOptions struct { - Filter *string - Maxpagesize *int64 -} - -func DefaultInstancesReportListOperationOptions() InstancesReportListOperationOptions { - return InstancesReportListOperationOptions{} -} - -func (o InstancesReportListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o InstancesReportListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o InstancesReportListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Filter != nil { - out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) - } - if o.Maxpagesize != nil { - out.Append("$maxpagesize", fmt.Sprintf("%v", *o.Maxpagesize)) - } - return &out -} - -type InstancesReportListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *InstancesReportListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// InstancesReportList ... -func (c StorageTaskAssignmentsClient) InstancesReportList(ctx context.Context, id commonids.StorageAccountId, options InstancesReportListOperationOptions) (result InstancesReportListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &InstancesReportListCustomPager{}, - Path: fmt.Sprintf("%s/reports", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]StorageTaskReportInstance `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// InstancesReportListComplete retrieves all the results into a single object -func (c StorageTaskAssignmentsClient) InstancesReportListComplete(ctx context.Context, id commonids.StorageAccountId, options InstancesReportListOperationOptions) (InstancesReportListCompleteResult, error) { - return c.InstancesReportListCompleteMatchingPredicate(ctx, id, options, StorageTaskReportInstanceOperationPredicate{}) -} - -// InstancesReportListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c StorageTaskAssignmentsClient) InstancesReportListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options InstancesReportListOperationOptions, predicate StorageTaskReportInstanceOperationPredicate) (result InstancesReportListCompleteResult, err error) { - items := make([]StorageTaskReportInstance, 0) - - resp, err := c.InstancesReportList(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = InstancesReportListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentproperties.go deleted file mode 100644 index c011989c0516..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentproperties.go +++ /dev/null @@ -1,14 +0,0 @@ -package storagetaskassignments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StorageTaskAssignmentProperties struct { - Description string `json:"description"` - Enabled bool `json:"enabled"` - ExecutionContext StorageTaskAssignmentExecutionContext `json:"executionContext"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Report StorageTaskAssignmentReport `json:"report"` - RunStatus *StorageTaskReportProperties `json:"runStatus,omitempty"` - TaskId string `json:"taskId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/version.go deleted file mode 100644 index 5127f86d56a8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package tableservice - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/tableservice/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/README.md deleted file mode 100644 index 96a194e2cb26..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/README.md +++ /dev/null @@ -1,74 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties` Documentation - -The `tableserviceproperties` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties" -``` - - -### Client Initialization - -```go -client := tableserviceproperties.NewTableServicePropertiesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `TableServicePropertiesClient.TableServicesGetServiceProperties` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -read, err := client.TableServicesGetServiceProperties(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `TableServicePropertiesClient.TableServicesList` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -read, err := client.TableServicesList(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `TableServicePropertiesClient.TableServicesSetServiceProperties` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -payload := tableserviceproperties.TableServiceProperties{ - // ... -} - - -read, err := client.TableServicesSetServiceProperties(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/client.go deleted file mode 100644 index dcb7653dd46c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package tableserviceproperties - -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 TableServicePropertiesClient struct { - Client *resourcemanager.Client -} - -func NewTableServicePropertiesClientWithBaseURI(sdkApi sdkEnv.Api) (*TableServicePropertiesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "tableserviceproperties", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating TableServicePropertiesClient: %+v", err) - } - - return &TableServicePropertiesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/version.go deleted file mode 100644 index 677e31bbb494..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package tableserviceproperties - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/tableserviceproperties/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/README.md similarity index 55% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/README.md index 539ed3252d36..a0e1ece9bf99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers` Documentation -The `blobcontainers` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `blobcontainers` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers" ``` @@ -63,27 +63,6 @@ if model := read.Model; model != nil { ``` -### Example Usage: `BlobContainersClient.CreateOrUpdateImmutabilityPolicy` - -```go -ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") - -payload := blobcontainers.ImmutabilityPolicy{ - // ... -} - - -read, err := client.CreateOrUpdateImmutabilityPolicy(ctx, id, payload, blobcontainers.DefaultCreateOrUpdateImmutabilityPolicyOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - ### Example Usage: `BlobContainersClient.Delete` ```go @@ -100,43 +79,6 @@ if model := read.Model; model != nil { ``` -### Example Usage: `BlobContainersClient.DeleteImmutabilityPolicy` - -```go -ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") - -read, err := client.DeleteImmutabilityPolicy(ctx, id, blobcontainers.DefaultDeleteImmutabilityPolicyOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `BlobContainersClient.ExtendImmutabilityPolicy` - -```go -ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") - -payload := blobcontainers.ImmutabilityPolicy{ - // ... -} - - -read, err := client.ExtendImmutabilityPolicy(ctx, id, payload, blobcontainers.DefaultExtendImmutabilityPolicyOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - ### Example Usage: `BlobContainersClient.Get` ```go @@ -153,22 +95,6 @@ if model := read.Model; model != nil { ``` -### Example Usage: `BlobContainersClient.GetImmutabilityPolicy` - -```go -ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") - -read, err := client.GetImmutabilityPolicy(ctx, id, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - ### Example Usage: `BlobContainersClient.Lease` ```go @@ -190,39 +116,6 @@ if model := read.Model; model != nil { ``` -### Example Usage: `BlobContainersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -// alternatively `client.List(ctx, id, blobcontainers.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, blobcontainers.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BlobContainersClient.LockImmutabilityPolicy` - -```go -ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") - -read, err := client.LockImmutabilityPolicy(ctx, id, blobcontainers.DefaultLockImmutabilityPolicyOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - ### Example Usage: `BlobContainersClient.ObjectLevelWorm` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/constants.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/constants.go index db79c267687b..9c48c4cb2301 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/constants.go @@ -276,44 +276,6 @@ func parseLeaseStatus(input string) (*LeaseStatus, error) { return &out, nil } -type ListContainersInclude string - -const ( - ListContainersIncludeDeleted ListContainersInclude = "deleted" -) - -func PossibleValuesForListContainersInclude() []string { - return []string{ - string(ListContainersIncludeDeleted), - } -} - -func (s *ListContainersInclude) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseListContainersInclude(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseListContainersInclude(input string) (*ListContainersInclude, error) { - vals := map[string]ListContainersInclude{ - "deleted": ListContainersIncludeDeleted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ListContainersInclude(input) - return &out, nil -} - type MigrationState string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_clearlegalhold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_clearlegalhold.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_clearlegalhold.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_clearlegalhold.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_lease.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_lease.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_lease.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_lease.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_objectlevelworm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_objectlevelworm.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_objectlevelworm.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_objectlevelworm.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_setlegalhold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_setlegalhold.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_setlegalhold.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_setlegalhold.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_blobcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_blobcontainer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_blobcontainer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_blobcontainer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_containerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_containerproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_containerproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_containerproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutabilitypolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_immutabilitypolicyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutabilitypolicyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_immutabilitypolicyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutabilitypolicyproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_immutabilitypolicyproperty.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutabilitypolicyproperty.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_immutabilitypolicyproperty.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutablestoragewithversioning.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_immutablestoragewithversioning.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutablestoragewithversioning.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_immutablestoragewithversioning.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_leasecontainerrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_leasecontainerrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_leasecontainerrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_leasecontainerrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_leasecontainerresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_leasecontainerresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_leasecontainerresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_leasecontainerresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_legalhold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_legalhold.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_legalhold.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_legalhold.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_legalholdproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_legalholdproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_legalholdproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_legalholdproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_protectedappendwriteshistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_protectedappendwriteshistory.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_protectedappendwriteshistory.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_protectedappendwriteshistory.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_tagproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_tagproperty.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_tagproperty.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_tagproperty.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_updatehistoryproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_updatehistoryproperty.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_updatehistoryproperty.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/model_updatehistoryproperty.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/version.go index 9f869e634659..f477d116d3e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers/version.go @@ -3,8 +3,8 @@ package blobcontainers // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/blobcontainers/2023-05-01" + return "hashicorp/go-azure-sdk/blobcontainers/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/README.md index e2654c975469..75c3262fb098 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies` Documentation -The `blobinventorypolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `blobinventorypolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies" ``` @@ -80,11 +80,12 @@ if model := read.Model; model != nil { ctx := context.TODO() id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") -read, err := client.List(ctx, id) +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_list.go new file mode 100644 index 000000000000..c8bb664ba2eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/method_list.go @@ -0,0 +1,106 @@ +package blobinventorypolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BlobInventoryPolicy +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []BlobInventoryPolicy +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c BlobInventoryPoliciesClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/inventoryPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BlobInventoryPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c BlobInventoryPoliciesClient) ListComplete(ctx context.Context, id commonids.StorageAccountId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, BlobInventoryPolicyOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c BlobInventoryPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate BlobInventoryPolicyOperationPredicate) (result ListCompleteResult, err error) { + items := make([]BlobInventoryPolicy, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorycreationtime.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorycreationtime.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorycreationtime.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorycreationtime.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicy.go similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicy.go index b272e59c23cb..81cb72ddda80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicy.go @@ -1,9 +1,5 @@ package blobinventorypolicies -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -11,6 +7,5 @@ type BlobInventoryPolicy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *BlobInventoryPolicyProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyfilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyfilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyfilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyschema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyschema.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_blobinventorypolicyschema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/model_blobinventorypolicyschema.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/predicates.go similarity index 73% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/predicates.go index 7505756d8f21..0474f91d2e91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/predicates.go @@ -1,15 +1,15 @@ -package deletedaccounts +package blobinventorypolicies // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type DeletedAccountOperationPredicate struct { +type BlobInventoryPolicyOperationPredicate struct { Id *string Name *string Type *string } -func (p DeletedAccountOperationPredicate) Matches(input DeletedAccount) bool { +func (p BlobInventoryPolicyOperationPredicate) Matches(input BlobInventoryPolicy) bool { if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/version.go index 2de048cb8627..5aaec4cd44a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies/version.go @@ -3,8 +3,8 @@ package blobinventorypolicies // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/blobinventorypolicies/2023-05-01" + return "hashicorp/go-azure-sdk/blobinventorypolicies/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/README.md new file mode 100644 index 000000000000..662e299324a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/README.md @@ -0,0 +1,92 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices` Documentation + +The `blobservices` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices" +``` + + +### Client Initialization + +```go +client := blobservices.NewBlobServicesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BlobServicesClient.BlobContainersList` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.BlobContainersList(ctx, id, blobservices.DefaultBlobContainersListOperationOptions())` can be used to do batched pagination +items, err := client.BlobContainersListComplete(ctx, id, blobservices.DefaultBlobContainersListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BlobServicesClient.GetServiceProperties` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +read, err := client.GetServiceProperties(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BlobServicesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BlobServicesClient.SetServiceProperties` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +payload := blobservices.BlobServiceProperties{ + // ... +} + + +read, err := client.SetServiceProperties(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/client.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/client.go index 953b6a4b29eb..b5c59f53062f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/client.go @@ -1,4 +1,4 @@ -package tableservice +package blobservices import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TableServiceClient struct { +type BlobServicesClient struct { Client *resourcemanager.Client } -func NewTableServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*TableServiceClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "tableservice", defaultApiVersion) +func NewBlobServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobServicesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "blobservices", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating TableServiceClient: %+v", err) + return nil, fmt.Errorf("instantiating BlobServicesClient: %+v", err) } - return &TableServiceClient{ + return &BlobServicesClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/constants.go new file mode 100644 index 000000000000..4f71305550f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/constants.go @@ -0,0 +1,571 @@ +package blobservices + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AllowedMethods string + +const ( + AllowedMethodsCONNECT AllowedMethods = "CONNECT" + AllowedMethodsDELETE AllowedMethods = "DELETE" + AllowedMethodsGET AllowedMethods = "GET" + AllowedMethodsHEAD AllowedMethods = "HEAD" + AllowedMethodsMERGE AllowedMethods = "MERGE" + AllowedMethodsOPTIONS AllowedMethods = "OPTIONS" + AllowedMethodsPATCH AllowedMethods = "PATCH" + AllowedMethodsPOST AllowedMethods = "POST" + AllowedMethodsPUT AllowedMethods = "PUT" + AllowedMethodsTRACE AllowedMethods = "TRACE" +) + +func PossibleValuesForAllowedMethods() []string { + return []string{ + string(AllowedMethodsCONNECT), + string(AllowedMethodsDELETE), + string(AllowedMethodsGET), + string(AllowedMethodsHEAD), + string(AllowedMethodsMERGE), + string(AllowedMethodsOPTIONS), + string(AllowedMethodsPATCH), + string(AllowedMethodsPOST), + string(AllowedMethodsPUT), + string(AllowedMethodsTRACE), + } +} + +func (s *AllowedMethods) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAllowedMethods(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAllowedMethods(input string) (*AllowedMethods, error) { + vals := map[string]AllowedMethods{ + "connect": AllowedMethodsCONNECT, + "delete": AllowedMethodsDELETE, + "get": AllowedMethodsGET, + "head": AllowedMethodsHEAD, + "merge": AllowedMethodsMERGE, + "options": AllowedMethodsOPTIONS, + "patch": AllowedMethodsPATCH, + "post": AllowedMethodsPOST, + "put": AllowedMethodsPUT, + "trace": AllowedMethodsTRACE, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AllowedMethods(input) + return &out, nil +} + +type ImmutabilityPolicyState string + +const ( + ImmutabilityPolicyStateLocked ImmutabilityPolicyState = "Locked" + ImmutabilityPolicyStateUnlocked ImmutabilityPolicyState = "Unlocked" +) + +func PossibleValuesForImmutabilityPolicyState() []string { + return []string{ + string(ImmutabilityPolicyStateLocked), + string(ImmutabilityPolicyStateUnlocked), + } +} + +func (s *ImmutabilityPolicyState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseImmutabilityPolicyState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseImmutabilityPolicyState(input string) (*ImmutabilityPolicyState, error) { + vals := map[string]ImmutabilityPolicyState{ + "locked": ImmutabilityPolicyStateLocked, + "unlocked": ImmutabilityPolicyStateUnlocked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ImmutabilityPolicyState(input) + return &out, nil +} + +type ImmutabilityPolicyUpdateType string + +const ( + ImmutabilityPolicyUpdateTypeExtend ImmutabilityPolicyUpdateType = "extend" + ImmutabilityPolicyUpdateTypeLock ImmutabilityPolicyUpdateType = "lock" + ImmutabilityPolicyUpdateTypePut ImmutabilityPolicyUpdateType = "put" +) + +func PossibleValuesForImmutabilityPolicyUpdateType() []string { + return []string{ + string(ImmutabilityPolicyUpdateTypeExtend), + string(ImmutabilityPolicyUpdateTypeLock), + string(ImmutabilityPolicyUpdateTypePut), + } +} + +func (s *ImmutabilityPolicyUpdateType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseImmutabilityPolicyUpdateType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseImmutabilityPolicyUpdateType(input string) (*ImmutabilityPolicyUpdateType, error) { + vals := map[string]ImmutabilityPolicyUpdateType{ + "extend": ImmutabilityPolicyUpdateTypeExtend, + "lock": ImmutabilityPolicyUpdateTypeLock, + "put": ImmutabilityPolicyUpdateTypePut, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ImmutabilityPolicyUpdateType(input) + return &out, nil +} + +type LeaseDuration string + +const ( + LeaseDurationFixed LeaseDuration = "Fixed" + LeaseDurationInfinite LeaseDuration = "Infinite" +) + +func PossibleValuesForLeaseDuration() []string { + return []string{ + string(LeaseDurationFixed), + string(LeaseDurationInfinite), + } +} + +func (s *LeaseDuration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLeaseDuration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLeaseDuration(input string) (*LeaseDuration, error) { + vals := map[string]LeaseDuration{ + "fixed": LeaseDurationFixed, + "infinite": LeaseDurationInfinite, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LeaseDuration(input) + return &out, nil +} + +type LeaseState string + +const ( + LeaseStateAvailable LeaseState = "Available" + LeaseStateBreaking LeaseState = "Breaking" + LeaseStateBroken LeaseState = "Broken" + LeaseStateExpired LeaseState = "Expired" + LeaseStateLeased LeaseState = "Leased" +) + +func PossibleValuesForLeaseState() []string { + return []string{ + string(LeaseStateAvailable), + string(LeaseStateBreaking), + string(LeaseStateBroken), + string(LeaseStateExpired), + string(LeaseStateLeased), + } +} + +func (s *LeaseState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLeaseState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLeaseState(input string) (*LeaseState, error) { + vals := map[string]LeaseState{ + "available": LeaseStateAvailable, + "breaking": LeaseStateBreaking, + "broken": LeaseStateBroken, + "expired": LeaseStateExpired, + "leased": LeaseStateLeased, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LeaseState(input) + return &out, nil +} + +type LeaseStatus string + +const ( + LeaseStatusLocked LeaseStatus = "Locked" + LeaseStatusUnlocked LeaseStatus = "Unlocked" +) + +func PossibleValuesForLeaseStatus() []string { + return []string{ + string(LeaseStatusLocked), + string(LeaseStatusUnlocked), + } +} + +func (s *LeaseStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLeaseStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLeaseStatus(input string) (*LeaseStatus, error) { + vals := map[string]LeaseStatus{ + "locked": LeaseStatusLocked, + "unlocked": LeaseStatusUnlocked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LeaseStatus(input) + return &out, nil +} + +type ListContainersInclude string + +const ( + ListContainersIncludeDeleted ListContainersInclude = "deleted" +) + +func PossibleValuesForListContainersInclude() []string { + return []string{ + string(ListContainersIncludeDeleted), + } +} + +func (s *ListContainersInclude) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseListContainersInclude(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseListContainersInclude(input string) (*ListContainersInclude, error) { + vals := map[string]ListContainersInclude{ + "deleted": ListContainersIncludeDeleted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ListContainersInclude(input) + return &out, nil +} + +type MigrationState string + +const ( + MigrationStateCompleted MigrationState = "Completed" + MigrationStateInProgress MigrationState = "InProgress" +) + +func PossibleValuesForMigrationState() []string { + return []string{ + string(MigrationStateCompleted), + string(MigrationStateInProgress), + } +} + +func (s *MigrationState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMigrationState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMigrationState(input string) (*MigrationState, error) { + vals := map[string]MigrationState{ + "completed": MigrationStateCompleted, + "inprogress": MigrationStateInProgress, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MigrationState(input) + return &out, nil +} + +type Name string + +const ( + NameAccessTimeTracking Name = "AccessTimeTracking" +) + +func PossibleValuesForName() []string { + return []string{ + string(NameAccessTimeTracking), + } +} + +func (s *Name) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseName(input string) (*Name, error) { + vals := map[string]Name{ + "accesstimetracking": NameAccessTimeTracking, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Name(input) + return &out, nil +} + +type PublicAccess string + +const ( + PublicAccessBlob PublicAccess = "Blob" + PublicAccessContainer PublicAccess = "Container" + PublicAccessNone PublicAccess = "None" +) + +func PossibleValuesForPublicAccess() []string { + return []string{ + string(PublicAccessBlob), + string(PublicAccessContainer), + string(PublicAccessNone), + } +} + +func (s *PublicAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicAccess(input string) (*PublicAccess, error) { + vals := map[string]PublicAccess{ + "blob": PublicAccessBlob, + "container": PublicAccessContainer, + "none": PublicAccessNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicAccess(input) + return &out, nil +} + +type SkuName string + +const ( + SkuNamePremiumLRS SkuName = "Premium_LRS" + SkuNamePremiumVTwoLRS SkuName = "PremiumV2_LRS" + SkuNamePremiumVTwoZRS SkuName = "PremiumV2_ZRS" + SkuNamePremiumZRS SkuName = "Premium_ZRS" + SkuNameStandardGRS SkuName = "Standard_GRS" + SkuNameStandardGZRS SkuName = "Standard_GZRS" + SkuNameStandardLRS SkuName = "Standard_LRS" + SkuNameStandardRAGRS SkuName = "Standard_RAGRS" + SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" + SkuNameStandardVTwoGRS SkuName = "StandardV2_GRS" + SkuNameStandardVTwoGZRS SkuName = "StandardV2_GZRS" + SkuNameStandardVTwoLRS SkuName = "StandardV2_LRS" + SkuNameStandardVTwoZRS SkuName = "StandardV2_ZRS" + SkuNameStandardZRS SkuName = "Standard_ZRS" +) + +func PossibleValuesForSkuName() []string { + return []string{ + string(SkuNamePremiumLRS), + string(SkuNamePremiumVTwoLRS), + string(SkuNamePremiumVTwoZRS), + string(SkuNamePremiumZRS), + string(SkuNameStandardGRS), + string(SkuNameStandardGZRS), + string(SkuNameStandardLRS), + string(SkuNameStandardRAGRS), + string(SkuNameStandardRAGZRS), + string(SkuNameStandardVTwoGRS), + string(SkuNameStandardVTwoGZRS), + string(SkuNameStandardVTwoLRS), + string(SkuNameStandardVTwoZRS), + string(SkuNameStandardZRS), + } +} + +func (s *SkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuName(input string) (*SkuName, error) { + vals := map[string]SkuName{ + "premium_lrs": SkuNamePremiumLRS, + "premiumv2_lrs": SkuNamePremiumVTwoLRS, + "premiumv2_zrs": SkuNamePremiumVTwoZRS, + "premium_zrs": SkuNamePremiumZRS, + "standard_grs": SkuNameStandardGRS, + "standard_gzrs": SkuNameStandardGZRS, + "standard_lrs": SkuNameStandardLRS, + "standard_ragrs": SkuNameStandardRAGRS, + "standard_ragzrs": SkuNameStandardRAGZRS, + "standardv2_grs": SkuNameStandardVTwoGRS, + "standardv2_gzrs": SkuNameStandardVTwoGZRS, + "standardv2_lrs": SkuNameStandardVTwoLRS, + "standardv2_zrs": SkuNameStandardVTwoZRS, + "standard_zrs": SkuNameStandardZRS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuName(input) + return &out, nil +} + +type SkuTier string + +const ( + SkuTierPremium SkuTier = "Premium" + SkuTierStandard SkuTier = "Standard" +) + +func PossibleValuesForSkuTier() []string { + return []string{ + string(SkuTierPremium), + string(SkuTierStandard), + } +} + +func (s *SkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuTier(input string) (*SkuTier, error) { + vals := map[string]SkuTier{ + "premium": SkuTierPremium, + "standard": SkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuTier(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_blobcontainerslist.go similarity index 55% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_blobcontainerslist.go index 595846418069..ba193fb244d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_blobcontainerslist.go @@ -1,4 +1,4 @@ -package blobcontainers +package blobservices import ( "context" @@ -13,40 +13,40 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListOperationResponse struct { +type BlobContainersListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ListContainerItem } -type ListCompleteResult struct { +type BlobContainersListCompleteResult struct { LatestHttpResponse *http.Response Items []ListContainerItem } -type ListOperationOptions struct { +type BlobContainersListOperationOptions struct { Filter *string Include *ListContainersInclude Maxpagesize *string } -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} +func DefaultBlobContainersListOperationOptions() BlobContainersListOperationOptions { + return BlobContainersListOperationOptions{} } -func (o ListOperationOptions) ToHeaders() *client.Headers { +func (o BlobContainersListOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} return &out } -func (o ListOperationOptions) ToOData() *odata.Query { +func (o BlobContainersListOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o ListOperationOptions) ToQuery() *client.QueryParams { +func (o BlobContainersListOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} if o.Filter != nil { out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) @@ -60,11 +60,11 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } -type ListCustomPager struct { +type BlobContainersListCustomPager struct { NextLink *odata.Link `json:"nextLink"` } -func (p *ListCustomPager) NextPageLink() *odata.Link { +func (p *BlobContainersListCustomPager) NextPageLink() *odata.Link { defer func() { p.NextLink = nil }() @@ -72,8 +72,8 @@ func (p *ListCustomPager) NextPageLink() *odata.Link { return p.NextLink } -// List ... -func (c BlobContainersClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { +// BlobContainersList ... +func (c BlobServicesClient) BlobContainersList(ctx context.Context, id commonids.StorageAccountId, options BlobContainersListOperationOptions) (result BlobContainersListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -81,7 +81,7 @@ func (c BlobContainersClient) List(ctx context.Context, id commonids.StorageAcco }, HttpMethod: http.MethodGet, OptionsObject: options, - Pager: &ListCustomPager{}, + Pager: &BlobContainersListCustomPager{}, Path: fmt.Sprintf("%s/blobServices/default/containers", id.ID()), } @@ -112,16 +112,16 @@ func (c BlobContainersClient) List(ctx context.Context, id commonids.StorageAcco return } -// ListComplete retrieves all the results into a single object -func (c BlobContainersClient) ListComplete(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, ListContainerItemOperationPredicate{}) +// BlobContainersListComplete retrieves all the results into a single object +func (c BlobServicesClient) BlobContainersListComplete(ctx context.Context, id commonids.StorageAccountId, options BlobContainersListOperationOptions) (BlobContainersListCompleteResult, error) { + return c.BlobContainersListCompleteMatchingPredicate(ctx, id, options, ListContainerItemOperationPredicate{}) } -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c BlobContainersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions, predicate ListContainerItemOperationPredicate) (result ListCompleteResult, err error) { +// BlobContainersListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c BlobServicesClient) BlobContainersListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options BlobContainersListOperationOptions, predicate ListContainerItemOperationPredicate) (result BlobContainersListCompleteResult, err error) { items := make([]ListContainerItem, 0) - resp, err := c.List(ctx, id, options) + resp, err := c.BlobContainersList(ctx, id, options) if err != nil { result.LatestHttpResponse = resp.HttpResponse err = fmt.Errorf("loading results: %+v", err) @@ -135,7 +135,7 @@ func (c BlobContainersClient) ListCompleteMatchingPredicate(ctx context.Context, } } - result = ListCompleteResult{ + result = BlobContainersListCompleteResult{ LatestHttpResponse: resp.HttpResponse, Items: items, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_getserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_getserviceproperties.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_getserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_getserviceproperties.go index e576638e6369..b587db4aa161 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_getserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_getserviceproperties.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices import ( "context" @@ -20,7 +20,7 @@ type GetServicePropertiesOperationResponse struct { } // GetServiceProperties ... -func (c BlobServiceClient) GetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result GetServicePropertiesOperationResponse, err error) { +func (c BlobServicesClient) GetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result GetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_list.go similarity index 70% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_list.go index 69aa3a2df352..ff8f1be2cdcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_list.go @@ -1,4 +1,4 @@ -package deletedaccounts +package blobservices import ( "context" @@ -16,12 +16,12 @@ import ( type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]DeletedAccount + Model *[]BlobServiceProperties } type ListCompleteResult struct { LatestHttpResponse *http.Response - Items []DeletedAccount + Items []BlobServiceProperties } type ListCustomPager struct { @@ -37,7 +37,7 @@ func (p *ListCustomPager) NextPageLink() *odata.Link { } // List ... -func (c DeletedAccountsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { +func (c BlobServicesClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -45,7 +45,7 @@ func (c DeletedAccountsClient) List(ctx context.Context, id commonids.Subscripti }, HttpMethod: http.MethodGet, Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Storage/deletedAccounts", id.ID()), + Path: fmt.Sprintf("%s/blobServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) @@ -64,7 +64,7 @@ func (c DeletedAccountsClient) List(ctx context.Context, id commonids.Subscripti } var values struct { - Values *[]DeletedAccount `json:"value"` + Values *[]BlobServiceProperties `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -76,13 +76,13 @@ func (c DeletedAccountsClient) List(ctx context.Context, id commonids.Subscripti } // ListComplete retrieves all the results into a single object -func (c DeletedAccountsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, DeletedAccountOperationPredicate{}) +func (c BlobServicesClient) ListComplete(ctx context.Context, id commonids.StorageAccountId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, BlobServicePropertiesOperationPredicate{}) } // ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c DeletedAccountsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DeletedAccountOperationPredicate) (result ListCompleteResult, err error) { - items := make([]DeletedAccount, 0) +func (c BlobServicesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate BlobServicePropertiesOperationPredicate) (result ListCompleteResult, err error) { + items := make([]BlobServiceProperties, 0) resp, err := c.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_setserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_setserviceproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_setserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_setserviceproperties.go index 48c8c11a18db..a9875d4a5424 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/method_setserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/method_setserviceproperties.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices import ( "context" @@ -20,7 +20,7 @@ type SetServicePropertiesOperationResponse struct { } // SetServiceProperties ... -func (c BlobServiceClient) SetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input BlobServiceProperties) (result SetServicePropertiesOperationResponse, err error) { +func (c BlobServicesClient) SetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input BlobServiceProperties) (result SetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_blobserviceproperties.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_blobserviceproperties.go index c676064f8941..ccee65a51320 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_blobserviceproperties.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobservicepropertiesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_blobservicepropertiesproperties.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobservicepropertiesproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_blobservicepropertiesproperties.go index 565dbee4b446..6c35c581a85c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobservicepropertiesproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_blobservicepropertiesproperties.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_changefeed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_changefeed.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_changefeed.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_changefeed.go index 6e8dca93c6c8..572652df5cbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_changefeed.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_changefeed.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_containerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_containerproperties.go new file mode 100644 index 000000000000..d33e77b9f56e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_containerproperties.go @@ -0,0 +1,56 @@ +package blobservices + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerProperties struct { + DefaultEncryptionScope *string `json:"defaultEncryptionScope,omitempty"` + Deleted *bool `json:"deleted,omitempty"` + DeletedTime *string `json:"deletedTime,omitempty"` + DenyEncryptionScopeOverride *bool `json:"denyEncryptionScopeOverride,omitempty"` + EnableNfsV3AllSquash *bool `json:"enableNfsV3AllSquash,omitempty"` + EnableNfsV3RootSquash *bool `json:"enableNfsV3RootSquash,omitempty"` + HasImmutabilityPolicy *bool `json:"hasImmutabilityPolicy,omitempty"` + HasLegalHold *bool `json:"hasLegalHold,omitempty"` + ImmutabilityPolicy *ImmutabilityPolicyProperties `json:"immutabilityPolicy,omitempty"` + ImmutableStorageWithVersioning *ImmutableStorageWithVersioning `json:"immutableStorageWithVersioning,omitempty"` + LastModifiedTime *string `json:"lastModifiedTime,omitempty"` + LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty"` + LeaseState *LeaseState `json:"leaseState,omitempty"` + LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty"` + LegalHold *LegalHoldProperties `json:"legalHold,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + PublicAccess *PublicAccess `json:"publicAccess,omitempty"` + RemainingRetentionDays *int64 `json:"remainingRetentionDays,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (o *ContainerProperties) GetDeletedTimeAsTime() (*time.Time, error) { + if o.DeletedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.DeletedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ContainerProperties) SetDeletedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.DeletedTime = &formatted +} + +func (o *ContainerProperties) GetLastModifiedTimeAsTime() (*time.Time, error) { + if o.LastModifiedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastModifiedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ContainerProperties) SetLastModifiedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastModifiedTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_corsrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_corsrule.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_corsrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_corsrule.go index bede68c08d3f..cc57bc13a415 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_corsrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_corsrule.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_corsrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_corsrules.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_corsrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_corsrules.go index 03c67ca46494..98758d06c71e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_corsrules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_corsrules.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_deleteretentionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_deleteretentionpolicy.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_deleteretentionpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_deleteretentionpolicy.go index 9750f05ce3fe..43a37df4f620 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_deleteretentionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_deleteretentionpolicy.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutabilitypolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutabilitypolicyproperties.go new file mode 100644 index 000000000000..99e9d7fc4939 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutabilitypolicyproperties.go @@ -0,0 +1,10 @@ +package blobservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImmutabilityPolicyProperties struct { + Etag *string `json:"etag,omitempty"` + Properties *ImmutabilityPolicyProperty `json:"properties,omitempty"` + UpdateHistory *[]UpdateHistoryProperty `json:"updateHistory,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutabilitypolicyproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutabilitypolicyproperty.go new file mode 100644 index 000000000000..e9c2cd6dd941 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutabilitypolicyproperty.go @@ -0,0 +1,11 @@ +package blobservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImmutabilityPolicyProperty struct { + AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"` + AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` + ImmutabilityPeriodSinceCreationInDays *int64 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` + State *ImmutabilityPolicyState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutablestoragewithversioning.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutablestoragewithversioning.go new file mode 100644 index 000000000000..6488157cd7fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_immutablestoragewithversioning.go @@ -0,0 +1,28 @@ +package blobservices + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImmutableStorageWithVersioning struct { + Enabled *bool `json:"enabled,omitempty"` + MigrationState *MigrationState `json:"migrationState,omitempty"` + TimeStamp *string `json:"timeStamp,omitempty"` +} + +func (o *ImmutableStorageWithVersioning) GetTimeStampAsTime() (*time.Time, error) { + if o.TimeStamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.TimeStamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *ImmutableStorageWithVersioning) SetTimeStampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.TimeStamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_lastaccesstimetrackingpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_lastaccesstimetrackingpolicy.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_lastaccesstimetrackingpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_lastaccesstimetrackingpolicy.go index b9d33e43056d..1e0542089f81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_lastaccesstimetrackingpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_lastaccesstimetrackingpolicy.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_legalholdproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_legalholdproperties.go new file mode 100644 index 000000000000..8178598f69e7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_legalholdproperties.go @@ -0,0 +1,10 @@ +package blobservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LegalHoldProperties struct { + HasLegalHold *bool `json:"hasLegalHold,omitempty"` + ProtectedAppendWritesHistory *ProtectedAppendWritesHistory `json:"protectedAppendWritesHistory,omitempty"` + Tags *[]TagProperty `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_listcontaineritem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_listcontaineritem.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_listcontaineritem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_listcontaineritem.go index 1f394742be36..494c6245aceb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_listcontaineritem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_listcontaineritem.go @@ -1,4 +1,4 @@ -package blobcontainers +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_protectedappendwriteshistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_protectedappendwriteshistory.go new file mode 100644 index 000000000000..ce139808b4eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_protectedappendwriteshistory.go @@ -0,0 +1,27 @@ +package blobservices + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProtectedAppendWritesHistory struct { + AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` + Timestamp *string `json:"timestamp,omitempty"` +} + +func (o *ProtectedAppendWritesHistory) GetTimestampAsTime() (*time.Time, error) { + if o.Timestamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Timestamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *ProtectedAppendWritesHistory) SetTimestampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Timestamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_restorepolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_restorepolicyproperties.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_restorepolicyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_restorepolicyproperties.go index d0ec08e8ee1c..add3083b68eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_restorepolicyproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_restorepolicyproperties.go @@ -1,4 +1,4 @@ -package blobservice +package blobservices import ( "time" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_sku.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_sku.go index 5f70263648d9..b5f491b0641d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_sku.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_sku.go @@ -1,4 +1,4 @@ -package fileservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_tagproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_tagproperty.go new file mode 100644 index 000000000000..9a983882f5e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_tagproperty.go @@ -0,0 +1,30 @@ +package blobservices + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagProperty struct { + ObjectIdentifier *string `json:"objectIdentifier,omitempty"` + Tag *string `json:"tag,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + Timestamp *string `json:"timestamp,omitempty"` + Upn *string `json:"upn,omitempty"` +} + +func (o *TagProperty) GetTimestampAsTime() (*time.Time, error) { + if o.Timestamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Timestamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *TagProperty) SetTimestampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Timestamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_updatehistoryproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_updatehistoryproperty.go new file mode 100644 index 000000000000..1537222e9ebd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/model_updatehistoryproperty.go @@ -0,0 +1,33 @@ +package blobservices + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateHistoryProperty struct { + AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"` + AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` + ImmutabilityPeriodSinceCreationInDays *int64 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` + ObjectIdentifier *string `json:"objectIdentifier,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + Timestamp *string `json:"timestamp,omitempty"` + Update *ImmutabilityPolicyUpdateType `json:"update,omitempty"` + Upn *string `json:"upn,omitempty"` +} + +func (o *UpdateHistoryProperty) GetTimestampAsTime() (*time.Time, error) { + if o.Timestamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.Timestamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *UpdateHistoryProperty) SetTimestampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.Timestamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/predicates.go similarity index 59% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/predicates.go index b31d0087277b..f8f574f6ce68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/predicates.go @@ -1,8 +1,31 @@ -package blobcontainers +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type BlobServicePropertiesOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p BlobServicePropertiesOperationPredicate) Matches(input BlobServiceProperties) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + type ListContainerItemOperationPredicate struct { Etag *string Id *string diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/version.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/version.go index 62b58e9aa8f6..71550f3571e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices/version.go @@ -1,10 +1,10 @@ -package blobservice +package blobservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/blobservice/2023-05-01" + return "hashicorp/go-azure-sdk/blobservices/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/client.go new file mode 100644 index 000000000000..310ef05b1721 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/client.go @@ -0,0 +1,217 @@ +package v2025_06_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/storage/2025-06-01/blobcontainers" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +type Client struct { + BlobContainers *blobcontainers.BlobContainersClient + BlobInventoryPolicies *blobinventorypolicies.BlobInventoryPoliciesClient + BlobServices *blobservices.BlobServicesClient + DeletedAccounts *deletedaccounts.DeletedAccountsClient + EncryptionScopes *encryptionscopes.EncryptionScopesClient + FileServiceUsageOperationGroup *fileserviceusageoperationgroup.FileServiceUsageOperationGroupClient + FileServices *fileservices.FileServicesClient + FileShares *fileshares.FileSharesClient + ImmutabilityPolicies *immutabilitypolicies.ImmutabilityPoliciesClient + LocalUserOperationGroup *localuseroperationgroup.LocalUserOperationGroupClient + ManagementPolicies *managementpolicies.ManagementPoliciesClient + NetworkSecurityPerimeterConfigurations *networksecurityperimeterconfigurations.NetworkSecurityPerimeterConfigurationsClient + ObjectReplicationPolicyOperationGroup *objectreplicationpolicyoperationgroup.ObjectReplicationPolicyOperationGroupClient + Openapis *openapis.OpenapisClient + PrivateEndpointConnections *privateendpointconnections.PrivateEndpointConnectionsClient + QueueServices *queueservices.QueueServicesClient + StorageAccountMigrations *storageaccountmigrations.StorageAccountMigrationsClient + StorageAccounts *storageaccounts.StorageAccountsClient + StorageQueues *storagequeues.StorageQueuesClient + StorageTaskAssignments *storagetaskassignments.StorageTaskAssignmentsClient + TableServices *tableservices.TableServicesClient + Tables *tables.TablesClient +} + +func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + blobContainersClient, err := blobcontainers.NewBlobContainersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BlobContainers client: %+v", err) + } + configureFunc(blobContainersClient.Client) + + blobInventoryPoliciesClient, err := blobinventorypolicies.NewBlobInventoryPoliciesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BlobInventoryPolicies client: %+v", err) + } + configureFunc(blobInventoryPoliciesClient.Client) + + blobServicesClient, err := blobservices.NewBlobServicesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BlobServices client: %+v", err) + } + configureFunc(blobServicesClient.Client) + + deletedAccountsClient, err := deletedaccounts.NewDeletedAccountsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building DeletedAccounts client: %+v", err) + } + configureFunc(deletedAccountsClient.Client) + + encryptionScopesClient, err := encryptionscopes.NewEncryptionScopesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building EncryptionScopes client: %+v", err) + } + configureFunc(encryptionScopesClient.Client) + + fileServiceUsageOperationGroupClient, err := fileserviceusageoperationgroup.NewFileServiceUsageOperationGroupClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building FileServiceUsageOperationGroup client: %+v", err) + } + configureFunc(fileServiceUsageOperationGroupClient.Client) + + fileServicesClient, err := fileservices.NewFileServicesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building FileServices client: %+v", err) + } + configureFunc(fileServicesClient.Client) + + fileSharesClient, err := fileshares.NewFileSharesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building FileShares client: %+v", err) + } + configureFunc(fileSharesClient.Client) + + immutabilityPoliciesClient, err := immutabilitypolicies.NewImmutabilityPoliciesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ImmutabilityPolicies client: %+v", err) + } + configureFunc(immutabilityPoliciesClient.Client) + + localUserOperationGroupClient, err := localuseroperationgroup.NewLocalUserOperationGroupClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building LocalUserOperationGroup client: %+v", err) + } + configureFunc(localUserOperationGroupClient.Client) + + managementPoliciesClient, err := managementpolicies.NewManagementPoliciesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ManagementPolicies client: %+v", err) + } + configureFunc(managementPoliciesClient.Client) + + networkSecurityPerimeterConfigurationsClient, err := networksecurityperimeterconfigurations.NewNetworkSecurityPerimeterConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkSecurityPerimeterConfigurations client: %+v", err) + } + configureFunc(networkSecurityPerimeterConfigurationsClient.Client) + + objectReplicationPolicyOperationGroupClient, err := objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyOperationGroupClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ObjectReplicationPolicyOperationGroup client: %+v", err) + } + configureFunc(objectReplicationPolicyOperationGroupClient.Client) + + openapisClient, err := openapis.NewOpenapisClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Openapis client: %+v", err) + } + configureFunc(openapisClient.Client) + + privateEndpointConnectionsClient, err := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PrivateEndpointConnections client: %+v", err) + } + configureFunc(privateEndpointConnectionsClient.Client) + + queueServicesClient, err := queueservices.NewQueueServicesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building QueueServices client: %+v", err) + } + configureFunc(queueServicesClient.Client) + + storageAccountMigrationsClient, err := storageaccountmigrations.NewStorageAccountMigrationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building StorageAccountMigrations client: %+v", err) + } + configureFunc(storageAccountMigrationsClient.Client) + + storageAccountsClient, err := storageaccounts.NewStorageAccountsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building StorageAccounts client: %+v", err) + } + configureFunc(storageAccountsClient.Client) + + storageQueuesClient, err := storagequeues.NewStorageQueuesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building StorageQueues client: %+v", err) + } + configureFunc(storageQueuesClient.Client) + + storageTaskAssignmentsClient, err := storagetaskassignments.NewStorageTaskAssignmentsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building StorageTaskAssignments client: %+v", err) + } + configureFunc(storageTaskAssignmentsClient.Client) + + tableServicesClient, err := tableservices.NewTableServicesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building TableServices client: %+v", err) + } + configureFunc(tableServicesClient.Client) + + tablesClient, err := tables.NewTablesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Tables client: %+v", err) + } + configureFunc(tablesClient.Client) + + return &Client{ + BlobContainers: blobContainersClient, + BlobInventoryPolicies: blobInventoryPoliciesClient, + BlobServices: blobServicesClient, + DeletedAccounts: deletedAccountsClient, + EncryptionScopes: encryptionScopesClient, + FileServiceUsageOperationGroup: fileServiceUsageOperationGroupClient, + FileServices: fileServicesClient, + FileShares: fileSharesClient, + ImmutabilityPolicies: immutabilityPoliciesClient, + LocalUserOperationGroup: localUserOperationGroupClient, + ManagementPolicies: managementPoliciesClient, + NetworkSecurityPerimeterConfigurations: networkSecurityPerimeterConfigurationsClient, + ObjectReplicationPolicyOperationGroup: objectReplicationPolicyOperationGroupClient, + Openapis: openapisClient, + PrivateEndpointConnections: privateEndpointConnectionsClient, + QueueServices: queueServicesClient, + StorageAccountMigrations: storageAccountMigrationsClient, + StorageAccounts: storageAccountsClient, + StorageQueues: storageQueuesClient, + StorageTaskAssignments: storageTaskAssignmentsClient, + TableServices: tableServicesClient, + Tables: tablesClient, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/README.md similarity index 62% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/README.md index 79e76cfb39f2..cd83ae61882a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/README.md @@ -1,15 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts` Documentation -The `deletedaccounts` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `deletedaccounts` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts" ``` @@ -35,20 +34,3 @@ if model := read.Model; model != nil { // do something with the model/response object } ``` - - -### Example Usage: `DeletedAccountsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/id_deletedaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/id_deletedaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/id_deletedaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/id_deletedaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/model_deletedaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/model_deletedaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/model_deletedaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/model_deletedaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/model_deletedaccountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/model_deletedaccountproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/model_deletedaccountproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/model_deletedaccountproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/version.go index 54aeb5a70123..318cd138f44b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts/version.go @@ -3,8 +3,8 @@ package deletedaccounts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/deletedaccounts/2023-05-01" + return "hashicorp/go-azure-sdk/deletedaccounts/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/README.md index 754cac7f2684..7f94183c0c2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes` Documentation -The `encryptionscopes` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `encryptionscopes` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/id_encryptionscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/id_encryptionscope.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/id_encryptionscope.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/id_encryptionscope.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_patch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_patch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_patch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_put.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/method_put.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/method_put.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/model_encryptionscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/model_encryptionscope.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/model_encryptionscope.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/model_encryptionscope.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/model_encryptionscopekeyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/model_encryptionscopekeyvaultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/model_encryptionscopekeyvaultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/model_encryptionscopekeyvaultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/model_encryptionscopeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/model_encryptionscopeproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/model_encryptionscopeproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/model_encryptionscopeproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/version.go index 1c3733015a46..a9304e60815b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes/version.go @@ -3,8 +3,8 @@ package encryptionscopes // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/encryptionscopes/2023-05-01" + return "hashicorp/go-azure-sdk/encryptionscopes/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/README.md new file mode 100644 index 000000000000..5180bb1ddcf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/README.md @@ -0,0 +1,91 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices` Documentation + +The `fileservices` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices" +``` + + +### Client Initialization + +```go +client := fileservices.NewFileServicesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FileServicesClient.FileSharesList` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.FileSharesList(ctx, id, fileservices.DefaultFileSharesListOperationOptions())` can be used to do batched pagination +items, err := client.FileSharesListComplete(ctx, id, fileservices.DefaultFileSharesListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `FileServicesClient.GetServiceProperties` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +read, err := client.GetServiceProperties(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FileServicesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FileServicesClient.SetServiceProperties` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +payload := fileservices.FileServiceProperties{ + // ... +} + + +read, err := client.SetServiceProperties(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/client.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/client.go index 2c8a13a7cbf8..899af76929b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/client.go @@ -1,4 +1,4 @@ -package queueservice +package fileservices import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type QueueServiceClient struct { +type FileServicesClient struct { Client *resourcemanager.Client } -func NewQueueServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*QueueServiceClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "queueservice", defaultApiVersion) +func NewFileServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*FileServicesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "fileservices", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating QueueServiceClient: %+v", err) + return nil, fmt.Errorf("instantiating FileServicesClient: %+v", err) } - return &QueueServiceClient{ + return &FileServicesClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/constants.go new file mode 100644 index 000000000000..3384945ad6c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/constants.go @@ -0,0 +1,457 @@ +package fileservices + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AllowedMethods string + +const ( + AllowedMethodsCONNECT AllowedMethods = "CONNECT" + AllowedMethodsDELETE AllowedMethods = "DELETE" + AllowedMethodsGET AllowedMethods = "GET" + AllowedMethodsHEAD AllowedMethods = "HEAD" + AllowedMethodsMERGE AllowedMethods = "MERGE" + AllowedMethodsOPTIONS AllowedMethods = "OPTIONS" + AllowedMethodsPATCH AllowedMethods = "PATCH" + AllowedMethodsPOST AllowedMethods = "POST" + AllowedMethodsPUT AllowedMethods = "PUT" + AllowedMethodsTRACE AllowedMethods = "TRACE" +) + +func PossibleValuesForAllowedMethods() []string { + return []string{ + string(AllowedMethodsCONNECT), + string(AllowedMethodsDELETE), + string(AllowedMethodsGET), + string(AllowedMethodsHEAD), + string(AllowedMethodsMERGE), + string(AllowedMethodsOPTIONS), + string(AllowedMethodsPATCH), + string(AllowedMethodsPOST), + string(AllowedMethodsPUT), + string(AllowedMethodsTRACE), + } +} + +func (s *AllowedMethods) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAllowedMethods(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAllowedMethods(input string) (*AllowedMethods, error) { + vals := map[string]AllowedMethods{ + "connect": AllowedMethodsCONNECT, + "delete": AllowedMethodsDELETE, + "get": AllowedMethodsGET, + "head": AllowedMethodsHEAD, + "merge": AllowedMethodsMERGE, + "options": AllowedMethodsOPTIONS, + "patch": AllowedMethodsPATCH, + "post": AllowedMethodsPOST, + "put": AllowedMethodsPUT, + "trace": AllowedMethodsTRACE, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AllowedMethods(input) + return &out, nil +} + +type EnabledProtocols string + +const ( + EnabledProtocolsNFS EnabledProtocols = "NFS" + EnabledProtocolsSMB EnabledProtocols = "SMB" +) + +func PossibleValuesForEnabledProtocols() []string { + return []string{ + string(EnabledProtocolsNFS), + string(EnabledProtocolsSMB), + } +} + +func (s *EnabledProtocols) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEnabledProtocols(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEnabledProtocols(input string) (*EnabledProtocols, error) { + vals := map[string]EnabledProtocols{ + "nfs": EnabledProtocolsNFS, + "smb": EnabledProtocolsSMB, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EnabledProtocols(input) + return &out, nil +} + +type LeaseDuration string + +const ( + LeaseDurationFixed LeaseDuration = "Fixed" + LeaseDurationInfinite LeaseDuration = "Infinite" +) + +func PossibleValuesForLeaseDuration() []string { + return []string{ + string(LeaseDurationFixed), + string(LeaseDurationInfinite), + } +} + +func (s *LeaseDuration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLeaseDuration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLeaseDuration(input string) (*LeaseDuration, error) { + vals := map[string]LeaseDuration{ + "fixed": LeaseDurationFixed, + "infinite": LeaseDurationInfinite, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LeaseDuration(input) + return &out, nil +} + +type LeaseState string + +const ( + LeaseStateAvailable LeaseState = "Available" + LeaseStateBreaking LeaseState = "Breaking" + LeaseStateBroken LeaseState = "Broken" + LeaseStateExpired LeaseState = "Expired" + LeaseStateLeased LeaseState = "Leased" +) + +func PossibleValuesForLeaseState() []string { + return []string{ + string(LeaseStateAvailable), + string(LeaseStateBreaking), + string(LeaseStateBroken), + string(LeaseStateExpired), + string(LeaseStateLeased), + } +} + +func (s *LeaseState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLeaseState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLeaseState(input string) (*LeaseState, error) { + vals := map[string]LeaseState{ + "available": LeaseStateAvailable, + "breaking": LeaseStateBreaking, + "broken": LeaseStateBroken, + "expired": LeaseStateExpired, + "leased": LeaseStateLeased, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LeaseState(input) + return &out, nil +} + +type LeaseStatus string + +const ( + LeaseStatusLocked LeaseStatus = "Locked" + LeaseStatusUnlocked LeaseStatus = "Unlocked" +) + +func PossibleValuesForLeaseStatus() []string { + return []string{ + string(LeaseStatusLocked), + string(LeaseStatusUnlocked), + } +} + +func (s *LeaseStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLeaseStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLeaseStatus(input string) (*LeaseStatus, error) { + vals := map[string]LeaseStatus{ + "locked": LeaseStatusLocked, + "unlocked": LeaseStatusUnlocked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LeaseStatus(input) + return &out, nil +} + +type RootSquashType string + +const ( + RootSquashTypeAllSquash RootSquashType = "AllSquash" + RootSquashTypeNoRootSquash RootSquashType = "NoRootSquash" + RootSquashTypeRootSquash RootSquashType = "RootSquash" +) + +func PossibleValuesForRootSquashType() []string { + return []string{ + string(RootSquashTypeAllSquash), + string(RootSquashTypeNoRootSquash), + string(RootSquashTypeRootSquash), + } +} + +func (s *RootSquashType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRootSquashType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRootSquashType(input string) (*RootSquashType, error) { + vals := map[string]RootSquashType{ + "allsquash": RootSquashTypeAllSquash, + "norootsquash": RootSquashTypeNoRootSquash, + "rootsquash": RootSquashTypeRootSquash, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RootSquashType(input) + return &out, nil +} + +type ShareAccessTier string + +const ( + ShareAccessTierCool ShareAccessTier = "Cool" + ShareAccessTierHot ShareAccessTier = "Hot" + ShareAccessTierPremium ShareAccessTier = "Premium" + ShareAccessTierTransactionOptimized ShareAccessTier = "TransactionOptimized" +) + +func PossibleValuesForShareAccessTier() []string { + return []string{ + string(ShareAccessTierCool), + string(ShareAccessTierHot), + string(ShareAccessTierPremium), + string(ShareAccessTierTransactionOptimized), + } +} + +func (s *ShareAccessTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseShareAccessTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseShareAccessTier(input string) (*ShareAccessTier, error) { + vals := map[string]ShareAccessTier{ + "cool": ShareAccessTierCool, + "hot": ShareAccessTierHot, + "premium": ShareAccessTierPremium, + "transactionoptimized": ShareAccessTierTransactionOptimized, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ShareAccessTier(input) + return &out, nil +} + +type SkuName string + +const ( + SkuNamePremiumLRS SkuName = "Premium_LRS" + SkuNamePremiumVTwoLRS SkuName = "PremiumV2_LRS" + SkuNamePremiumVTwoZRS SkuName = "PremiumV2_ZRS" + SkuNamePremiumZRS SkuName = "Premium_ZRS" + SkuNameStandardGRS SkuName = "Standard_GRS" + SkuNameStandardGZRS SkuName = "Standard_GZRS" + SkuNameStandardLRS SkuName = "Standard_LRS" + SkuNameStandardRAGRS SkuName = "Standard_RAGRS" + SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" + SkuNameStandardVTwoGRS SkuName = "StandardV2_GRS" + SkuNameStandardVTwoGZRS SkuName = "StandardV2_GZRS" + SkuNameStandardVTwoLRS SkuName = "StandardV2_LRS" + SkuNameStandardVTwoZRS SkuName = "StandardV2_ZRS" + SkuNameStandardZRS SkuName = "Standard_ZRS" +) + +func PossibleValuesForSkuName() []string { + return []string{ + string(SkuNamePremiumLRS), + string(SkuNamePremiumVTwoLRS), + string(SkuNamePremiumVTwoZRS), + string(SkuNamePremiumZRS), + string(SkuNameStandardGRS), + string(SkuNameStandardGZRS), + string(SkuNameStandardLRS), + string(SkuNameStandardRAGRS), + string(SkuNameStandardRAGZRS), + string(SkuNameStandardVTwoGRS), + string(SkuNameStandardVTwoGZRS), + string(SkuNameStandardVTwoLRS), + string(SkuNameStandardVTwoZRS), + string(SkuNameStandardZRS), + } +} + +func (s *SkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuName(input string) (*SkuName, error) { + vals := map[string]SkuName{ + "premium_lrs": SkuNamePremiumLRS, + "premiumv2_lrs": SkuNamePremiumVTwoLRS, + "premiumv2_zrs": SkuNamePremiumVTwoZRS, + "premium_zrs": SkuNamePremiumZRS, + "standard_grs": SkuNameStandardGRS, + "standard_gzrs": SkuNameStandardGZRS, + "standard_lrs": SkuNameStandardLRS, + "standard_ragrs": SkuNameStandardRAGRS, + "standard_ragzrs": SkuNameStandardRAGZRS, + "standardv2_grs": SkuNameStandardVTwoGRS, + "standardv2_gzrs": SkuNameStandardVTwoGZRS, + "standardv2_lrs": SkuNameStandardVTwoLRS, + "standardv2_zrs": SkuNameStandardVTwoZRS, + "standard_zrs": SkuNameStandardZRS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuName(input) + return &out, nil +} + +type SkuTier string + +const ( + SkuTierPremium SkuTier = "Premium" + SkuTierStandard SkuTier = "Standard" +) + +func PossibleValuesForSkuTier() []string { + return []string{ + string(SkuTierPremium), + string(SkuTierStandard), + } +} + +func (s *SkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuTier(input string) (*SkuTier, error) { + vals := map[string]SkuTier{ + "premium": SkuTierPremium, + "standard": SkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuTier(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_fileshareslist.go similarity index 56% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_fileshareslist.go index 90f4e9bad07d..dc3f9ae73c59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_fileshareslist.go @@ -1,4 +1,4 @@ -package fileshares +package fileservices import ( "context" @@ -13,40 +13,40 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListOperationResponse struct { +type FileSharesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]FileShareItem } -type ListCompleteResult struct { +type FileSharesListCompleteResult struct { LatestHttpResponse *http.Response Items []FileShareItem } -type ListOperationOptions struct { +type FileSharesListOperationOptions struct { Expand *string Filter *string Maxpagesize *string } -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} +func DefaultFileSharesListOperationOptions() FileSharesListOperationOptions { + return FileSharesListOperationOptions{} } -func (o ListOperationOptions) ToHeaders() *client.Headers { +func (o FileSharesListOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} return &out } -func (o ListOperationOptions) ToOData() *odata.Query { +func (o FileSharesListOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o ListOperationOptions) ToQuery() *client.QueryParams { +func (o FileSharesListOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} if o.Expand != nil { out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) @@ -60,11 +60,11 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } -type ListCustomPager struct { +type FileSharesListCustomPager struct { NextLink *odata.Link `json:"nextLink"` } -func (p *ListCustomPager) NextPageLink() *odata.Link { +func (p *FileSharesListCustomPager) NextPageLink() *odata.Link { defer func() { p.NextLink = nil }() @@ -72,8 +72,8 @@ func (p *ListCustomPager) NextPageLink() *odata.Link { return p.NextLink } -// List ... -func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { +// FileSharesList ... +func (c FileServicesClient) FileSharesList(ctx context.Context, id commonids.StorageAccountId, options FileSharesListOperationOptions) (result FileSharesListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -81,7 +81,7 @@ func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountI }, HttpMethod: http.MethodGet, OptionsObject: options, - Pager: &ListCustomPager{}, + Pager: &FileSharesListCustomPager{}, Path: fmt.Sprintf("%s/fileServices/default/shares", id.ID()), } @@ -112,16 +112,16 @@ func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountI return } -// ListComplete retrieves all the results into a single object -func (c FileSharesClient) ListComplete(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, FileShareItemOperationPredicate{}) +// FileSharesListComplete retrieves all the results into a single object +func (c FileServicesClient) FileSharesListComplete(ctx context.Context, id commonids.StorageAccountId, options FileSharesListOperationOptions) (FileSharesListCompleteResult, error) { + return c.FileSharesListCompleteMatchingPredicate(ctx, id, options, FileShareItemOperationPredicate{}) } -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c FileSharesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions, predicate FileShareItemOperationPredicate) (result ListCompleteResult, err error) { +// FileSharesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FileServicesClient) FileSharesListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options FileSharesListOperationOptions, predicate FileShareItemOperationPredicate) (result FileSharesListCompleteResult, err error) { items := make([]FileShareItem, 0) - resp, err := c.List(ctx, id, options) + resp, err := c.FileSharesList(ctx, id, options) if err != nil { result.LatestHttpResponse = resp.HttpResponse err = fmt.Errorf("loading results: %+v", err) @@ -135,7 +135,7 @@ func (c FileSharesClient) ListCompleteMatchingPredicate(ctx context.Context, id } } - result = ListCompleteResult{ + result = FileSharesListCompleteResult{ LatestHttpResponse: resp.HttpResponse, Items: items, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_getserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_getserviceproperties.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_getserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_getserviceproperties.go index ca53fe209094..08692b5df29a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_getserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_getserviceproperties.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices import ( "context" @@ -20,7 +20,7 @@ type GetServicePropertiesOperationResponse struct { } // GetServiceProperties ... -func (c FileServiceClient) GetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result GetServicePropertiesOperationResponse, err error) { +func (c FileServicesClient) GetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result GetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_list.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_list.go index 981e8f7a7518..2d3d63604a35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_list.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices import ( "context" @@ -20,7 +20,7 @@ type ListOperationResponse struct { } // List ... -func (c FileServiceClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { +func (c FileServicesClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_setserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_setserviceproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_setserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_setserviceproperties.go index 71205c1011a2..878b03df13f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/method_setserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/method_setserviceproperties.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices import ( "context" @@ -20,7 +20,7 @@ type SetServicePropertiesOperationResponse struct { } // SetServiceProperties ... -func (c FileServiceClient) SetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input FileServiceProperties) (result SetServicePropertiesOperationResponse, err error) { +func (c FileServicesClient) SetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input FileServiceProperties) (result SetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_accesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_accesspolicy.go new file mode 100644 index 000000000000..96c2a733c644 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_accesspolicy.go @@ -0,0 +1,40 @@ +package fileservices + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccessPolicy struct { + ExpiryTime *string `json:"expiryTime,omitempty"` + Permission *string `json:"permission,omitempty"` + StartTime *string `json:"startTime,omitempty"` +} + +func (o *AccessPolicy) GetExpiryTimeAsTime() (*time.Time, error) { + if o.ExpiryTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.ExpiryTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AccessPolicy) SetExpiryTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.ExpiryTime = &formatted +} + +func (o *AccessPolicy) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AccessPolicy) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_corsrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_corsrule.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_corsrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_corsrule.go index 042cf8fdf22a..70c3c3cc272f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_corsrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_corsrule.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_corsrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_corsrules.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_corsrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_corsrules.go index b397d47c04db..6b5621014b84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_corsrules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_corsrules.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_deleteretentionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_deleteretentionpolicy.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_deleteretentionpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_deleteretentionpolicy.go index 539ed2db7f4e..32f1dbb5cfbb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_deleteretentionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_deleteretentionpolicy.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_storageskulistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_encryptionintransit.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_storageskulistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_encryptionintransit.go index 52a845b9f633..03f42c9173ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_storageskulistresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_encryptionintransit.go @@ -1,8 +1,8 @@ -package skus +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type StorageSkuListResult struct { - Value *[]SkuInformation `json:"value,omitempty"` +type EncryptionInTransit struct { + Required *bool `json:"required,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileserviceitems.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileserviceitems.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileserviceitems.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileserviceitems.go index 3e888adb1f7c..df08afbf503f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileserviceitems.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileserviceitems.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileserviceproperties.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileserviceproperties.go index dde1ba1aae20..f668d81c2856 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileserviceproperties.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileservicepropertiesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileservicepropertiesproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileservicepropertiesproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileservicepropertiesproperties.go index 499d77cad373..2a68149a2180 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_fileservicepropertiesproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileservicepropertiesproperties.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshareitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileshareitem.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshareitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileshareitem.go index d13b53ce24fd..1c88db042a7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshareitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileshareitem.go @@ -1,4 +1,4 @@ -package fileshares +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileshareproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileshareproperties.go new file mode 100644 index 000000000000..7766d0bacff1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_fileshareproperties.go @@ -0,0 +1,87 @@ +package fileservices + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileShareProperties struct { + AccessTier *ShareAccessTier `json:"accessTier,omitempty"` + AccessTierChangeTime *string `json:"accessTierChangeTime,omitempty"` + AccessTierStatus *string `json:"accessTierStatus,omitempty"` + Deleted *bool `json:"deleted,omitempty"` + DeletedTime *string `json:"deletedTime,omitempty"` + EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"` + FileSharePaidBursting *FileSharePropertiesFileSharePaidBursting `json:"fileSharePaidBursting,omitempty"` + IncludedBurstIops *int64 `json:"includedBurstIops,omitempty"` + LastModifiedTime *string `json:"lastModifiedTime,omitempty"` + LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty"` + LeaseState *LeaseState `json:"leaseState,omitempty"` + LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty"` + MaxBurstCreditsForIops *int64 `json:"maxBurstCreditsForIops,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + NextAllowedProvisionedBandwidthDowngradeTime *string `json:"nextAllowedProvisionedBandwidthDowngradeTime,omitempty"` + NextAllowedProvisionedIopsDowngradeTime *string `json:"nextAllowedProvisionedIopsDowngradeTime,omitempty"` + NextAllowedQuotaDowngradeTime *string `json:"nextAllowedQuotaDowngradeTime,omitempty"` + ProvisionedBandwidthMibps *int64 `json:"provisionedBandwidthMibps,omitempty"` + ProvisionedIops *int64 `json:"provisionedIops,omitempty"` + RemainingRetentionDays *int64 `json:"remainingRetentionDays,omitempty"` + RootSquash *RootSquashType `json:"rootSquash,omitempty"` + ShareQuota *int64 `json:"shareQuota,omitempty"` + ShareUsageBytes *int64 `json:"shareUsageBytes,omitempty"` + SignedIdentifiers *[]SignedIdentifier `json:"signedIdentifiers,omitempty"` + SnapshotTime *string `json:"snapshotTime,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (o *FileShareProperties) GetAccessTierChangeTimeAsTime() (*time.Time, error) { + if o.AccessTierChangeTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.AccessTierChangeTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetAccessTierChangeTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.AccessTierChangeTime = &formatted +} + +func (o *FileShareProperties) GetDeletedTimeAsTime() (*time.Time, error) { + if o.DeletedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.DeletedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetDeletedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.DeletedTime = &formatted +} + +func (o *FileShareProperties) GetLastModifiedTimeAsTime() (*time.Time, error) { + if o.LastModifiedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastModifiedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetLastModifiedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastModifiedTime = &formatted +} + +func (o *FileShareProperties) GetSnapshotTimeAsTime() (*time.Time, error) { + if o.SnapshotTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SnapshotTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetSnapshotTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SnapshotTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_filesharepropertiesfilesharepaidbursting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_filesharepropertiesfilesharepaidbursting.go new file mode 100644 index 000000000000..b3f092a01d6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_filesharepropertiesfilesharepaidbursting.go @@ -0,0 +1,10 @@ +package fileservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileSharePropertiesFileSharePaidBursting struct { + PaidBurstingEnabled *bool `json:"paidBurstingEnabled,omitempty"` + PaidBurstingMaxBandwidthMibps *int64 `json:"paidBurstingMaxBandwidthMibps,omitempty"` + PaidBurstingMaxIops *int64 `json:"paidBurstingMaxIops,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_multichannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_multichannel.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_multichannel.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_multichannel.go index 9dde2d6e8212..559a360bd4d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_multichannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_multichannel.go @@ -1,4 +1,4 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobserviceitems.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_nfssetting.go similarity index 55% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobserviceitems.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_nfssetting.go index 5f40120c0a6d..31339a80ac73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_blobserviceitems.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_nfssetting.go @@ -1,8 +1,8 @@ -package blobservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type BlobServiceItems struct { - Value *[]BlobServiceProperties `json:"value,omitempty"` +type NfsSetting struct { + EncryptionInTransit *EncryptionInTransit `json:"encryptionInTransit,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_protocolsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_protocolsettings.go similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_protocolsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_protocolsettings.go index 99db2b0a31ff..c2908f44f0c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/model_protocolsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_protocolsettings.go @@ -1,8 +1,9 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProtocolSettings struct { + Nfs *NfsSetting `json:"nfs,omitempty"` Smb *SmbSetting `json:"smb,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_signedidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_signedidentifier.go new file mode 100644 index 000000000000..0a7592bd34cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_signedidentifier.go @@ -0,0 +1,9 @@ +package fileservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignedIdentifier struct { + AccessPolicy *AccessPolicy `json:"accessPolicy,omitempty"` + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_sku.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_sku.go index 4a59959d6e1e..d98ed78256a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/model_sku.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_sku.go @@ -1,4 +1,4 @@ -package blobservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_smbsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_smbsetting.go new file mode 100644 index 000000000000..b79514b338a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/model_smbsetting.go @@ -0,0 +1,13 @@ +package fileservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SmbSetting struct { + AuthenticationMethods *string `json:"authenticationMethods,omitempty"` + ChannelEncryption *string `json:"channelEncryption,omitempty"` + EncryptionInTransit *EncryptionInTransit `json:"encryptionInTransit,omitempty"` + KerberosTicketEncryption *string `json:"kerberosTicketEncryption,omitempty"` + Multichannel *Multichannel `json:"multichannel,omitempty"` + Versions *string `json:"versions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/predicates.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/predicates.go index 55bb738a2abf..8ed05f414085 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/predicates.go @@ -1,4 +1,4 @@ -package fileshares +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/version.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/version.go index d43e334a682b..061d518de5a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices/version.go @@ -1,10 +1,10 @@ -package fileservice +package fileservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/fileservice/2023-05-01" + return "hashicorp/go-azure-sdk/fileservices/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/README.md new file mode 100644 index 000000000000..11a4c6bfe498 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup` Documentation + +The `fileserviceusageoperationgroup` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup" +``` + + +### Client Initialization + +```go +client := fileserviceusageoperationgroup.NewFileServiceUsageOperationGroupClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FileServiceUsageOperationGroupClient.FileServicesGetServiceUsage` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +read, err := client.FileServicesGetServiceUsage(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FileServiceUsageOperationGroupClient.FileServicesListServiceUsages` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.FileServicesListServiceUsages(ctx, id, fileserviceusageoperationgroup.DefaultFileServicesListServiceUsagesOperationOptions())` can be used to do batched pagination +items, err := client.FileServicesListServiceUsagesComplete(ctx, id, fileserviceusageoperationgroup.DefaultFileServicesListServiceUsagesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/client.go new file mode 100644 index 000000000000..c023d1d4e2b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/client.go @@ -0,0 +1,26 @@ +package fileserviceusageoperationgroup + +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 FileServiceUsageOperationGroupClient struct { + Client *resourcemanager.Client +} + +func NewFileServiceUsageOperationGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*FileServiceUsageOperationGroupClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "fileserviceusageoperationgroup", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating FileServiceUsageOperationGroupClient: %+v", err) + } + + return &FileServiceUsageOperationGroupClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/method_fileservicesgetserviceusage.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/method_fileservicesgetserviceusage.go index 6dd03a8e79fe..87d88810d6d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/method_fileservicesgetserviceusage.go @@ -1,4 +1,4 @@ -package blobinventorypolicies +package fileserviceusageoperationgroup import ( "context" @@ -13,21 +13,21 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListOperationResponse struct { +type FileServicesGetServiceUsageOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ListBlobInventoryPolicy + Model *FileServiceUsage } -// List ... -func (c BlobInventoryPoliciesClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { +// FileServicesGetServiceUsage ... +func (c FileServiceUsageOperationGroupClient) FileServicesGetServiceUsage(ctx context.Context, id commonids.StorageAccountId) (result FileServicesGetServiceUsageOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/inventoryPolicies", id.ID()), + Path: fmt.Sprintf("%s/fileServices/default/usages/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) @@ -45,7 +45,7 @@ func (c BlobInventoryPoliciesClient) List(ctx context.Context, id commonids.Stor return } - var model ListBlobInventoryPolicy + var model FileServiceUsage result.Model = &model if err = resp.Unmarshal(result.Model); err != nil { return diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/method_fileserviceslistserviceusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/method_fileserviceslistserviceusages.go new file mode 100644 index 000000000000..02ca714c419e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/method_fileserviceslistserviceusages.go @@ -0,0 +1,135 @@ +package fileserviceusageoperationgroup + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileServicesListServiceUsagesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FileServiceUsage +} + +type FileServicesListServiceUsagesCompleteResult struct { + LatestHttpResponse *http.Response + Items []FileServiceUsage +} + +type FileServicesListServiceUsagesOperationOptions struct { + Maxpagesize *int64 +} + +func DefaultFileServicesListServiceUsagesOperationOptions() FileServicesListServiceUsagesOperationOptions { + return FileServicesListServiceUsagesOperationOptions{} +} + +func (o FileServicesListServiceUsagesOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o FileServicesListServiceUsagesOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o FileServicesListServiceUsagesOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Maxpagesize != nil { + out.Append("$maxpagesize", fmt.Sprintf("%v", *o.Maxpagesize)) + } + return &out +} + +type FileServicesListServiceUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FileServicesListServiceUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// FileServicesListServiceUsages ... +func (c FileServiceUsageOperationGroupClient) FileServicesListServiceUsages(ctx context.Context, id commonids.StorageAccountId, options FileServicesListServiceUsagesOperationOptions) (result FileServicesListServiceUsagesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &FileServicesListServiceUsagesCustomPager{}, + Path: fmt.Sprintf("%s/fileServices/default/usages", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FileServiceUsage `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// FileServicesListServiceUsagesComplete retrieves all the results into a single object +func (c FileServiceUsageOperationGroupClient) FileServicesListServiceUsagesComplete(ctx context.Context, id commonids.StorageAccountId, options FileServicesListServiceUsagesOperationOptions) (FileServicesListServiceUsagesCompleteResult, error) { + return c.FileServicesListServiceUsagesCompleteMatchingPredicate(ctx, id, options, FileServiceUsageOperationPredicate{}) +} + +// FileServicesListServiceUsagesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FileServiceUsageOperationGroupClient) FileServicesListServiceUsagesCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options FileServicesListServiceUsagesOperationOptions, predicate FileServiceUsageOperationPredicate) (result FileServicesListServiceUsagesCompleteResult, err error) { + items := make([]FileServiceUsage, 0) + + resp, err := c.FileServicesListServiceUsages(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = FileServicesListServiceUsagesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountlimits.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountlimits.go new file mode 100644 index 000000000000..a2ac946562b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountlimits.go @@ -0,0 +1,11 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountLimits struct { + MaxFileShares *int64 `json:"maxFileShares,omitempty"` + MaxProvisionedBandwidthMiBPerSec *int64 `json:"maxProvisionedBandwidthMiBPerSec,omitempty"` + MaxProvisionedIOPS *int64 `json:"maxProvisionedIOPS,omitempty"` + MaxProvisionedStorageGiB *int64 `json:"maxProvisionedStorageGiB,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountusage.go new file mode 100644 index 000000000000..913f87ce29a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountusage.go @@ -0,0 +1,9 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountUsage struct { + LiveShares *AccountUsageElements `json:"liveShares,omitempty"` + SoftDeletedShares *AccountUsageElements `json:"softDeletedShares,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountusageelements.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountusageelements.go new file mode 100644 index 000000000000..c647236c4779 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_accountusageelements.go @@ -0,0 +1,11 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountUsageElements struct { + FileShareCount *int64 `json:"fileShareCount,omitempty"` + ProvisionedBandwidthMiBPerSec *int64 `json:"provisionedBandwidthMiBPerSec,omitempty"` + ProvisionedIOPS *int64 `json:"provisionedIOPS,omitempty"` + ProvisionedStorageGiB *int64 `json:"provisionedStorageGiB,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_burstingconstants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_burstingconstants.go new file mode 100644 index 000000000000..7e6554048d82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_burstingconstants.go @@ -0,0 +1,10 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BurstingConstants struct { + BurstFloorIOPS *int64 `json:"burstFloorIOPS,omitempty"` + BurstIOScalar *float64 `json:"burstIOScalar,omitempty"` + BurstTimeframeSeconds *int64 `json:"burstTimeframeSeconds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_fileserviceusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_fileserviceusage.go new file mode 100644 index 000000000000..0f5b1cafefe4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_fileserviceusage.go @@ -0,0 +1,11 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileServiceUsage struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FileServiceUsageProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_fileserviceusageproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_fileserviceusageproperties.go new file mode 100644 index 000000000000..130ab905664a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_fileserviceusageproperties.go @@ -0,0 +1,12 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileServiceUsageProperties struct { + BurstingConstants *BurstingConstants `json:"burstingConstants,omitempty"` + FileShareLimits *FileShareLimits `json:"fileShareLimits,omitempty"` + FileShareRecommendations *FileShareRecommendations `json:"fileShareRecommendations,omitempty"` + StorageAccountLimits *AccountLimits `json:"storageAccountLimits,omitempty"` + StorageAccountUsage *AccountUsage `json:"storageAccountUsage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_filesharelimits.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_filesharelimits.go new file mode 100644 index 000000000000..5d67310d8608 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_filesharelimits.go @@ -0,0 +1,13 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileShareLimits struct { + MaxProvisionedBandwidthMiBPerSec *int64 `json:"maxProvisionedBandwidthMiBPerSec,omitempty"` + MaxProvisionedIOPS *int64 `json:"maxProvisionedIOPS,omitempty"` + MaxProvisionedStorageGiB *int64 `json:"maxProvisionedStorageGiB,omitempty"` + MinProvisionedBandwidthMiBPerSec *int64 `json:"minProvisionedBandwidthMiBPerSec,omitempty"` + MinProvisionedIOPS *int64 `json:"minProvisionedIOPS,omitempty"` + MinProvisionedStorageGiB *int64 `json:"minProvisionedStorageGiB,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_filesharerecommendations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_filesharerecommendations.go new file mode 100644 index 000000000000..5021c3fc982a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/model_filesharerecommendations.go @@ -0,0 +1,11 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileShareRecommendations struct { + BandwidthScalar *float64 `json:"bandwidthScalar,omitempty"` + BaseBandwidthMiBPerSec *int64 `json:"baseBandwidthMiBPerSec,omitempty"` + BaseIOPS *int64 `json:"baseIOPS,omitempty"` + IoScalar *float64 `json:"ioScalar,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/predicates.go new file mode 100644 index 000000000000..350f459f4d41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/predicates.go @@ -0,0 +1,27 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileServiceUsageOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p FileServiceUsageOperationPredicate) Matches(input FileServiceUsage) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/version.go new file mode 100644 index 000000000000..b9d8279ddb98 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup/version.go @@ -0,0 +1,10 @@ +package fileserviceusageoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2025-06-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/fileserviceusageoperationgroup/2025-06-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/README.md similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/README.md index c6a987fd245a..5ba4a44b784d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/README.md @@ -1,15 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares` Documentation -The `fileshares` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `fileshares` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares" ``` @@ -95,23 +94,6 @@ if model := read.Model; model != nil { ``` -### Example Usage: `FileSharesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -// alternatively `client.List(ctx, id, fileshares.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, fileshares.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - ### Example Usage: `FileSharesClient.Restore` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/id_share.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/id_share.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/id_share.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/id_share.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_lease.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_lease.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_lease.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_lease.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_restore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_restore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_restore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_restore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_accesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_accesspolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_accesspolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_accesspolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_deletedshare.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_deletedshare.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_deletedshare.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_deletedshare.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshare.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_fileshare.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_fileshare.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_fileshare.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_fileshareproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_fileshareproperties.go new file mode 100644 index 000000000000..1b31ebcd1b9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_fileshareproperties.go @@ -0,0 +1,87 @@ +package fileshares + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileShareProperties struct { + AccessTier *ShareAccessTier `json:"accessTier,omitempty"` + AccessTierChangeTime *string `json:"accessTierChangeTime,omitempty"` + AccessTierStatus *string `json:"accessTierStatus,omitempty"` + Deleted *bool `json:"deleted,omitempty"` + DeletedTime *string `json:"deletedTime,omitempty"` + EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"` + FileSharePaidBursting *FileSharePropertiesFileSharePaidBursting `json:"fileSharePaidBursting,omitempty"` + IncludedBurstIops *int64 `json:"includedBurstIops,omitempty"` + LastModifiedTime *string `json:"lastModifiedTime,omitempty"` + LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty"` + LeaseState *LeaseState `json:"leaseState,omitempty"` + LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty"` + MaxBurstCreditsForIops *int64 `json:"maxBurstCreditsForIops,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + NextAllowedProvisionedBandwidthDowngradeTime *string `json:"nextAllowedProvisionedBandwidthDowngradeTime,omitempty"` + NextAllowedProvisionedIopsDowngradeTime *string `json:"nextAllowedProvisionedIopsDowngradeTime,omitempty"` + NextAllowedQuotaDowngradeTime *string `json:"nextAllowedQuotaDowngradeTime,omitempty"` + ProvisionedBandwidthMibps *int64 `json:"provisionedBandwidthMibps,omitempty"` + ProvisionedIops *int64 `json:"provisionedIops,omitempty"` + RemainingRetentionDays *int64 `json:"remainingRetentionDays,omitempty"` + RootSquash *RootSquashType `json:"rootSquash,omitempty"` + ShareQuota *int64 `json:"shareQuota,omitempty"` + ShareUsageBytes *int64 `json:"shareUsageBytes,omitempty"` + SignedIdentifiers *[]SignedIdentifier `json:"signedIdentifiers,omitempty"` + SnapshotTime *string `json:"snapshotTime,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (o *FileShareProperties) GetAccessTierChangeTimeAsTime() (*time.Time, error) { + if o.AccessTierChangeTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.AccessTierChangeTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetAccessTierChangeTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.AccessTierChangeTime = &formatted +} + +func (o *FileShareProperties) GetDeletedTimeAsTime() (*time.Time, error) { + if o.DeletedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.DeletedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetDeletedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.DeletedTime = &formatted +} + +func (o *FileShareProperties) GetLastModifiedTimeAsTime() (*time.Time, error) { + if o.LastModifiedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastModifiedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetLastModifiedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastModifiedTime = &formatted +} + +func (o *FileShareProperties) GetSnapshotTimeAsTime() (*time.Time, error) { + if o.SnapshotTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.SnapshotTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *FileShareProperties) SetSnapshotTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.SnapshotTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_filesharepropertiesfilesharepaidbursting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_filesharepropertiesfilesharepaidbursting.go new file mode 100644 index 000000000000..cdf4baf1b40b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_filesharepropertiesfilesharepaidbursting.go @@ -0,0 +1,10 @@ +package fileshares + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FileSharePropertiesFileSharePaidBursting struct { + PaidBurstingEnabled *bool `json:"paidBurstingEnabled,omitempty"` + PaidBurstingMaxBandwidthMibps *int64 `json:"paidBurstingMaxBandwidthMibps,omitempty"` + PaidBurstingMaxIops *int64 `json:"paidBurstingMaxIops,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_leasesharerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_leasesharerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_leasesharerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_leasesharerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_leaseshareresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_leaseshareresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_leaseshareresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_leaseshareresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_signedidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_signedidentifier.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/model_signedidentifier.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/model_signedidentifier.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/version.go index d60e69ba43ad..2f53d2fad070 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares/version.go @@ -3,8 +3,8 @@ package fileshares // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/fileshares/2023-05-01" + return "hashicorp/go-azure-sdk/fileshares/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/README.md new file mode 100644 index 000000000000..bee48125c3cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/README.md @@ -0,0 +1,111 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies` Documentation + +The `immutabilitypolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies" +``` + + +### Client Initialization + +```go +client := immutabilitypolicies.NewImmutabilityPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ImmutabilityPoliciesClient.BlobContainersCreateOrUpdateImmutabilityPolicy` + +```go +ctx := context.TODO() +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") + +payload := immutabilitypolicies.ImmutabilityPolicy{ + // ... +} + + +read, err := client.BlobContainersCreateOrUpdateImmutabilityPolicy(ctx, id, payload, immutabilitypolicies.DefaultBlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ImmutabilityPoliciesClient.BlobContainersDeleteImmutabilityPolicy` + +```go +ctx := context.TODO() +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") + +read, err := client.BlobContainersDeleteImmutabilityPolicy(ctx, id, immutabilitypolicies.DefaultBlobContainersDeleteImmutabilityPolicyOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ImmutabilityPoliciesClient.BlobContainersExtendImmutabilityPolicy` + +```go +ctx := context.TODO() +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") + +payload := immutabilitypolicies.ImmutabilityPolicy{ + // ... +} + + +read, err := client.BlobContainersExtendImmutabilityPolicy(ctx, id, payload, immutabilitypolicies.DefaultBlobContainersExtendImmutabilityPolicyOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ImmutabilityPoliciesClient.BlobContainersGetImmutabilityPolicy` + +```go +ctx := context.TODO() +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") + +read, err := client.BlobContainersGetImmutabilityPolicy(ctx, id, immutabilitypolicies.DefaultBlobContainersGetImmutabilityPolicyOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ImmutabilityPoliciesClient.BlobContainersLockImmutabilityPolicy` + +```go +ctx := context.TODO() +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") + +read, err := client.BlobContainersLockImmutabilityPolicy(ctx, id, immutabilitypolicies.DefaultBlobContainersLockImmutabilityPolicyOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/client.go similarity index 52% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/client.go index 28c00b21f034..80b7110ebcbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/client.go @@ -1,4 +1,4 @@ -package privatelinkresources +package immutabilitypolicies import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type PrivateLinkResourcesClient struct { +type ImmutabilityPoliciesClient struct { Client *resourcemanager.Client } -func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) +func NewImmutabilityPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ImmutabilityPoliciesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "immutabilitypolicies", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) + return nil, fmt.Errorf("instantiating ImmutabilityPoliciesClient: %+v", err) } - return &PrivateLinkResourcesClient{ + return &ImmutabilityPoliciesClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/constants.go new file mode 100644 index 000000000000..20f95f5c2b38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/constants.go @@ -0,0 +1,51 @@ +package immutabilitypolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImmutabilityPolicyState string + +const ( + ImmutabilityPolicyStateLocked ImmutabilityPolicyState = "Locked" + ImmutabilityPolicyStateUnlocked ImmutabilityPolicyState = "Unlocked" +) + +func PossibleValuesForImmutabilityPolicyState() []string { + return []string{ + string(ImmutabilityPolicyStateLocked), + string(ImmutabilityPolicyStateUnlocked), + } +} + +func (s *ImmutabilityPolicyState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseImmutabilityPolicyState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseImmutabilityPolicyState(input string) (*ImmutabilityPolicyState, error) { + vals := map[string]ImmutabilityPolicyState{ + "locked": ImmutabilityPolicyStateLocked, + "unlocked": ImmutabilityPolicyStateUnlocked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ImmutabilityPolicyState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_createorupdateimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainerscreateorupdateimmutabilitypolicy.go similarity index 56% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_createorupdateimmutabilitypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainerscreateorupdateimmutabilitypolicy.go index c683f139c1d0..6c0c7a6ac6e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_createorupdateimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainerscreateorupdateimmutabilitypolicy.go @@ -1,4 +1,4 @@ -package blobcontainers +package immutabilitypolicies import ( "context" @@ -13,21 +13,21 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type CreateOrUpdateImmutabilityPolicyOperationResponse struct { +type BlobContainersCreateOrUpdateImmutabilityPolicyOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ImmutabilityPolicy } -type CreateOrUpdateImmutabilityPolicyOperationOptions struct { +type BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions struct { IfMatch *string } -func DefaultCreateOrUpdateImmutabilityPolicyOperationOptions() CreateOrUpdateImmutabilityPolicyOperationOptions { - return CreateOrUpdateImmutabilityPolicyOperationOptions{} +func DefaultBlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions() BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions { + return BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions{} } -func (o CreateOrUpdateImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { +func (o BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} if o.IfMatch != nil { out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) @@ -35,20 +35,20 @@ func (o CreateOrUpdateImmutabilityPolicyOperationOptions) ToHeaders() *client.He return &out } -func (o CreateOrUpdateImmutabilityPolicyOperationOptions) ToOData() *odata.Query { +func (o BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o CreateOrUpdateImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { +func (o BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} return &out } -// CreateOrUpdateImmutabilityPolicy ... -func (c BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, input ImmutabilityPolicy, options CreateOrUpdateImmutabilityPolicyOperationOptions) (result CreateOrUpdateImmutabilityPolicyOperationResponse, err error) { +// BlobContainersCreateOrUpdateImmutabilityPolicy ... +func (c ImmutabilityPoliciesClient) BlobContainersCreateOrUpdateImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, input ImmutabilityPolicy, options BlobContainersCreateOrUpdateImmutabilityPolicyOperationOptions) (result BlobContainersCreateOrUpdateImmutabilityPolicyOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_deleteimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersdeleteimmutabilitypolicy.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_deleteimmutabilitypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersdeleteimmutabilitypolicy.go index a24507c4578a..a29727452ba1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_deleteimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersdeleteimmutabilitypolicy.go @@ -1,4 +1,4 @@ -package blobcontainers +package immutabilitypolicies import ( "context" @@ -13,21 +13,21 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type DeleteImmutabilityPolicyOperationResponse struct { +type BlobContainersDeleteImmutabilityPolicyOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ImmutabilityPolicy } -type DeleteImmutabilityPolicyOperationOptions struct { +type BlobContainersDeleteImmutabilityPolicyOperationOptions struct { IfMatch *string } -func DefaultDeleteImmutabilityPolicyOperationOptions() DeleteImmutabilityPolicyOperationOptions { - return DeleteImmutabilityPolicyOperationOptions{} +func DefaultBlobContainersDeleteImmutabilityPolicyOperationOptions() BlobContainersDeleteImmutabilityPolicyOperationOptions { + return BlobContainersDeleteImmutabilityPolicyOperationOptions{} } -func (o DeleteImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { +func (o BlobContainersDeleteImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} if o.IfMatch != nil { out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) @@ -35,20 +35,20 @@ func (o DeleteImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { return &out } -func (o DeleteImmutabilityPolicyOperationOptions) ToOData() *odata.Query { +func (o BlobContainersDeleteImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o DeleteImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { +func (o BlobContainersDeleteImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} return &out } -// DeleteImmutabilityPolicy ... -func (c BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, options DeleteImmutabilityPolicyOperationOptions) (result DeleteImmutabilityPolicyOperationResponse, err error) { +// BlobContainersDeleteImmutabilityPolicy ... +func (c ImmutabilityPoliciesClient) BlobContainersDeleteImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, options BlobContainersDeleteImmutabilityPolicyOperationOptions) (result BlobContainersDeleteImmutabilityPolicyOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_extendimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersextendimmutabilitypolicy.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_extendimmutabilitypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersextendimmutabilitypolicy.go index 4e18a4334d3f..468535ed9ff2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_extendimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersextendimmutabilitypolicy.go @@ -1,4 +1,4 @@ -package blobcontainers +package immutabilitypolicies import ( "context" @@ -13,21 +13,21 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ExtendImmutabilityPolicyOperationResponse struct { +type BlobContainersExtendImmutabilityPolicyOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ImmutabilityPolicy } -type ExtendImmutabilityPolicyOperationOptions struct { +type BlobContainersExtendImmutabilityPolicyOperationOptions struct { IfMatch *string } -func DefaultExtendImmutabilityPolicyOperationOptions() ExtendImmutabilityPolicyOperationOptions { - return ExtendImmutabilityPolicyOperationOptions{} +func DefaultBlobContainersExtendImmutabilityPolicyOperationOptions() BlobContainersExtendImmutabilityPolicyOperationOptions { + return BlobContainersExtendImmutabilityPolicyOperationOptions{} } -func (o ExtendImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { +func (o BlobContainersExtendImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} if o.IfMatch != nil { out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) @@ -35,20 +35,20 @@ func (o ExtendImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { return &out } -func (o ExtendImmutabilityPolicyOperationOptions) ToOData() *odata.Query { +func (o BlobContainersExtendImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o ExtendImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { +func (o BlobContainersExtendImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} return &out } -// ExtendImmutabilityPolicy ... -func (c BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, input ImmutabilityPolicy, options ExtendImmutabilityPolicyOperationOptions) (result ExtendImmutabilityPolicyOperationResponse, err error) { +// BlobContainersExtendImmutabilityPolicy ... +func (c ImmutabilityPoliciesClient) BlobContainersExtendImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, input ImmutabilityPolicy, options BlobContainersExtendImmutabilityPolicyOperationOptions) (result BlobContainersExtendImmutabilityPolicyOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_getimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersgetimmutabilitypolicy.go similarity index 59% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_getimmutabilitypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersgetimmutabilitypolicy.go index a2100e1a1cda..53aeae0aba79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_getimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainersgetimmutabilitypolicy.go @@ -1,4 +1,4 @@ -package blobcontainers +package immutabilitypolicies import ( "context" @@ -13,21 +13,21 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type GetImmutabilityPolicyOperationResponse struct { +type BlobContainersGetImmutabilityPolicyOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ImmutabilityPolicy } -type GetImmutabilityPolicyOperationOptions struct { +type BlobContainersGetImmutabilityPolicyOperationOptions struct { IfMatch *string } -func DefaultGetImmutabilityPolicyOperationOptions() GetImmutabilityPolicyOperationOptions { - return GetImmutabilityPolicyOperationOptions{} +func DefaultBlobContainersGetImmutabilityPolicyOperationOptions() BlobContainersGetImmutabilityPolicyOperationOptions { + return BlobContainersGetImmutabilityPolicyOperationOptions{} } -func (o GetImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { +func (o BlobContainersGetImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} if o.IfMatch != nil { out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) @@ -35,20 +35,20 @@ func (o GetImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { return &out } -func (o GetImmutabilityPolicyOperationOptions) ToOData() *odata.Query { +func (o BlobContainersGetImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o GetImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { +func (o BlobContainersGetImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} return &out } -// GetImmutabilityPolicy ... -func (c BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, options GetImmutabilityPolicyOperationOptions) (result GetImmutabilityPolicyOperationResponse, err error) { +// BlobContainersGetImmutabilityPolicy ... +func (c ImmutabilityPoliciesClient) BlobContainersGetImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, options BlobContainersGetImmutabilityPolicyOperationOptions) (result BlobContainersGetImmutabilityPolicyOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_lockimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainerslockimmutabilitypolicy.go similarity index 59% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_lockimmutabilitypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainerslockimmutabilitypolicy.go index 772bf3c0fe64..863b6d11f7ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/method_lockimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/method_blobcontainerslockimmutabilitypolicy.go @@ -1,4 +1,4 @@ -package blobcontainers +package immutabilitypolicies import ( "context" @@ -13,21 +13,21 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type LockImmutabilityPolicyOperationResponse struct { +type BlobContainersLockImmutabilityPolicyOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ImmutabilityPolicy } -type LockImmutabilityPolicyOperationOptions struct { +type BlobContainersLockImmutabilityPolicyOperationOptions struct { IfMatch *string } -func DefaultLockImmutabilityPolicyOperationOptions() LockImmutabilityPolicyOperationOptions { - return LockImmutabilityPolicyOperationOptions{} +func DefaultBlobContainersLockImmutabilityPolicyOperationOptions() BlobContainersLockImmutabilityPolicyOperationOptions { + return BlobContainersLockImmutabilityPolicyOperationOptions{} } -func (o LockImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { +func (o BlobContainersLockImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} if o.IfMatch != nil { out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) @@ -35,20 +35,20 @@ func (o LockImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { return &out } -func (o LockImmutabilityPolicyOperationOptions) ToOData() *odata.Query { +func (o BlobContainersLockImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o LockImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { +func (o BlobContainersLockImmutabilityPolicyOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} return &out } -// LockImmutabilityPolicy ... -func (c BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, options LockImmutabilityPolicyOperationOptions) (result LockImmutabilityPolicyOperationResponse, err error) { +// BlobContainersLockImmutabilityPolicy ... +func (c ImmutabilityPoliciesClient) BlobContainersLockImmutabilityPolicy(ctx context.Context, id commonids.StorageContainerId, options BlobContainersLockImmutabilityPolicyOperationOptions) (result BlobContainersLockImmutabilityPolicyOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/model_immutabilitypolicy.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutabilitypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/model_immutabilitypolicy.go index b3db452ed518..8e34103f685b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers/model_immutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/model_immutabilitypolicy.go @@ -1,4 +1,4 @@ -package blobcontainers +package immutabilitypolicies // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/model_immutabilitypolicyproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/model_immutabilitypolicyproperty.go new file mode 100644 index 000000000000..c509dac681ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/model_immutabilitypolicyproperty.go @@ -0,0 +1,11 @@ +package immutabilitypolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImmutabilityPolicyProperty struct { + AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"` + AllowProtectedAppendWritesAll *bool `json:"allowProtectedAppendWritesAll,omitempty"` + ImmutabilityPeriodSinceCreationInDays *int64 `json:"immutabilityPeriodSinceCreationInDays,omitempty"` + State *ImmutabilityPolicyState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/version.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/version.go index 7b880f640b81..3977598b3383 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies/version.go @@ -1,10 +1,10 @@ -package privatelinkresources +package immutabilitypolicies // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/privatelinkresources/2023-05-01" + return "hashicorp/go-azure-sdk/immutabilitypolicies/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/README.md new file mode 100644 index 000000000000..e4d69b70dc8d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/README.md @@ -0,0 +1,123 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup` Documentation + +The `localuseroperationgroup` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup" +``` + + +### Client Initialization + +```go +client := localuseroperationgroup.NewLocalUserOperationGroupClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LocalUserOperationGroupClient.LocalUsersCreateOrUpdate` + +```go +ctx := context.TODO() +id := localuseroperationgroup.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") + +payload := localuseroperationgroup.LocalUser{ + // ... +} + + +read, err := client.LocalUsersCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LocalUserOperationGroupClient.LocalUsersDelete` + +```go +ctx := context.TODO() +id := localuseroperationgroup.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") + +read, err := client.LocalUsersDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LocalUserOperationGroupClient.LocalUsersGet` + +```go +ctx := context.TODO() +id := localuseroperationgroup.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") + +read, err := client.LocalUsersGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LocalUserOperationGroupClient.LocalUsersList` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.LocalUsersList(ctx, id, localuseroperationgroup.DefaultLocalUsersListOperationOptions())` can be used to do batched pagination +items, err := client.LocalUsersListComplete(ctx, id, localuseroperationgroup.DefaultLocalUsersListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LocalUserOperationGroupClient.LocalUsersListKeys` + +```go +ctx := context.TODO() +id := localuseroperationgroup.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") + +read, err := client.LocalUsersListKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LocalUserOperationGroupClient.LocalUsersRegeneratePassword` + +```go +ctx := context.TODO() +id := localuseroperationgroup.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "localUserName") + +read, err := client.LocalUsersRegeneratePassword(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/client.go new file mode 100644 index 000000000000..9b24ea5307d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/client.go @@ -0,0 +1,26 @@ +package localuseroperationgroup + +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 LocalUserOperationGroupClient struct { + Client *resourcemanager.Client +} + +func NewLocalUserOperationGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalUserOperationGroupClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "localuseroperationgroup", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating LocalUserOperationGroupClient: %+v", err) + } + + return &LocalUserOperationGroupClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/constants.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/constants.go index 098d5b3c7650..33e0b1a2de20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/constants.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "encoding/json" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/id_localuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/id_localuser.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/id_localuser.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/id_localuser.go index ea95afe55f61..50c443271ef0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/id_localuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/id_localuser.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "fmt" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserscreateorupdate.go similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserscreateorupdate.go index a4f5dae589af..4e172154bf10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserscreateorupdate.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "context" @@ -11,14 +11,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type CreateOrUpdateOperationResponse struct { +type LocalUsersCreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LocalUser } -// CreateOrUpdate ... -func (c LocalUsersClient) CreateOrUpdate(ctx context.Context, id LocalUserId, input LocalUser) (result CreateOrUpdateOperationResponse, err error) { +// LocalUsersCreateOrUpdate ... +func (c LocalUserOperationGroupClient) LocalUsersCreateOrUpdate(ctx context.Context, id LocalUserId, input LocalUser) (result LocalUsersCreateOrUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersdelete.go similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersdelete.go index 495b83ab29c5..d765152a03d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersdelete.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "context" @@ -11,13 +11,13 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type DeleteOperationResponse struct { +type LocalUsersDeleteOperationResponse struct { HttpResponse *http.Response OData *odata.OData } -// Delete ... -func (c LocalUsersClient) Delete(ctx context.Context, id LocalUserId) (result DeleteOperationResponse, err error) { +// LocalUsersDelete ... +func (c LocalUserOperationGroupClient) LocalUsersDelete(ctx context.Context, id LocalUserId) (result LocalUsersDeleteOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersget.go similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersget.go index a1b7d29ccf54..2e4d5764224b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersget.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "context" @@ -11,14 +11,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type GetOperationResponse struct { +type LocalUsersGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LocalUser } -// Get ... -func (c LocalUsersClient) Get(ctx context.Context, id LocalUserId) (result GetOperationResponse, err error) { +// LocalUsersGet ... +func (c LocalUserOperationGroupClient) LocalUsersGet(ctx context.Context, id LocalUserId) (result LocalUsersGetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserslist.go similarity index 55% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserslist.go index 4a6b34f765b2..ec8fd0c742fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserslist.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "context" @@ -13,40 +13,40 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListOperationResponse struct { +type LocalUsersListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LocalUser } -type ListCompleteResult struct { +type LocalUsersListCompleteResult struct { LatestHttpResponse *http.Response Items []LocalUser } -type ListOperationOptions struct { +type LocalUsersListOperationOptions struct { Filter *string Include *ListLocalUserIncludeParam Maxpagesize *int64 } -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} +func DefaultLocalUsersListOperationOptions() LocalUsersListOperationOptions { + return LocalUsersListOperationOptions{} } -func (o ListOperationOptions) ToHeaders() *client.Headers { +func (o LocalUsersListOperationOptions) ToHeaders() *client.Headers { out := client.Headers{} return &out } -func (o ListOperationOptions) ToOData() *odata.Query { +func (o LocalUsersListOperationOptions) ToOData() *odata.Query { out := odata.Query{} return &out } -func (o ListOperationOptions) ToQuery() *client.QueryParams { +func (o LocalUsersListOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} if o.Filter != nil { out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) @@ -60,11 +60,11 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } -type ListCustomPager struct { +type LocalUsersListCustomPager struct { NextLink *odata.Link `json:"nextLink"` } -func (p *ListCustomPager) NextPageLink() *odata.Link { +func (p *LocalUsersListCustomPager) NextPageLink() *odata.Link { defer func() { p.NextLink = nil }() @@ -72,8 +72,8 @@ func (p *ListCustomPager) NextPageLink() *odata.Link { return p.NextLink } -// List ... -func (c LocalUsersClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { +// LocalUsersList ... +func (c LocalUserOperationGroupClient) LocalUsersList(ctx context.Context, id commonids.StorageAccountId, options LocalUsersListOperationOptions) (result LocalUsersListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -81,7 +81,7 @@ func (c LocalUsersClient) List(ctx context.Context, id commonids.StorageAccountI }, HttpMethod: http.MethodGet, OptionsObject: options, - Pager: &ListCustomPager{}, + Pager: &LocalUsersListCustomPager{}, Path: fmt.Sprintf("%s/localUsers", id.ID()), } @@ -112,16 +112,16 @@ func (c LocalUsersClient) List(ctx context.Context, id commonids.StorageAccountI return } -// ListComplete retrieves all the results into a single object -func (c LocalUsersClient) ListComplete(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, LocalUserOperationPredicate{}) +// LocalUsersListComplete retrieves all the results into a single object +func (c LocalUserOperationGroupClient) LocalUsersListComplete(ctx context.Context, id commonids.StorageAccountId, options LocalUsersListOperationOptions) (LocalUsersListCompleteResult, error) { + return c.LocalUsersListCompleteMatchingPredicate(ctx, id, options, LocalUserOperationPredicate{}) } -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c LocalUsersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions, predicate LocalUserOperationPredicate) (result ListCompleteResult, err error) { +// LocalUsersListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalUserOperationGroupClient) LocalUsersListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options LocalUsersListOperationOptions, predicate LocalUserOperationPredicate) (result LocalUsersListCompleteResult, err error) { items := make([]LocalUser, 0) - resp, err := c.List(ctx, id, options) + resp, err := c.LocalUsersList(ctx, id, options) if err != nil { result.LatestHttpResponse = resp.HttpResponse err = fmt.Errorf("loading results: %+v", err) @@ -135,7 +135,7 @@ func (c LocalUsersClient) ListCompleteMatchingPredicate(ctx context.Context, id } } - result = ListCompleteResult{ + result = LocalUsersListCompleteResult{ LatestHttpResponse: resp.HttpResponse, Items: items, } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserslistkeys.go similarity index 78% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_listkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserslistkeys.go index 18c79940bfd2..a863863d6e45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localuserslistkeys.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "context" @@ -12,14 +12,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListKeysOperationResponse struct { +type LocalUsersListKeysOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LocalUserKeys } -// ListKeys ... -func (c LocalUsersClient) ListKeys(ctx context.Context, id LocalUserId) (result ListKeysOperationResponse, err error) { +// LocalUsersListKeys ... +func (c LocalUserOperationGroupClient) LocalUsersListKeys(ctx context.Context, id LocalUserId) (result LocalUsersListKeysOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_regeneratepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersregeneratepassword.go similarity index 77% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_regeneratepassword.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersregeneratepassword.go index db714c7bbf93..f680f7c7280a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/method_regeneratepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/method_localusersregeneratepassword.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup import ( "context" @@ -12,14 +12,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type RegeneratePasswordOperationResponse struct { +type LocalUsersRegeneratePasswordOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LocalUserRegeneratePasswordResult } -// RegeneratePassword ... -func (c LocalUsersClient) RegeneratePassword(ctx context.Context, id LocalUserId) (result RegeneratePasswordOperationResponse, err error) { +// LocalUsersRegeneratePassword ... +func (c LocalUserOperationGroupClient) LocalUsersRegeneratePassword(ctx context.Context, id LocalUserId) (result LocalUsersRegeneratePasswordOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuser.go new file mode 100644 index 000000000000..acab91a42e0c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuser.go @@ -0,0 +1,11 @@ +package localuseroperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalUser struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *LocalUserProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserkeys.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserkeys.go index 7d2bd590fe19..838fd7b851db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserkeys.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserproperties.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserproperties.go index 012e7b822173..2303eb0488da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserproperties.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserregeneratepasswordresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserregeneratepasswordresult.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserregeneratepasswordresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserregeneratepasswordresult.go index c9278409d2bf..18bd422313e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_localuserregeneratepasswordresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_localuserregeneratepasswordresult.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_permissionscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_permissionscope.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_permissionscope.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_permissionscope.go index efc2c9a5a410..d13735f23b53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_permissionscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_permissionscope.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_sshpublickey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_sshpublickey.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_sshpublickey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_sshpublickey.go index 3148581213d3..2545929629df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/model_sshpublickey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/model_sshpublickey.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/predicates.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/predicates.go index 8701eaad9b84..9844fe631172 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/predicates.go @@ -1,4 +1,4 @@ -package localusers +package localuseroperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/version.go similarity index 57% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/version.go index b089905b2320..eeff7a19e98e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup/version.go @@ -1,10 +1,10 @@ -package accountmigrations +package localuseroperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/accountmigrations/2023-05-01" + return "hashicorp/go-azure-sdk/localuseroperationgroup/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/README.md index f5dfeb84840f..e75085ed5115 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies` Documentation -The `managementpolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `managementpolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_dateaftercreation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_dateaftercreation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_dateaftercreation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_dateaftercreation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_dateaftermodification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_dateaftermodification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_dateaftermodification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_dateaftermodification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyaction.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyaction.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyaction.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicybaseblob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicybaseblob.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicybaseblob.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicybaseblob.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyfilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyfilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyfilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyschema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyschema.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyschema.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyschema.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicysnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicysnapshot.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicysnapshot.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicysnapshot.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyversion.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_managementpolicyversion.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_managementpolicyversion.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_tagfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_tagfilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/model_tagfilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/model_tagfilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/version.go index 0a392c83102e..025b20b784bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies/version.go @@ -3,8 +3,8 @@ package managementpolicies // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/managementpolicies/2023-05-01" + return "hashicorp/go-azure-sdk/managementpolicies/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/README.md new file mode 100644 index 000000000000..8a6ef04018a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/README.md @@ -0,0 +1,66 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations` Documentation + +The `networksecurityperimeterconfigurations` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations" +``` + + +### Client Initialization + +```go +client := networksecurityperimeterconfigurations.NewNetworkSecurityPerimeterConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkSecurityPerimeterConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := networksecurityperimeterconfigurations.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "networkSecurityPerimeterConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkSecurityPerimeterConfigurationsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkSecurityPerimeterConfigurationsClient.Reconcile` + +```go +ctx := context.TODO() +id := networksecurityperimeterconfigurations.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "networkSecurityPerimeterConfigurationName") + +if err := client.ReconcileThenPoll(ctx, id); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/client.go new file mode 100644 index 000000000000..20530b9e06a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/client.go @@ -0,0 +1,26 @@ +package networksecurityperimeterconfigurations + +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 NetworkSecurityPerimeterConfigurationsClient struct { + Client *resourcemanager.Client +} + +func NewNetworkSecurityPerimeterConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkSecurityPerimeterConfigurationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networksecurityperimeterconfigurations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkSecurityPerimeterConfigurationsClient: %+v", err) + } + + return &NetworkSecurityPerimeterConfigurationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/constants.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/constants.go index 6b5e0730f3ad..04025242a063 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/constants.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations import ( "encoding/json" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/id_networksecurityperimeterconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/id_networksecurityperimeterconfiguration.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/id_networksecurityperimeterconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/id_networksecurityperimeterconfiguration.go index 89e3e946f24d..3603c9206a9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/id_networksecurityperimeterconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/id_networksecurityperimeterconfiguration.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations import ( "fmt" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_get.go similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_get.go index bebd8d8cdd29..ff7885e0a3d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_get.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package networksecurityperimeterconfigurations import ( "context" @@ -14,11 +14,11 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ObjectReplicationPolicy + Model *NetworkSecurityPerimeterConfiguration } // Get ... -func (c ObjectReplicationPoliciesClient) Get(ctx context.Context, id ObjectReplicationPolicyId) (result GetOperationResponse, err error) { +func (c NetworkSecurityPerimeterConfigurationsClient) Get(ctx context.Context, id NetworkSecurityPerimeterConfigurationId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -43,7 +43,7 @@ func (c ObjectReplicationPoliciesClient) Get(ctx context.Context, id ObjectRepli return } - var model ObjectReplicationPolicy + var model NetworkSecurityPerimeterConfiguration result.Model = &model if err = resp.Unmarshal(result.Model); err != nil { return diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_list.go new file mode 100644 index 000000000000..bee92e0b50a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_list.go @@ -0,0 +1,106 @@ +package networksecurityperimeterconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkSecurityPerimeterConfiguration +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkSecurityPerimeterConfiguration +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkSecurityPerimeterConfigurationsClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/networkSecurityPerimeterConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkSecurityPerimeterConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkSecurityPerimeterConfigurationsClient) ListComplete(ctx context.Context, id commonids.StorageAccountId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, NetworkSecurityPerimeterConfigurationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkSecurityPerimeterConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate NetworkSecurityPerimeterConfigurationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkSecurityPerimeterConfiguration, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationsreconcile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_reconcile.go similarity index 52% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationsreconcile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_reconcile.go index 828b1345bf9b..45935ee0f4b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationsreconcile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/method_reconcile.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations import ( "context" @@ -14,14 +14,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type NetworkSecurityPerimeterConfigurationsReconcileOperationResponse struct { +type ReconcileOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData } -// NetworkSecurityPerimeterConfigurationsReconcile ... -func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsReconcile(ctx context.Context, id NetworkSecurityPerimeterConfigurationId) (result NetworkSecurityPerimeterConfigurationsReconcileOperationResponse, err error) { +// Reconcile ... +func (c NetworkSecurityPerimeterConfigurationsClient) Reconcile(ctx context.Context, id NetworkSecurityPerimeterConfigurationId) (result ReconcileOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -54,15 +54,15 @@ func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecu return } -// NetworkSecurityPerimeterConfigurationsReconcileThenPoll performs NetworkSecurityPerimeterConfigurationsReconcile then polls until it's completed -func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsReconcileThenPoll(ctx context.Context, id NetworkSecurityPerimeterConfigurationId) error { - result, err := c.NetworkSecurityPerimeterConfigurationsReconcile(ctx, id) +// ReconcileThenPoll performs Reconcile then polls until it's completed +func (c NetworkSecurityPerimeterConfigurationsClient) ReconcileThenPoll(ctx context.Context, id NetworkSecurityPerimeterConfigurationId) error { + result, err := c.Reconcile(ctx, id) if err != nil { - return fmt.Errorf("performing NetworkSecurityPerimeterConfigurationsReconcile: %+v", err) + return fmt.Errorf("performing Reconcile: %+v", err) } if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after NetworkSecurityPerimeterConfigurationsReconcile: %+v", err) + return fmt.Errorf("polling after Reconcile: %+v", err) } return nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeter.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeter.go index 4b1ad3406796..a791e342b912 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeter.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfiguration.go similarity index 70% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfiguration.go index 04da3a6dfe45..44c20a00fad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfiguration.go @@ -1,8 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -11,6 +7,5 @@ type NetworkSecurityPerimeterConfiguration struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *NetworkSecurityPerimeterConfigurationProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationproperties.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationproperties.go index 9e1598ed1e48..d90e400cbdc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationproperties.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesprofile.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesprofile.go index b9b05f894ea8..b8dc37b8ccc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesprofile.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesresourceassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesresourceassociation.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesresourceassociation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesresourceassociation.go index c206d3af2587..3ac4a684c4d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesresourceassociation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_networksecurityperimeterconfigurationpropertiesresourceassociation.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessrule.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessrule.go index 534b27d785a4..c44cf60d2713 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessrule.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessruleproperties.go similarity index 63% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessruleproperties.go index e364395eebf7..4c62de4013db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessruleproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessruleproperties.go @@ -1,12 +1,12 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type NspAccessRuleProperties struct { - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - Direction *NspAccessRuleDirection `json:"direction,omitempty"` - FullyQualifiedDomainNames *[]string `json:"fullyQualifiedDomainNames,omitempty"` - NetworkSecurityPerimeters *[]NetworkSecurityPerimeter `json:"networkSecurityPerimeters,omitempty"` - Subscriptions *[]NspAccessRulePropertiesSubscriptionsInlined `json:"subscriptions,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + Direction *NspAccessRuleDirection `json:"direction,omitempty"` + FullyQualifiedDomainNames *[]string `json:"fullyQualifiedDomainNames,omitempty"` + NetworkSecurityPerimeters *[]NetworkSecurityPerimeter `json:"networkSecurityPerimeters,omitempty"` + Subscriptions *[]NspAccessRulePropertiesSubscriptionsItem `json:"subscriptions,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessrulepropertiessubscriptionsinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessrulepropertiessubscriptionsitem.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessrulepropertiessubscriptionsinlined.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessrulepropertiessubscriptionsitem.go index 07229d258dc4..acff1e813282 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_nspaccessrulepropertiessubscriptionsinlined.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_nspaccessrulepropertiessubscriptionsitem.go @@ -1,8 +1,8 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type NspAccessRulePropertiesSubscriptionsInlined struct { +type NspAccessRulePropertiesSubscriptionsItem struct { Id *string `json:"id,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_provisioningissue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_provisioningissue.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_provisioningissue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_provisioningissue.go index 0854308f44be..40675287dc71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_provisioningissue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_provisioningissue.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_provisioningissueproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_provisioningissueproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_provisioningissueproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_provisioningissueproperties.go index bc8557a4265e..5a6f9d0e36f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/model_provisioningissueproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/model_provisioningissueproperties.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/predicates.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/predicates.go index c38827dd581f..fd3dce574e9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/predicates.go @@ -1,4 +1,4 @@ -package storageaccountsnetworksecurityperimeterconfigurations +package networksecurityperimeterconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/version.go new file mode 100644 index 000000000000..a1aebcdd1e27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations/version.go @@ -0,0 +1,10 @@ +package networksecurityperimeterconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2025-06-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networksecurityperimeterconfigurations/2025-06-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/README.md new file mode 100644 index 000000000000..54ddd9dc2602 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/README.md @@ -0,0 +1,91 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup` Documentation + +The `objectreplicationpolicyoperationgroup` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup" +``` + + +### Client Initialization + +```go +client := objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyOperationGroupClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ObjectReplicationPolicyOperationGroupClient.ObjectReplicationPoliciesCreateOrUpdate` + +```go +ctx := context.TODO() +id := objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "objectReplicationPolicyId") + +payload := objectreplicationpolicyoperationgroup.ObjectReplicationPolicy{ + // ... +} + + +read, err := client.ObjectReplicationPoliciesCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ObjectReplicationPolicyOperationGroupClient.ObjectReplicationPoliciesDelete` + +```go +ctx := context.TODO() +id := objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "objectReplicationPolicyId") + +read, err := client.ObjectReplicationPoliciesDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ObjectReplicationPolicyOperationGroupClient.ObjectReplicationPoliciesGet` + +```go +ctx := context.TODO() +id := objectreplicationpolicyoperationgroup.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "objectReplicationPolicyId") + +read, err := client.ObjectReplicationPoliciesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ObjectReplicationPolicyOperationGroupClient.ObjectReplicationPoliciesList` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.ObjectReplicationPoliciesList(ctx, id)` can be used to do batched pagination +items, err := client.ObjectReplicationPoliciesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/client.go similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/client.go index 0a7166592571..323c0fb09fb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/client.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package objectreplicationpolicyoperationgroup import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ObjectReplicationPoliciesClient struct { +type ObjectReplicationPolicyOperationGroupClient struct { Client *resourcemanager.Client } -func NewObjectReplicationPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ObjectReplicationPoliciesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "objectreplicationpolicies", defaultApiVersion) +func NewObjectReplicationPolicyOperationGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*ObjectReplicationPolicyOperationGroupClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "objectreplicationpolicyoperationgroup", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating ObjectReplicationPoliciesClient: %+v", err) + return nil, fmt.Errorf("instantiating ObjectReplicationPolicyOperationGroupClient: %+v", err) } - return &ObjectReplicationPoliciesClient{ + return &ObjectReplicationPolicyOperationGroupClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/id_objectreplicationpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/id_objectreplicationpolicy.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/id_objectreplicationpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/id_objectreplicationpolicy.go index 668d239db3fc..d39d82d77a85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/id_objectreplicationpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/id_objectreplicationpolicy.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package objectreplicationpolicyoperationgroup import ( "fmt" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciescreateorupdate.go new file mode 100644 index 000000000000..d2738ffdfcc0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciescreateorupdate.go @@ -0,0 +1,57 @@ +package objectreplicationpolicyoperationgroup + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ObjectReplicationPoliciesCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ObjectReplicationPolicy +} + +// ObjectReplicationPoliciesCreateOrUpdate ... +func (c ObjectReplicationPolicyOperationGroupClient) ObjectReplicationPoliciesCreateOrUpdate(ctx context.Context, id ObjectReplicationPolicyId, input ObjectReplicationPolicy) (result ObjectReplicationPoliciesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ObjectReplicationPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciesdelete.go similarity index 69% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciesdelete.go index b8f9e282b2be..92cc0e7cdc84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciesdelete.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package objectreplicationpolicyoperationgroup import ( "context" @@ -11,13 +11,13 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type DeleteOperationResponse struct { +type ObjectReplicationPoliciesDeleteOperationResponse struct { HttpResponse *http.Response OData *odata.OData } -// Delete ... -func (c ObjectReplicationPoliciesClient) Delete(ctx context.Context, id ObjectReplicationPolicyId) (result DeleteOperationResponse, err error) { +// ObjectReplicationPoliciesDelete ... +func (c ObjectReplicationPolicyOperationGroupClient) ObjectReplicationPoliciesDelete(ctx context.Context, id ObjectReplicationPolicyId) (result ObjectReplicationPoliciesDeleteOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciesget.go similarity index 71% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciesget.go index 986601726d9e..e1b44d3926a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpoliciesget.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package objectreplicationpolicyoperationgroup import ( "context" @@ -11,20 +11,20 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type CreateOrUpdateOperationResponse struct { +type ObjectReplicationPoliciesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ObjectReplicationPolicy } -// CreateOrUpdate ... -func (c ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, id ObjectReplicationPolicyId, input ObjectReplicationPolicy) (result CreateOrUpdateOperationResponse, err error) { +// ObjectReplicationPoliciesGet ... +func (c ObjectReplicationPolicyOperationGroupClient) ObjectReplicationPoliciesGet(ctx context.Context, id ObjectReplicationPolicyId) (result ObjectReplicationPoliciesGetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusOK, }, - HttpMethod: http.MethodPut, + HttpMethod: http.MethodGet, Path: id.ID(), } @@ -33,10 +33,6 @@ func (c ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, id return } - if err = req.Marshal(input); err != nil { - return - } - var resp *client.Response resp, err = req.Execute(ctx) if resp != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpolicieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpolicieslist.go new file mode 100644 index 000000000000..fdb6b3d2fa7c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/method_objectreplicationpolicieslist.go @@ -0,0 +1,106 @@ +package objectreplicationpolicyoperationgroup + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ObjectReplicationPoliciesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ObjectReplicationPolicy +} + +type ObjectReplicationPoliciesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ObjectReplicationPolicy +} + +type ObjectReplicationPoliciesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ObjectReplicationPoliciesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ObjectReplicationPoliciesList ... +func (c ObjectReplicationPolicyOperationGroupClient) ObjectReplicationPoliciesList(ctx context.Context, id commonids.StorageAccountId) (result ObjectReplicationPoliciesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ObjectReplicationPoliciesListCustomPager{}, + Path: fmt.Sprintf("%s/objectReplicationPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ObjectReplicationPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ObjectReplicationPoliciesListComplete retrieves all the results into a single object +func (c ObjectReplicationPolicyOperationGroupClient) ObjectReplicationPoliciesListComplete(ctx context.Context, id commonids.StorageAccountId) (ObjectReplicationPoliciesListCompleteResult, error) { + return c.ObjectReplicationPoliciesListCompleteMatchingPredicate(ctx, id, ObjectReplicationPolicyOperationPredicate{}) +} + +// ObjectReplicationPoliciesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ObjectReplicationPolicyOperationGroupClient) ObjectReplicationPoliciesListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate ObjectReplicationPolicyOperationPredicate) (result ObjectReplicationPoliciesListCompleteResult, err error) { + items := make([]ObjectReplicationPolicy, 0) + + resp, err := c.ObjectReplicationPoliciesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ObjectReplicationPoliciesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicy.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicy.go index 5d8e7ab7bc42..dfcd2f73b0e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicy.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package objectreplicationpolicyoperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyfilter.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyfilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyfilter.go index e324d04d5a49..f045c3c50549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyfilter.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package objectreplicationpolicyoperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyproperties.go new file mode 100644 index 000000000000..5506a8eb7fdb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyproperties.go @@ -0,0 +1,32 @@ +package objectreplicationpolicyoperationgroup + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ObjectReplicationPolicyProperties struct { + DestinationAccount string `json:"destinationAccount"` + EnabledTime *string `json:"enabledTime,omitempty"` + Metrics *ObjectReplicationPolicyPropertiesMetrics `json:"metrics,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + PriorityReplication *ObjectReplicationPolicyPropertiesPriorityReplication `json:"priorityReplication,omitempty"` + Rules *[]ObjectReplicationPolicyRule `json:"rules,omitempty"` + SourceAccount string `json:"sourceAccount"` +} + +func (o *ObjectReplicationPolicyProperties) GetEnabledTimeAsTime() (*time.Time, error) { + if o.EnabledTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EnabledTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ObjectReplicationPolicyProperties) SetEnabledTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EnabledTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_listblobinventorypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicypropertiesmetrics.go similarity index 52% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_listblobinventorypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicypropertiesmetrics.go index 4c34345bd6e7..21cb5d915437 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies/model_listblobinventorypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicypropertiesmetrics.go @@ -1,8 +1,8 @@ -package blobinventorypolicies +package objectreplicationpolicyoperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListBlobInventoryPolicy struct { - Value *[]BlobInventoryPolicy `json:"value,omitempty"` +type ObjectReplicationPolicyPropertiesMetrics struct { + Enabled *bool `json:"enabled,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicypropertiespriorityreplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicypropertiespriorityreplication.go new file mode 100644 index 000000000000..82084910f50b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicypropertiespriorityreplication.go @@ -0,0 +1,8 @@ +package objectreplicationpolicyoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ObjectReplicationPolicyPropertiesPriorityReplication struct { + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyrule.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyrule.go index 8bbb947ff397..37cb26e4d1ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies/model_objectreplicationpolicyrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/model_objectreplicationpolicyrule.go @@ -1,4 +1,4 @@ -package objectreplicationpolicies +package objectreplicationpolicyoperationgroup // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/predicates.go new file mode 100644 index 000000000000..959a3efbb4c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/predicates.go @@ -0,0 +1,27 @@ +package objectreplicationpolicyoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ObjectReplicationPolicyOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p ObjectReplicationPolicyOperationPredicate) Matches(input ObjectReplicationPolicy) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/version.go new file mode 100644 index 000000000000..8f3a551a8c1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup/version.go @@ -0,0 +1,10 @@ +package objectreplicationpolicyoperationgroup + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2025-06-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/objectreplicationpolicyoperationgroup/2025-06-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/README.md new file mode 100644 index 000000000000..2b6960d9d24a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/README.md @@ -0,0 +1,72 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis` Documentation + +The `openapis` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis" +``` + + +### Client Initialization + +```go +client := openapis.NewOpenapisClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `OpenapisClient.DeletedAccountsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.DeletedAccountsList(ctx, id)` can be used to do batched pagination +items, err := client.DeletedAccountsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `OpenapisClient.SkusList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.SkusList(ctx, id)` can be used to do batched pagination +items, err := client.SkusListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `OpenapisClient.UsagesListByLocation` + +```go +ctx := context.TODO() +id := openapis.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.UsagesListByLocation(ctx, id)` can be used to do batched pagination +items, err := client.UsagesListByLocationComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/client.go similarity index 55% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/client.go index 75f6ec63bc9c..497a88776d17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/client.go @@ -1,4 +1,4 @@ -package localusers +package openapis import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type LocalUsersClient struct { +type OpenapisClient struct { Client *resourcemanager.Client } -func NewLocalUsersClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalUsersClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "localusers", defaultApiVersion) +func NewOpenapisClientWithBaseURI(sdkApi sdkEnv.Api) (*OpenapisClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "openapis", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating LocalUsersClient: %+v", err) + return nil, fmt.Errorf("instantiating OpenapisClient: %+v", err) } - return &LocalUsersClient{ + return &OpenapisClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/constants.go similarity index 63% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/constants.go index 25b989efcd4c..12c8ec1fc892 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/constants.go @@ -1,4 +1,4 @@ -package skus +package openapis import ( "encoding/json" @@ -103,25 +103,37 @@ func parseReasonCode(input string) (*ReasonCode, error) { type SkuName string const ( - SkuNamePremiumLRS SkuName = "Premium_LRS" - SkuNamePremiumZRS SkuName = "Premium_ZRS" - SkuNameStandardGRS SkuName = "Standard_GRS" - SkuNameStandardGZRS SkuName = "Standard_GZRS" - SkuNameStandardLRS SkuName = "Standard_LRS" - SkuNameStandardRAGRS SkuName = "Standard_RAGRS" - SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" - SkuNameStandardZRS SkuName = "Standard_ZRS" + SkuNamePremiumLRS SkuName = "Premium_LRS" + SkuNamePremiumVTwoLRS SkuName = "PremiumV2_LRS" + SkuNamePremiumVTwoZRS SkuName = "PremiumV2_ZRS" + SkuNamePremiumZRS SkuName = "Premium_ZRS" + SkuNameStandardGRS SkuName = "Standard_GRS" + SkuNameStandardGZRS SkuName = "Standard_GZRS" + SkuNameStandardLRS SkuName = "Standard_LRS" + SkuNameStandardRAGRS SkuName = "Standard_RAGRS" + SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" + SkuNameStandardVTwoGRS SkuName = "StandardV2_GRS" + SkuNameStandardVTwoGZRS SkuName = "StandardV2_GZRS" + SkuNameStandardVTwoLRS SkuName = "StandardV2_LRS" + SkuNameStandardVTwoZRS SkuName = "StandardV2_ZRS" + SkuNameStandardZRS SkuName = "Standard_ZRS" ) func PossibleValuesForSkuName() []string { return []string{ string(SkuNamePremiumLRS), + string(SkuNamePremiumVTwoLRS), + string(SkuNamePremiumVTwoZRS), string(SkuNamePremiumZRS), string(SkuNameStandardGRS), string(SkuNameStandardGZRS), string(SkuNameStandardLRS), string(SkuNameStandardRAGRS), string(SkuNameStandardRAGZRS), + string(SkuNameStandardVTwoGRS), + string(SkuNameStandardVTwoGZRS), + string(SkuNameStandardVTwoLRS), + string(SkuNameStandardVTwoZRS), string(SkuNameStandardZRS), } } @@ -142,12 +154,18 @@ func (s *SkuName) UnmarshalJSON(bytes []byte) error { func parseSkuName(input string) (*SkuName, error) { vals := map[string]SkuName{ "premium_lrs": SkuNamePremiumLRS, + "premiumv2_lrs": SkuNamePremiumVTwoLRS, + "premiumv2_zrs": SkuNamePremiumVTwoZRS, "premium_zrs": SkuNamePremiumZRS, "standard_grs": SkuNameStandardGRS, "standard_gzrs": SkuNameStandardGZRS, "standard_lrs": SkuNameStandardLRS, "standard_ragrs": SkuNameStandardRAGRS, "standard_ragzrs": SkuNameStandardRAGZRS, + "standardv2_grs": SkuNameStandardVTwoGRS, + "standardv2_gzrs": SkuNameStandardVTwoGZRS, + "standardv2_lrs": SkuNameStandardVTwoLRS, + "standardv2_zrs": SkuNameStandardVTwoZRS, "standard_zrs": SkuNameStandardZRS, } if v, ok := vals[strings.ToLower(input)]; ok { @@ -199,3 +217,56 @@ func parseSkuTier(input string) (*SkuTier, error) { out := SkuTier(input) return &out, nil } + +type UsageUnit string + +const ( + UsageUnitBytes UsageUnit = "Bytes" + UsageUnitBytesPerSecond UsageUnit = "BytesPerSecond" + UsageUnitCount UsageUnit = "Count" + UsageUnitCountsPerSecond UsageUnit = "CountsPerSecond" + UsageUnitPercent UsageUnit = "Percent" + UsageUnitSeconds UsageUnit = "Seconds" +) + +func PossibleValuesForUsageUnit() []string { + return []string{ + string(UsageUnitBytes), + string(UsageUnitBytesPerSecond), + string(UsageUnitCount), + string(UsageUnitCountsPerSecond), + string(UsageUnitPercent), + string(UsageUnitSeconds), + } +} + +func (s *UsageUnit) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUsageUnit(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUsageUnit(input string) (*UsageUnit, error) { + vals := map[string]UsageUnit{ + "bytes": UsageUnitBytes, + "bytespersecond": UsageUnitBytesPerSecond, + "count": UsageUnitCount, + "countspersecond": UsageUnitCountsPerSecond, + "percent": UsageUnitPercent, + "seconds": UsageUnitSeconds, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UsageUnit(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/id_location.go new file mode 100644 index 000000000000..f0af736d1495 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/id_location.go @@ -0,0 +1,121 @@ +package openapis + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocationId{}) +} + +var _ resourceids.ResourceId = &LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Storage/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_deletedaccountslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_deletedaccountslist.go new file mode 100644 index 000000000000..5659f8f0e36a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_deletedaccountslist.go @@ -0,0 +1,106 @@ +package openapis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletedAccountsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]DeletedAccount +} + +type DeletedAccountsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []DeletedAccount +} + +type DeletedAccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeletedAccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// DeletedAccountsList ... +func (c OpenapisClient) DeletedAccountsList(ctx context.Context, id commonids.SubscriptionId) (result DeletedAccountsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &DeletedAccountsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Storage/deletedAccounts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]DeletedAccount `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// DeletedAccountsListComplete retrieves all the results into a single object +func (c OpenapisClient) DeletedAccountsListComplete(ctx context.Context, id commonids.SubscriptionId) (DeletedAccountsListCompleteResult, error) { + return c.DeletedAccountsListCompleteMatchingPredicate(ctx, id, DeletedAccountOperationPredicate{}) +} + +// DeletedAccountsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c OpenapisClient) DeletedAccountsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DeletedAccountOperationPredicate) (result DeletedAccountsListCompleteResult, err error) { + items := make([]DeletedAccount, 0) + + resp, err := c.DeletedAccountsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = DeletedAccountsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_skuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_skuslist.go new file mode 100644 index 000000000000..d979d6a61d8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_skuslist.go @@ -0,0 +1,106 @@ +package openapis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkusListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SkuInformation +} + +type SkusListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SkuInformation +} + +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// SkusList ... +func (c OpenapisClient) SkusList(ctx context.Context, id commonids.SubscriptionId) (result SkusListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &SkusListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Storage/skus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SkuInformation `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// SkusListComplete retrieves all the results into a single object +func (c OpenapisClient) SkusListComplete(ctx context.Context, id commonids.SubscriptionId) (SkusListCompleteResult, error) { + return c.SkusListCompleteMatchingPredicate(ctx, id, SkuInformationOperationPredicate{}) +} + +// SkusListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c OpenapisClient) SkusListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SkuInformationOperationPredicate) (result SkusListCompleteResult, err error) { + items := make([]SkuInformation, 0) + + resp, err := c.SkusList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = SkusListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_usageslistbylocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_usageslistbylocation.go new file mode 100644 index 000000000000..9f6f2afe1a8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/method_usageslistbylocation.go @@ -0,0 +1,105 @@ +package openapis + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UsagesListByLocationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Usage +} + +type UsagesListByLocationCompleteResult struct { + LatestHttpResponse *http.Response + Items []Usage +} + +type UsagesListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// UsagesListByLocation ... +func (c OpenapisClient) UsagesListByLocation(ctx context.Context, id LocationId) (result UsagesListByLocationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &UsagesListByLocationCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Usage `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// UsagesListByLocationComplete retrieves all the results into a single object +func (c OpenapisClient) UsagesListByLocationComplete(ctx context.Context, id LocationId) (UsagesListByLocationCompleteResult, error) { + return c.UsagesListByLocationCompleteMatchingPredicate(ctx, id, UsageOperationPredicate{}) +} + +// UsagesListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c OpenapisClient) UsagesListByLocationCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate UsageOperationPredicate) (result UsagesListByLocationCompleteResult, err error) { + items := make([]Usage, 0) + + resp, err := c.UsagesListByLocation(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = UsagesListByLocationCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_deletedaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_deletedaccount.go new file mode 100644 index 000000000000..7ffafc7ed07d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_deletedaccount.go @@ -0,0 +1,11 @@ +package openapis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletedAccount struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *DeletedAccountProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_deletedaccountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_deletedaccountproperties.go new file mode 100644 index 000000000000..96b3f388a413 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_deletedaccountproperties.go @@ -0,0 +1,12 @@ +package openapis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletedAccountProperties struct { + CreationTime *string `json:"creationTime,omitempty"` + DeletionTime *string `json:"deletionTime,omitempty"` + Location *string `json:"location,omitempty"` + RestoreReference *string `json:"restoreReference,omitempty"` + StorageAccountResourceId *string `json:"storageAccountResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_restriction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_restriction.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_restriction.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_restriction.go index a0bb9517284a..a1e99094f8b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_restriction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_restriction.go @@ -1,4 +1,4 @@ -package skus +package openapis // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_skucapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skucapability.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_skucapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skucapability.go index 92bac03a1202..2da0a958e3af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/model_skucapability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skucapability.go @@ -1,4 +1,4 @@ -package skus +package openapis // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skuinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skuinformation.go new file mode 100644 index 000000000000..b8de2a074c95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skuinformation.go @@ -0,0 +1,15 @@ +package openapis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuInformation struct { + Capabilities *[]SKUCapability `json:"capabilities,omitempty"` + Kind *Kind `json:"kind,omitempty"` + LocationInfo *[]SkuInformationLocationInfoItem `json:"locationInfo,omitempty"` + Locations *[]string `json:"locations,omitempty"` + Name SkuName `json:"name"` + ResourceType *string `json:"resourceType,omitempty"` + Restrictions *[]Restriction `json:"restrictions,omitempty"` + Tier *SkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skuinformationlocationinfoitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skuinformationlocationinfoitem.go new file mode 100644 index 000000000000..4f4eba36cbda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_skuinformationlocationinfoitem.go @@ -0,0 +1,13 @@ +package openapis + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuInformationLocationInfoItem struct { + Location *string `json:"location,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_usage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_usage.go new file mode 100644 index 000000000000..8b29130326d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_usage.go @@ -0,0 +1,11 @@ +package openapis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Usage struct { + CurrentValue *int64 `json:"currentValue,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Name *UsageName `json:"name,omitempty"` + Unit *UsageUnit `json:"unit,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_usagename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_usagename.go new file mode 100644 index 000000000000..5a9c774f84e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/model_usagename.go @@ -0,0 +1,9 @@ +package openapis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UsageName struct { + LocalizedValue *string `json:"localizedValue,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/predicates.go new file mode 100644 index 000000000000..e13792450855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/predicates.go @@ -0,0 +1,58 @@ +package openapis + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletedAccountOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p DeletedAccountOperationPredicate) Matches(input DeletedAccount) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SkuInformationOperationPredicate struct { + ResourceType *string +} + +func (p SkuInformationOperationPredicate) Matches(input SkuInformation) bool { + + if p.ResourceType != nil && (input.ResourceType == nil || *p.ResourceType != *input.ResourceType) { + return false + } + + return true +} + +type UsageOperationPredicate struct { + CurrentValue *int64 + Limit *int64 +} + +func (p UsageOperationPredicate) Matches(input Usage) bool { + + if p.CurrentValue != nil && (input.CurrentValue == nil || *p.CurrentValue != *input.CurrentValue) { + return false + } + + if p.Limit != nil && (input.Limit == nil || *p.Limit != *input.Limit) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/version.go similarity index 62% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/version.go index 46551deffdb5..eb6e74fe71dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis/version.go @@ -1,10 +1,10 @@ -package localusers +package openapis // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/localusers/2023-05-01" + return "hashicorp/go-azure-sdk/openapis/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/README.md index e7c6c994dafa..d071932147f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections" ``` @@ -59,12 +59,13 @@ if model := read.Model; model != nil { ctx := context.TODO() id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") -read, err := client.List(ctx, id) +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) if err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object +for _, item := range items { + // do something } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/id_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/id_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/id_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_list.go new file mode 100644 index 000000000000..62816748c6b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_list.go @@ -0,0 +1,106 @@ +package privateendpointconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateEndpointConnection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateEndpointConnection +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateEndpointConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PrivateEndpointConnectionsClient) ListComplete(ctx context.Context, id commonids.StorageAccountId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PrivateEndpointConnectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateEndpointConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate PrivateEndpointConnectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PrivateEndpointConnection, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_put.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/method_put.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/method_put.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/predicates.go new file mode 100644 index 000000000000..4a03a91ce52c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/predicates.go @@ -0,0 +1,27 @@ +package privateendpointconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p PrivateEndpointConnectionOperationPredicate) Matches(input PrivateEndpointConnection) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/version.go index 73acafaf02b5..30109084b6d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections/version.go @@ -3,8 +3,8 @@ package privateendpointconnections // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/privateendpointconnections/2023-05-01" + return "hashicorp/go-azure-sdk/privateendpointconnections/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/README.md similarity index 59% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/README.md index e7f348ddae13..6b8f4b097ec2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices` Documentation -The `blobservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `queueservices` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,19 +9,19 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices" ``` ### Client Initialization ```go -client := blobservice.NewBlobServiceClientWithBaseURI("https://management.azure.com") +client := queueservices.NewQueueServicesClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` -### Example Usage: `BlobServiceClient.GetServiceProperties` +### Example Usage: `QueueServicesClient.GetServiceProperties` ```go ctx := context.TODO() @@ -37,7 +37,7 @@ if model := read.Model; model != nil { ``` -### Example Usage: `BlobServiceClient.List` +### Example Usage: `QueueServicesClient.List` ```go ctx := context.TODO() @@ -53,13 +53,30 @@ if model := read.Model; model != nil { ``` -### Example Usage: `BlobServiceClient.SetServiceProperties` +### Example Usage: `QueueServicesClient.QueueList` ```go ctx := context.TODO() id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") -payload := blobservice.BlobServiceProperties{ +// alternatively `client.QueueList(ctx, id, queueservices.DefaultQueueListOperationOptions())` can be used to do batched pagination +items, err := client.QueueListComplete(ctx, id, queueservices.DefaultQueueListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `QueueServicesClient.SetServiceProperties` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +payload := queueservices.QueueServiceProperties{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/client.go similarity index 53% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/client.go index 8e7d9478e1ee..e7c94a0bfc82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/client.go @@ -1,4 +1,4 @@ -package blobservice +package queueservices import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type BlobServiceClient struct { +type QueueServicesClient struct { Client *resourcemanager.Client } -func NewBlobServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobServiceClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "blobservice", defaultApiVersion) +func NewQueueServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*QueueServicesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "queueservices", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating BlobServiceClient: %+v", err) + return nil, fmt.Errorf("instantiating QueueServicesClient: %+v", err) } - return &BlobServiceClient{ + return &QueueServicesClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/constants.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/constants.go index c3e7975c6f40..8b517fb76bf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/constants.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package queueservices import ( "encoding/json" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueservicesgetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_getserviceproperties.go similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueservicesgetserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_getserviceproperties.go index f78f2a984e87..3059840122b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueservicesgetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_getserviceproperties.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type QueueServicesGetServicePropertiesOperationResponse struct { +type GetServicePropertiesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *QueueServiceProperties } -// QueueServicesGetServiceProperties ... -func (c QueueServicePropertiesClient) QueueServicesGetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result QueueServicesGetServicePropertiesOperationResponse, err error) { +// GetServiceProperties ... +func (c QueueServicesClient) GetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result GetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueserviceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_list.go similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueserviceslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_list.go index 4838af6a6108..f0357fb7e948 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueserviceslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_list.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type QueueServicesListOperationResponse struct { +type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ListQueueServices } -// QueueServicesList ... -func (c QueueServicePropertiesClient) QueueServicesList(ctx context.Context, id commonids.StorageAccountId) (result QueueServicesListOperationResponse, err error) { +// List ... +func (c QueueServicesClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_queuelist.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuelist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_queuelist.go index 32f4154907a2..f9932e835b6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuelist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_queuelist.go @@ -1,4 +1,4 @@ -package queueservice +package queueservices import ( "context" @@ -69,7 +69,7 @@ func (p *QueueListCustomPager) NextPageLink() *odata.Link { } // QueueList ... -func (c QueueServiceClient) QueueList(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions) (result QueueListOperationResponse, err error) { +func (c QueueServicesClient) QueueList(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions) (result QueueListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -109,12 +109,12 @@ func (c QueueServiceClient) QueueList(ctx context.Context, id commonids.StorageA } // QueueListComplete retrieves all the results into a single object -func (c QueueServiceClient) QueueListComplete(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions) (QueueListCompleteResult, error) { +func (c QueueServicesClient) QueueListComplete(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions) (QueueListCompleteResult, error) { return c.QueueListCompleteMatchingPredicate(ctx, id, options, ListQueueOperationPredicate{}) } // QueueListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c QueueServiceClient) QueueListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions, predicate ListQueueOperationPredicate) (result QueueListCompleteResult, err error) { +func (c QueueServicesClient) QueueListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions, predicate ListQueueOperationPredicate) (result QueueListCompleteResult, err error) { items := make([]ListQueue, 0) resp, err := c.QueueList(ctx, id, options) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueservicessetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_setserviceproperties.go similarity index 75% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueservicessetserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_setserviceproperties.go index 2d8525c0af1a..e09022c7d640 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/method_queueservicessetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/method_setserviceproperties.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type QueueServicesSetServicePropertiesOperationResponse struct { +type SetServicePropertiesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *QueueServiceProperties } -// QueueServicesSetServiceProperties ... -func (c QueueServicePropertiesClient) QueueServicesSetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input QueueServiceProperties) (result QueueServicesSetServicePropertiesOperationResponse, err error) { +// SetServiceProperties ... +func (c QueueServicesClient) SetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input QueueServiceProperties) (result SetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_corsrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_corsrule.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_corsrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_corsrule.go index 443be0241683..5cda7466a402 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_corsrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_corsrule.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_corsrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_corsrules.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_corsrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_corsrules.go index 40207862d8a5..b3a24653ee7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_corsrules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_corsrules.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_listqueue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueue.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_listqueue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueue.go index 2b7f481a4592..ea165d6be5af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_listqueue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueue.go @@ -1,4 +1,4 @@ -package queueservice +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_listqueueproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueueproperties.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_listqueueproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueueproperties.go index baec691d8582..5539158e1278 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_listqueueproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueueproperties.go @@ -1,4 +1,4 @@ -package queueservice +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_listqueueservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueueservices.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_listqueueservices.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueueservices.go index 00d045aa85c3..8a254f7e6a97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_listqueueservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_listqueueservices.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_queueserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_queueserviceproperties.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_queueserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_queueserviceproperties.go index 2553070b0e14..cf0143864760 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_queueserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_queueserviceproperties.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_queueservicepropertiesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_queueservicepropertiesproperties.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_queueservicepropertiesproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_queueservicepropertiesproperties.go index 0c685184ff52..3d4ffb13992d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/model_queueservicepropertiesproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/model_queueservicepropertiesproperties.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/predicates.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/predicates.go index 51301a00a4ae..1d653499ed95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/predicates.go @@ -1,4 +1,4 @@ -package queueservice +package queueservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/version.go new file mode 100644 index 000000000000..16177cf5d6ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices/version.go @@ -0,0 +1,10 @@ +package queueservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2025-06-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/queueservices/2025-06-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/README.md similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/README.md index 205097f73cf9..ad0a4d665878 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations` Documentation -The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `storageaccountmigrations` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,25 +9,25 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations" ``` ### Client Initialization ```go -client := privatelinkresources.NewPrivateLinkResourcesClientWithBaseURI("https://management.azure.com") +client := storageaccountmigrations.NewStorageAccountMigrationsClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` -### Example Usage: `PrivateLinkResourcesClient.ListByStorageAccount` +### Example Usage: `StorageAccountMigrationsClient.StorageAccountsGetCustomerInitiatedMigration` ```go ctx := context.TODO() id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") -read, err := client.ListByStorageAccount(ctx, id) +read, err := client.StorageAccountsGetCustomerInitiatedMigration(ctx, id) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/client.go new file mode 100644 index 000000000000..fb2021991f00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/client.go @@ -0,0 +1,26 @@ +package storageaccountmigrations + +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 StorageAccountMigrationsClient struct { + Client *resourcemanager.Client +} + +func NewStorageAccountMigrationsClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageAccountMigrationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "storageaccountmigrations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating StorageAccountMigrationsClient: %+v", err) + } + + return &StorageAccountMigrationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/constants.go similarity index 71% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/constants.go index 5d6f9466a858..bd13b5436838 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/constants.go @@ -1,4 +1,4 @@ -package accountmigrations +package storageaccountmigrations import ( "encoding/json" @@ -62,25 +62,37 @@ func parseMigrationStatus(input string) (*MigrationStatus, error) { type SkuName string const ( - SkuNamePremiumLRS SkuName = "Premium_LRS" - SkuNamePremiumZRS SkuName = "Premium_ZRS" - SkuNameStandardGRS SkuName = "Standard_GRS" - SkuNameStandardGZRS SkuName = "Standard_GZRS" - SkuNameStandardLRS SkuName = "Standard_LRS" - SkuNameStandardRAGRS SkuName = "Standard_RAGRS" - SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" - SkuNameStandardZRS SkuName = "Standard_ZRS" + SkuNamePremiumLRS SkuName = "Premium_LRS" + SkuNamePremiumVTwoLRS SkuName = "PremiumV2_LRS" + SkuNamePremiumVTwoZRS SkuName = "PremiumV2_ZRS" + SkuNamePremiumZRS SkuName = "Premium_ZRS" + SkuNameStandardGRS SkuName = "Standard_GRS" + SkuNameStandardGZRS SkuName = "Standard_GZRS" + SkuNameStandardLRS SkuName = "Standard_LRS" + SkuNameStandardRAGRS SkuName = "Standard_RAGRS" + SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" + SkuNameStandardVTwoGRS SkuName = "StandardV2_GRS" + SkuNameStandardVTwoGZRS SkuName = "StandardV2_GZRS" + SkuNameStandardVTwoLRS SkuName = "StandardV2_LRS" + SkuNameStandardVTwoZRS SkuName = "StandardV2_ZRS" + SkuNameStandardZRS SkuName = "Standard_ZRS" ) func PossibleValuesForSkuName() []string { return []string{ string(SkuNamePremiumLRS), + string(SkuNamePremiumVTwoLRS), + string(SkuNamePremiumVTwoZRS), string(SkuNamePremiumZRS), string(SkuNameStandardGRS), string(SkuNameStandardGZRS), string(SkuNameStandardLRS), string(SkuNameStandardRAGRS), string(SkuNameStandardRAGZRS), + string(SkuNameStandardVTwoGRS), + string(SkuNameStandardVTwoGZRS), + string(SkuNameStandardVTwoLRS), + string(SkuNameStandardVTwoZRS), string(SkuNameStandardZRS), } } @@ -101,12 +113,18 @@ func (s *SkuName) UnmarshalJSON(bytes []byte) error { func parseSkuName(input string) (*SkuName, error) { vals := map[string]SkuName{ "premium_lrs": SkuNamePremiumLRS, + "premiumv2_lrs": SkuNamePremiumVTwoLRS, + "premiumv2_zrs": SkuNamePremiumVTwoZRS, "premium_zrs": SkuNamePremiumZRS, "standard_grs": SkuNameStandardGRS, "standard_gzrs": SkuNameStandardGZRS, "standard_lrs": SkuNameStandardLRS, "standard_ragrs": SkuNameStandardRAGRS, "standard_ragzrs": SkuNameStandardRAGZRS, + "standardv2_grs": SkuNameStandardVTwoGRS, + "standardv2_gzrs": SkuNameStandardVTwoGZRS, + "standardv2_lrs": SkuNameStandardVTwoLRS, + "standardv2_zrs": SkuNameStandardVTwoZRS, "standard_zrs": SkuNameStandardZRS, } if v, ok := vals[strings.ToLower(input)]; ok { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go index 4e4a8102905c..65c501dbe95c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go @@ -1,4 +1,4 @@ -package accountmigrations +package storageaccountmigrations import ( "context" @@ -20,7 +20,7 @@ type StorageAccountsGetCustomerInitiatedMigrationOperationResponse struct { } // StorageAccountsGetCustomerInitiatedMigration ... -func (c AccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId) (result StorageAccountsGetCustomerInitiatedMigrationOperationResponse, err error) { +func (c StorageAccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId) (result StorageAccountsGetCustomerInitiatedMigrationOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/model_storageaccountmigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/model_storageaccountmigration.go new file mode 100644 index 000000000000..5fe9b628bc2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/model_storageaccountmigration.go @@ -0,0 +1,11 @@ +package storageaccountmigrations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageAccountMigration struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties StorageAccountMigrationProperties `json:"properties"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/model_storageaccountmigrationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/model_storageaccountmigrationproperties.go new file mode 100644 index 000000000000..d24c3db57d31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/model_storageaccountmigrationproperties.go @@ -0,0 +1,11 @@ +package storageaccountmigrations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageAccountMigrationProperties struct { + MigrationFailedDetailedReason *string `json:"migrationFailedDetailedReason,omitempty"` + MigrationFailedReason *string `json:"migrationFailedReason,omitempty"` + MigrationStatus *MigrationStatus `json:"migrationStatus,omitempty"` + TargetSkuName SkuName `json:"targetSkuName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/version.go new file mode 100644 index 000000000000..c1dd3c485001 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations/version.go @@ -0,0 +1,10 @@ +package storageaccountmigrations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2025-06-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/storageaccountmigrations/2025-06-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/README.md similarity index 81% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/README.md index c9d15a88a693..5243de6d8e6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts` Documentation -The `storageaccounts` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `storageaccounts` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts" ``` @@ -71,6 +71,23 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ``` +### Example Usage: `StorageAccountsClient.CustomerInitiatedMigration` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +payload := storageaccounts.StorageAccountMigration{ + // ... +} + + +if err := client.CustomerInitiatedMigrationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + ### Example Usage: `StorageAccountsClient.Delete` ```go @@ -219,6 +236,22 @@ if model := read.Model; model != nil { ``` +### Example Usage: `StorageAccountsClient.PrivateLinkResourcesListByStorageAccount` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +read, err := client.PrivateLinkResourcesListByStorageAccount(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + ### Example Usage: `StorageAccountsClient.RegenerateKey` ```go @@ -273,6 +306,23 @@ if model := read.Model; model != nil { ``` +### Example Usage: `StorageAccountsClient.StorageTaskAssignmentsInstancesReportList` + +```go +ctx := context.TODO() +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") + +// alternatively `client.StorageTaskAssignmentsInstancesReportList(ctx, id, storageaccounts.DefaultStorageTaskAssignmentsInstancesReportListOperationOptions())` can be used to do batched pagination +items, err := client.StorageTaskAssignmentsInstancesReportListComplete(ctx, id, storageaccounts.DefaultStorageTaskAssignmentsInstancesReportListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + ### Example Usage: `StorageAccountsClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/constants.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/constants.go index 8e8ea08ba8be..b7239cb5c8c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/constants.go @@ -528,6 +528,44 @@ func parseDnsEndpointType(input string) (*DnsEndpointType, error) { return &out, nil } +type Expand string + +const ( + ExpandKerb Expand = "kerb" +) + +func PossibleValuesForExpand() []string { + return []string{ + string(ExpandKerb), + } +} + +func (s *Expand) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpand(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpand(input string) (*Expand, error) { + vals := map[string]Expand{ + "kerb": ExpandKerb, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Expand(input) + return &out, nil +} + type ExpirationAction string const ( @@ -906,24 +944,32 @@ func parseLargeFileSharesState(input string) (*LargeFileSharesState, error) { return &out, nil } -type ListKeyExpand string +type MigrationStatus string const ( - ListKeyExpandKerb ListKeyExpand = "kerb" + MigrationStatusComplete MigrationStatus = "Complete" + MigrationStatusFailed MigrationStatus = "Failed" + MigrationStatusInProgress MigrationStatus = "InProgress" + MigrationStatusInvalid MigrationStatus = "Invalid" + MigrationStatusSubmittedForConversion MigrationStatus = "SubmittedForConversion" ) -func PossibleValuesForListKeyExpand() []string { +func PossibleValuesForMigrationStatus() []string { return []string{ - string(ListKeyExpandKerb), + string(MigrationStatusComplete), + string(MigrationStatusFailed), + string(MigrationStatusInProgress), + string(MigrationStatusInvalid), + string(MigrationStatusSubmittedForConversion), } } -func (s *ListKeyExpand) UnmarshalJSON(bytes []byte) error { +func (s *MigrationStatus) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseListKeyExpand(decoded) + out, err := parseMigrationStatus(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -931,16 +977,20 @@ func (s *ListKeyExpand) UnmarshalJSON(bytes []byte) error { return nil } -func parseListKeyExpand(input string) (*ListKeyExpand, error) { - vals := map[string]ListKeyExpand{ - "kerb": ListKeyExpandKerb, +func parseMigrationStatus(input string) (*MigrationStatus, error) { + vals := map[string]MigrationStatus{ + "complete": MigrationStatusComplete, + "failed": MigrationStatusFailed, + "inprogress": MigrationStatusInProgress, + "invalid": MigrationStatusInvalid, + "submittedforconversion": MigrationStatusSubmittedForConversion, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ListKeyExpand(input) + out := MigrationStatus(input) return &out, nil } @@ -1399,6 +1449,88 @@ func parseRoutingChoice(input string) (*RoutingChoice, error) { return &out, nil } +type RunResult string + +const ( + RunResultFailed RunResult = "Failed" + RunResultSucceeded RunResult = "Succeeded" +) + +func PossibleValuesForRunResult() []string { + return []string{ + string(RunResultFailed), + string(RunResultSucceeded), + } +} + +func (s *RunResult) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRunResult(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRunResult(input string) (*RunResult, error) { + vals := map[string]RunResult{ + "failed": RunResultFailed, + "succeeded": RunResultSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RunResult(input) + return &out, nil +} + +type RunStatusEnum string + +const ( + RunStatusEnumFinished RunStatusEnum = "Finished" + RunStatusEnumInProgress RunStatusEnum = "InProgress" +) + +func PossibleValuesForRunStatusEnum() []string { + return []string{ + string(RunStatusEnumFinished), + string(RunStatusEnumInProgress), + } +} + +func (s *RunStatusEnum) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRunStatusEnum(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRunStatusEnum(input string) (*RunStatusEnum, error) { + vals := map[string]RunStatusEnum{ + "finished": RunStatusEnumFinished, + "inprogress": RunStatusEnumInProgress, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RunStatusEnum(input) + return &out, nil +} + type Services string const ( @@ -1584,25 +1716,37 @@ func parseSkuConversionStatus(input string) (*SkuConversionStatus, error) { type SkuName string const ( - SkuNamePremiumLRS SkuName = "Premium_LRS" - SkuNamePremiumZRS SkuName = "Premium_ZRS" - SkuNameStandardGRS SkuName = "Standard_GRS" - SkuNameStandardGZRS SkuName = "Standard_GZRS" - SkuNameStandardLRS SkuName = "Standard_LRS" - SkuNameStandardRAGRS SkuName = "Standard_RAGRS" - SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" - SkuNameStandardZRS SkuName = "Standard_ZRS" + SkuNamePremiumLRS SkuName = "Premium_LRS" + SkuNamePremiumVTwoLRS SkuName = "PremiumV2_LRS" + SkuNamePremiumVTwoZRS SkuName = "PremiumV2_ZRS" + SkuNamePremiumZRS SkuName = "Premium_ZRS" + SkuNameStandardGRS SkuName = "Standard_GRS" + SkuNameStandardGZRS SkuName = "Standard_GZRS" + SkuNameStandardLRS SkuName = "Standard_LRS" + SkuNameStandardRAGRS SkuName = "Standard_RAGRS" + SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" + SkuNameStandardVTwoGRS SkuName = "StandardV2_GRS" + SkuNameStandardVTwoGZRS SkuName = "StandardV2_GZRS" + SkuNameStandardVTwoLRS SkuName = "StandardV2_LRS" + SkuNameStandardVTwoZRS SkuName = "StandardV2_ZRS" + SkuNameStandardZRS SkuName = "Standard_ZRS" ) func PossibleValuesForSkuName() []string { return []string{ string(SkuNamePremiumLRS), + string(SkuNamePremiumVTwoLRS), + string(SkuNamePremiumVTwoZRS), string(SkuNamePremiumZRS), string(SkuNameStandardGRS), string(SkuNameStandardGZRS), string(SkuNameStandardLRS), string(SkuNameStandardRAGRS), string(SkuNameStandardRAGZRS), + string(SkuNameStandardVTwoGRS), + string(SkuNameStandardVTwoGZRS), + string(SkuNameStandardVTwoLRS), + string(SkuNameStandardVTwoZRS), string(SkuNameStandardZRS), } } @@ -1623,12 +1767,18 @@ func (s *SkuName) UnmarshalJSON(bytes []byte) error { func parseSkuName(input string) (*SkuName, error) { vals := map[string]SkuName{ "premium_lrs": SkuNamePremiumLRS, + "premiumv2_lrs": SkuNamePremiumVTwoLRS, + "premiumv2_zrs": SkuNamePremiumVTwoZRS, "premium_zrs": SkuNamePremiumZRS, "standard_grs": SkuNameStandardGRS, "standard_gzrs": SkuNameStandardGZRS, "standard_lrs": SkuNameStandardLRS, "standard_ragrs": SkuNameStandardRAGRS, "standard_ragzrs": SkuNameStandardRAGZRS, + "standardv2_grs": SkuNameStandardVTwoGRS, + "standardv2_gzrs": SkuNameStandardVTwoGZRS, + "standardv2_lrs": SkuNameStandardVTwoLRS, + "standardv2_zrs": SkuNameStandardVTwoZRS, "standard_zrs": SkuNameStandardZRS, } if v, ok := vals[strings.ToLower(input)]; ok { @@ -1731,6 +1881,44 @@ func parseState(input string) (*State, error) { return &out, nil } +type StorageAccountCheckNameAvailabilityParametersType string + +const ( + StorageAccountCheckNameAvailabilityParametersTypeMicrosoftPointStorageStorageAccounts StorageAccountCheckNameAvailabilityParametersType = "Microsoft.Storage/storageAccounts" +) + +func PossibleValuesForStorageAccountCheckNameAvailabilityParametersType() []string { + return []string{ + string(StorageAccountCheckNameAvailabilityParametersTypeMicrosoftPointStorageStorageAccounts), + } +} + +func (s *StorageAccountCheckNameAvailabilityParametersType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStorageAccountCheckNameAvailabilityParametersType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStorageAccountCheckNameAvailabilityParametersType(input string) (*StorageAccountCheckNameAvailabilityParametersType, error) { + vals := map[string]StorageAccountCheckNameAvailabilityParametersType{ + "microsoft.storage/storageaccounts": StorageAccountCheckNameAvailabilityParametersTypeMicrosoftPointStorageStorageAccounts, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StorageAccountCheckNameAvailabilityParametersType(input) + return &out, nil +} + type StorageAccountExpand string const ( @@ -1772,24 +1960,26 @@ func parseStorageAccountExpand(input string) (*StorageAccountExpand, error) { return &out, nil } -type Type string +type ZonePlacementPolicy string const ( - TypeMicrosoftPointStorageStorageAccounts Type = "Microsoft.Storage/storageAccounts" + ZonePlacementPolicyAny ZonePlacementPolicy = "Any" + ZonePlacementPolicyNone ZonePlacementPolicy = "None" ) -func PossibleValuesForType() []string { +func PossibleValuesForZonePlacementPolicy() []string { return []string{ - string(TypeMicrosoftPointStorageStorageAccounts), + string(ZonePlacementPolicyAny), + string(ZonePlacementPolicyNone), } } -func (s *Type) UnmarshalJSON(bytes []byte) error { +func (s *ZonePlacementPolicy) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseType(decoded) + out, err := parseZonePlacementPolicy(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -1797,15 +1987,16 @@ func (s *Type) UnmarshalJSON(bytes []byte) error { return nil } -func parseType(input string) (*Type, error) { - vals := map[string]Type{ - "microsoft.storage/storageaccounts": TypeMicrosoftPointStorageStorageAccounts, +func parseZonePlacementPolicy(input string) (*ZonePlacementPolicy, error) { + vals := map[string]ZonePlacementPolicy{ + "any": ZonePlacementPolicyAny, + "none": ZonePlacementPolicyNone, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := Type(input) + out := ZonePlacementPolicy(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_aborthierarchicalnamespacemigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_aborthierarchicalnamespacemigration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_aborthierarchicalnamespacemigration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_aborthierarchicalnamespacemigration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_checknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_checknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_checknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/method_storageaccountscustomerinitiatedmigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_customerinitiatedmigration.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/method_storageaccountscustomerinitiatedmigration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_customerinitiatedmigration.go index c1630febaa2d..648a2c27f59f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/method_storageaccountscustomerinitiatedmigration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_customerinitiatedmigration.go @@ -1,4 +1,4 @@ -package accountmigrations +package storageaccounts import ( "context" @@ -15,14 +15,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type StorageAccountsCustomerInitiatedMigrationOperationResponse struct { +type CustomerInitiatedMigrationOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData } -// StorageAccountsCustomerInitiatedMigration ... -func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId, input StorageAccountMigration) (result StorageAccountsCustomerInitiatedMigrationOperationResponse, err error) { +// CustomerInitiatedMigration ... +func (c StorageAccountsClient) CustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId, input StorageAccountMigration) (result CustomerInitiatedMigrationOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -60,15 +60,15 @@ func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigration(ctx c return } -// StorageAccountsCustomerInitiatedMigrationThenPoll performs StorageAccountsCustomerInitiatedMigration then polls until it's completed -func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigrationThenPoll(ctx context.Context, id commonids.StorageAccountId, input StorageAccountMigration) error { - result, err := c.StorageAccountsCustomerInitiatedMigration(ctx, id, input) +// CustomerInitiatedMigrationThenPoll performs CustomerInitiatedMigration then polls until it's completed +func (c StorageAccountsClient) CustomerInitiatedMigrationThenPoll(ctx context.Context, id commonids.StorageAccountId, input StorageAccountMigration) error { + result, err := c.CustomerInitiatedMigration(ctx, id, input) if err != nil { - return fmt.Errorf("performing StorageAccountsCustomerInitiatedMigration: %+v", err) + return fmt.Errorf("performing CustomerInitiatedMigration: %+v", err) } if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after StorageAccountsCustomerInitiatedMigration: %+v", err) + return fmt.Errorf("polling after CustomerInitiatedMigration: %+v", err) } return nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_failover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_failover.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_failover.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_failover.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_getproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_getproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_getproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_getproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_hierarchicalnamespacemigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_hierarchicalnamespacemigration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_hierarchicalnamespacemigration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_hierarchicalnamespacemigration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listaccountsas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listaccountsas.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listaccountsas.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listaccountsas.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listkeys.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listkeys.go index 0c1536ce92ec..189d3287f29d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listkeys.go @@ -20,7 +20,7 @@ type ListKeysOperationResponse struct { } type ListKeysOperationOptions struct { - Expand *ListKeyExpand + Expand *Expand } func DefaultListKeysOperationOptions() ListKeysOperationOptions { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listservicesas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listservicesas.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_listservicesas.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_listservicesas.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/method_listbystorageaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_privatelinkresourceslistbystorageaccount.go similarity index 75% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/method_listbystorageaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_privatelinkresourceslistbystorageaccount.go index c824d249e2fa..917e23f6e721 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/method_listbystorageaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_privatelinkresourceslistbystorageaccount.go @@ -1,4 +1,4 @@ -package privatelinkresources +package storageaccounts import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ListByStorageAccountOperationResponse struct { +type PrivateLinkResourcesListByStorageAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrivateLinkResourceListResult } -// ListByStorageAccount ... -func (c PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Context, id commonids.StorageAccountId) (result ListByStorageAccountOperationResponse, err error) { +// PrivateLinkResourcesListByStorageAccount ... +func (c StorageAccountsClient) PrivateLinkResourcesListByStorageAccount(ctx context.Context, id commonids.StorageAccountId) (result PrivateLinkResourcesListByStorageAccountOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_regeneratekey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_regeneratekey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_regeneratekey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_restoreblobranges.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_restoreblobranges.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_restoreblobranges.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_restoreblobranges.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_revokeuserdelegationkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_revokeuserdelegationkeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_revokeuserdelegationkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_revokeuserdelegationkeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_storagetaskassignmentsinstancesreportlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_storagetaskassignmentsinstancesreportlist.go new file mode 100644 index 000000000000..a001d20f287a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_storagetaskassignmentsinstancesreportlist.go @@ -0,0 +1,139 @@ +package storageaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageTaskAssignmentsInstancesReportListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]StorageTaskReportInstance +} + +type StorageTaskAssignmentsInstancesReportListCompleteResult struct { + LatestHttpResponse *http.Response + Items []StorageTaskReportInstance +} + +type StorageTaskAssignmentsInstancesReportListOperationOptions struct { + Filter *string + Maxpagesize *int64 +} + +func DefaultStorageTaskAssignmentsInstancesReportListOperationOptions() StorageTaskAssignmentsInstancesReportListOperationOptions { + return StorageTaskAssignmentsInstancesReportListOperationOptions{} +} + +func (o StorageTaskAssignmentsInstancesReportListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o StorageTaskAssignmentsInstancesReportListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o StorageTaskAssignmentsInstancesReportListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Maxpagesize != nil { + out.Append("$maxpagesize", fmt.Sprintf("%v", *o.Maxpagesize)) + } + return &out +} + +type StorageTaskAssignmentsInstancesReportListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StorageTaskAssignmentsInstancesReportListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// StorageTaskAssignmentsInstancesReportList ... +func (c StorageAccountsClient) StorageTaskAssignmentsInstancesReportList(ctx context.Context, id commonids.StorageAccountId, options StorageTaskAssignmentsInstancesReportListOperationOptions) (result StorageTaskAssignmentsInstancesReportListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &StorageTaskAssignmentsInstancesReportListCustomPager{}, + Path: fmt.Sprintf("%s/reports", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]StorageTaskReportInstance `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// StorageTaskAssignmentsInstancesReportListComplete retrieves all the results into a single object +func (c StorageAccountsClient) StorageTaskAssignmentsInstancesReportListComplete(ctx context.Context, id commonids.StorageAccountId, options StorageTaskAssignmentsInstancesReportListOperationOptions) (StorageTaskAssignmentsInstancesReportListCompleteResult, error) { + return c.StorageTaskAssignmentsInstancesReportListCompleteMatchingPredicate(ctx, id, options, StorageTaskReportInstanceOperationPredicate{}) +} + +// StorageTaskAssignmentsInstancesReportListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c StorageAccountsClient) StorageTaskAssignmentsInstancesReportListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, options StorageTaskAssignmentsInstancesReportListOperationOptions, predicate StorageTaskReportInstanceOperationPredicate) (result StorageTaskAssignmentsInstancesReportListCompleteResult, err error) { + items := make([]StorageTaskReportInstance, 0) + + resp, err := c.StorageTaskAssignmentsInstancesReportList(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = StorageTaskAssignmentsInstancesReportListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_accountimmutabilitypolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_accountimmutabilitypolicyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_accountimmutabilitypolicyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_accountimmutabilitypolicyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_accountsasparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_accountsasparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_accountsasparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_accountsasparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_activedirectoryproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_activedirectoryproperties.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_activedirectoryproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_activedirectoryproperties.go index 3244857224b6..311b91f98ef5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_activedirectoryproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_activedirectoryproperties.go @@ -6,8 +6,8 @@ package storageaccounts type ActiveDirectoryProperties struct { AccountType *AccountType `json:"accountType,omitempty"` AzureStorageSid *string `json:"azureStorageSid,omitempty"` - DomainGuid string `json:"domainGuid"` - DomainName string `json:"domainName"` + DomainGuid *string `json:"domainGuid,omitempty"` + DomainName *string `json:"domainName,omitempty"` DomainSid *string `json:"domainSid,omitempty"` ForestName *string `json:"forestName,omitempty"` NetBiosDomainName *string `json:"netBiosDomainName,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_azurefilesidentitybasedauthentication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_azurefilesidentitybasedauthentication.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_azurefilesidentitybasedauthentication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_azurefilesidentitybasedauthentication.go index 056f1f968568..4dab91ec77cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_azurefilesidentitybasedauthentication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_azurefilesidentitybasedauthentication.go @@ -7,4 +7,5 @@ type AzureFilesIdentityBasedAuthentication struct { ActiveDirectoryProperties *ActiveDirectoryProperties `json:"activeDirectoryProperties,omitempty"` DefaultSharePermission *DefaultSharePermission `json:"defaultSharePermission,omitempty"` DirectoryServiceOptions DirectoryServiceOptions `json:"directoryServiceOptions"` + SmbOAuthSettings *SmbOAuthSettings `json:"smbOAuthSettings,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_blobrestoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_blobrestoreparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_blobrestoreparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_blobrestoreparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_blobrestorerange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_blobrestorerange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_blobrestorerange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_blobrestorerange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_blobrestorestatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_blobrestorestatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_blobrestorestatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_blobrestorestatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_checknameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_checknameavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_checknameavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_checknameavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_customdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_customdomain.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_customdomain.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_customdomain.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_dualstackendpointpreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_dualstackendpointpreference.go new file mode 100644 index 000000000000..d4b6f5cfc9eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_dualstackendpointpreference.go @@ -0,0 +1,8 @@ +package storageaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DualStackEndpointPreference struct { + PublishIPv6Endpoint *bool `json:"publishIpv6Endpoint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryptionidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryptionidentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryptionidentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryptionidentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryptionservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryptionservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryptionservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryptionservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryptionservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryptionservices.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_encryptionservices.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_encryptionservices.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_endpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_endpoints.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_endpoints.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_endpoints.go index 478d010d5621..7c09b4be07ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_endpoints.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_endpoints.go @@ -7,6 +7,7 @@ type Endpoints struct { Blob *string `json:"blob,omitempty"` Dfs *string `json:"dfs,omitempty"` File *string `json:"file,omitempty"` + IPv6Endpoints *StorageAccountIPv6Endpoints `json:"ipv6Endpoints,omitempty"` InternetEndpoints *StorageAccountInternetEndpoints `json:"internetEndpoints,omitempty"` MicrosoftEndpoints *StorageAccountMicrosoftEndpoints `json:"microsoftEndpoints,omitempty"` Queue *string `json:"queue,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_geopriorityreplicationstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_geopriorityreplicationstatus.go new file mode 100644 index 000000000000..630de0f85918 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_geopriorityreplicationstatus.go @@ -0,0 +1,8 @@ +package storageaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GeoPriorityReplicationStatus struct { + IsBlobEnabled *bool `json:"isBlobEnabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_georeplicationstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_georeplicationstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_georeplicationstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_georeplicationstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_immutablestorageaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_immutablestorageaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_immutablestorageaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_immutablestorageaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_keycreationtime.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_keycreationtime.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_keycreationtime.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_keycreationtime.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_keypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_keypolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_keypolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_keypolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_keyvaultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_keyvaultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_keyvaultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_listaccountsasresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_listaccountsasresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_listaccountsasresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_listaccountsasresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_listservicesasresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_listservicesasresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_listservicesasresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_listservicesasresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_networkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_networkruleset.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_networkruleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_networkruleset.go index fcbda347bd2b..09add3be3712 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_networkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_networkruleset.go @@ -7,6 +7,7 @@ type NetworkRuleSet struct { Bypass *Bypass `json:"bypass,omitempty"` DefaultAction DefaultAction `json:"defaultAction"` IPRules *[]IPRule `json:"ipRules,omitempty"` + IPv6Rules *[]IPRule `json:"ipv6Rules,omitempty"` ResourceAccessRules *[]ResourceAccessRule `json:"resourceAccessRules,omitempty"` VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_placement.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_placement.go new file mode 100644 index 000000000000..e94ccda0cc7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_placement.go @@ -0,0 +1,8 @@ +package storageaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Placement struct { + ZonePlacementPolicy *ZonePlacementPolicy `json:"zonePlacementPolicy,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresource.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresource.go index 69e8ae0e57a0..a2905a559652 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresource.go @@ -1,4 +1,4 @@ -package privatelinkresources +package storageaccounts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresourcelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresourcelistresult.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresourcelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresourcelistresult.go index fa950217c477..8d7c6c566e2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresourcelistresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresourcelistresult.go @@ -1,4 +1,4 @@ -package privatelinkresources +package storageaccounts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresourceproperties.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresourceproperties.go index 3c98012cdd1e..bda9e475b738 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources/model_privatelinkresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkresourceproperties.go @@ -1,4 +1,4 @@ -package privatelinkresources +package storageaccounts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_resourceaccessrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_resourceaccessrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_resourceaccessrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_resourceaccessrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_routingpreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_routingpreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_routingpreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_routingpreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_saspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_saspolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_saspolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_saspolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_servicesasparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_servicesasparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_servicesasparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_servicesasparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_smboauthsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_smboauthsettings.go new file mode 100644 index 000000000000..7d1c120cbb8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_smboauthsettings.go @@ -0,0 +1,8 @@ +package storageaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SmbOAuthSettings struct { + IsSmbOAuthEnabled *bool `json:"isSmbOAuthEnabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccount.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccount.go index 8b121c0cd30d..26d38d05d3ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccount.go @@ -3,6 +3,7 @@ package storageaccounts import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" ) // Copyright (c) Microsoft Corporation. All rights reserved. @@ -15,8 +16,10 @@ type StorageAccount struct { Kind *Kind `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` + Placement *Placement `json:"placement,omitempty"` Properties *StorageAccountProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountchecknameavailabilityparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountchecknameavailabilityparameters.go similarity index 63% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountchecknameavailabilityparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountchecknameavailabilityparameters.go index 2d5643f4f388..16b8f6905047 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountchecknameavailabilityparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountchecknameavailabilityparameters.go @@ -4,6 +4,6 @@ package storageaccounts // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type StorageAccountCheckNameAvailabilityParameters struct { - Name string `json:"name"` - Type Type `json:"type"` + Name string `json:"name"` + Type StorageAccountCheckNameAvailabilityParametersType `json:"type"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountcreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountcreateparameters.go similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountcreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountcreateparameters.go index c070b8dac774..c3850ab8e1be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountcreateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountcreateparameters.go @@ -3,6 +3,7 @@ package storageaccounts import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" ) // Copyright (c) Microsoft Corporation. All rights reserved. @@ -13,7 +14,9 @@ type StorageAccountCreateParameters struct { Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` Kind Kind `json:"kind"` Location string `json:"location"` + Placement *Placement `json:"placement,omitempty"` Properties *StorageAccountPropertiesCreateParameters `json:"properties,omitempty"` Sku Sku `json:"sku"` Tags *map[string]string `json:"tags,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountinternetendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountinternetendpoints.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountinternetendpoints.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountinternetendpoints.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountipv6endpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountipv6endpoints.go new file mode 100644 index 000000000000..4250202d0446 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountipv6endpoints.go @@ -0,0 +1,15 @@ +package storageaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageAccountIPv6Endpoints struct { + Blob *string `json:"blob,omitempty"` + Dfs *string `json:"dfs,omitempty"` + File *string `json:"file,omitempty"` + InternetEndpoints *StorageAccountInternetEndpoints `json:"internetEndpoints,omitempty"` + MicrosoftEndpoints *StorageAccountMicrosoftEndpoints `json:"microsoftEndpoints,omitempty"` + Queue *string `json:"queue,omitempty"` + Table *string `json:"table,omitempty"` + Web *string `json:"web,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountkey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountkey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountkey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountlistkeysresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountlistkeysresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountlistkeysresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountlistkeysresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountmicrosoftendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmicrosoftendpoints.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountmicrosoftendpoints.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmicrosoftendpoints.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/model_storageaccountmigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmigration.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/model_storageaccountmigration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmigration.go index 16ebb4b54ada..53569deebfc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/model_storageaccountmigration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmigration.go @@ -1,4 +1,4 @@ -package accountmigrations +package storageaccounts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/model_storageaccountmigrationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmigrationproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/model_storageaccountmigrationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmigrationproperties.go index 713e7b967d32..c708ea94438d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations/model_storageaccountmigrationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountmigrationproperties.go @@ -1,4 +1,4 @@ -package accountmigrations +package storageaccounts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountproperties.go index 4adc561a27bd..74be33887019 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountproperties.go @@ -22,9 +22,11 @@ type StorageAccountProperties struct { CustomDomain *CustomDomain `json:"customDomain,omitempty"` DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` DnsEndpointType *DnsEndpointType `json:"dnsEndpointType,omitempty"` + DualStackEndpointPreference *DualStackEndpointPreference `json:"dualStackEndpointPreference,omitempty"` EnableExtendedGroups *bool `json:"enableExtendedGroups,omitempty"` Encryption *Encryption `json:"encryption,omitempty"` FailoverInProgress *bool `json:"failoverInProgress,omitempty"` + GeoPriorityReplicationStatus *GeoPriorityReplicationStatus `json:"geoPriorityReplicationStatus,omitempty"` GeoReplicationStats *GeoReplicationStats `json:"geoReplicationStats,omitempty"` ImmutableStorageWithVersioning *ImmutableStorageAccount `json:"immutableStorageWithVersioning,omitempty"` IsHnsEnabled *bool `json:"isHnsEnabled,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountpropertiescreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountpropertiescreateparameters.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountpropertiescreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountpropertiescreateparameters.go index f7099c28f745..293897857c44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountpropertiescreateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountpropertiescreateparameters.go @@ -13,8 +13,10 @@ type StorageAccountPropertiesCreateParameters struct { CustomDomain *CustomDomain `json:"customDomain,omitempty"` DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` DnsEndpointType *DnsEndpointType `json:"dnsEndpointType,omitempty"` + DualStackEndpointPreference *DualStackEndpointPreference `json:"dualStackEndpointPreference,omitempty"` EnableExtendedGroups *bool `json:"enableExtendedGroups,omitempty"` Encryption *Encryption `json:"encryption,omitempty"` + GeoPriorityReplicationStatus *GeoPriorityReplicationStatus `json:"geoPriorityReplicationStatus,omitempty"` ImmutableStorageWithVersioning *ImmutableStorageAccount `json:"immutableStorageWithVersioning,omitempty"` IsHnsEnabled *bool `json:"isHnsEnabled,omitempty"` IsLocalUserEnabled *bool `json:"isLocalUserEnabled,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountpropertiesupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountpropertiesupdateparameters.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountpropertiesupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountpropertiesupdateparameters.go index fef86b8f5363..2869f1ea4bf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountpropertiesupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountpropertiesupdateparameters.go @@ -13,8 +13,10 @@ type StorageAccountPropertiesUpdateParameters struct { CustomDomain *CustomDomain `json:"customDomain,omitempty"` DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` DnsEndpointType *DnsEndpointType `json:"dnsEndpointType,omitempty"` + DualStackEndpointPreference *DualStackEndpointPreference `json:"dualStackEndpointPreference,omitempty"` EnableExtendedGroups *bool `json:"enableExtendedGroups,omitempty"` Encryption *Encryption `json:"encryption,omitempty"` + GeoPriorityReplicationStatus *GeoPriorityReplicationStatus `json:"geoPriorityReplicationStatus,omitempty"` ImmutableStorageWithVersioning *ImmutableStorageAccount `json:"immutableStorageWithVersioning,omitempty"` IsLocalUserEnabled *bool `json:"isLocalUserEnabled,omitempty"` IsSftpEnabled *bool `json:"isSftpEnabled,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountregeneratekeyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountregeneratekeyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountregeneratekeyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountregeneratekeyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountskuconversionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountskuconversionstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountskuconversionstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountskuconversionstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountupdateparameters.go similarity index 75% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountupdateparameters.go index 4fe99538b757..6d4f86152bed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_storageaccountupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storageaccountupdateparameters.go @@ -2,6 +2,7 @@ package storageaccounts import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" ) // Copyright (c) Microsoft Corporation. All rights reserved. @@ -10,7 +11,9 @@ import ( type StorageAccountUpdateParameters struct { Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` Kind *Kind `json:"kind,omitempty"` + Placement *Placement `json:"placement,omitempty"` Properties *StorageAccountPropertiesUpdateParameters `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storagetaskreportinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storagetaskreportinstance.go new file mode 100644 index 000000000000..bbac441f1581 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storagetaskreportinstance.go @@ -0,0 +1,11 @@ +package storageaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageTaskReportInstance struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *StorageTaskReportProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storagetaskreportproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storagetaskreportproperties.go new file mode 100644 index 000000000000..c4437b2497c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_storagetaskreportproperties.go @@ -0,0 +1,21 @@ +package storageaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageTaskReportProperties struct { + FinishTime *string `json:"finishTime,omitempty"` + ObjectFailedCount *string `json:"objectFailedCount,omitempty"` + ObjectsOperatedOnCount *string `json:"objectsOperatedOnCount,omitempty"` + ObjectsSucceededCount *string `json:"objectsSucceededCount,omitempty"` + ObjectsTargetedCount *string `json:"objectsTargetedCount,omitempty"` + RunResult *RunResult `json:"runResult,omitempty"` + RunStatusEnum *RunStatusEnum `json:"runStatusEnum,omitempty"` + RunStatusError *string `json:"runStatusError,omitempty"` + StartTime *string `json:"startTime,omitempty"` + StorageAccountId *string `json:"storageAccountId,omitempty"` + SummaryReportPath *string `json:"summaryReportPath,omitempty"` + TaskAssignmentId *string `json:"taskAssignmentId,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TaskVersion *string `json:"taskVersion,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_virtualnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_virtualnetworkrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/model_virtualnetworkrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/model_virtualnetworkrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/predicates.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/predicates.go index 52fd6e674e60..42d1c6cdca73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/predicates.go @@ -30,3 +30,26 @@ func (p StorageAccountOperationPredicate) Matches(input StorageAccount) bool { return true } + +type StorageTaskReportInstanceOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p StorageTaskReportInstanceOperationPredicate) Matches(input StorageTaskReportInstance) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/version.go index 4ee85de82b85..981cad3480c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts/version.go @@ -3,8 +3,8 @@ package storageaccounts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/storageaccounts/2023-05-01" + return "hashicorp/go-azure-sdk/storageaccounts/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/README.md new file mode 100644 index 000000000000..f5b054088339 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/README.md @@ -0,0 +1,94 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues` Documentation + +The `storagequeues` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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/storage/2025-06-01/storagequeues" +``` + + +### Client Initialization + +```go +client := storagequeues.NewStorageQueuesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `StorageQueuesClient.QueueCreate` + +```go +ctx := context.TODO() +id := storagequeues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") + +payload := storagequeues.StorageQueue{ + // ... +} + + +read, err := client.QueueCreate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StorageQueuesClient.QueueDelete` + +```go +ctx := context.TODO() +id := storagequeues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") + +read, err := client.QueueDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StorageQueuesClient.QueueGet` + +```go +ctx := context.TODO() +id := storagequeues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") + +read, err := client.QueueGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StorageQueuesClient.QueueUpdate` + +```go +ctx := context.TODO() +id := storagequeues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "queueName") + +payload := storagequeues.StorageQueue{ + // ... +} + + +read, err := client.QueueUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/client.go similarity index 53% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/client.go index cca027047952..6dd40049b2a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/client.go @@ -1,4 +1,4 @@ -package fileservice +package storagequeues import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type FileServiceClient struct { +type StorageQueuesClient struct { Client *resourcemanager.Client } -func NewFileServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*FileServiceClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "fileservice", defaultApiVersion) +func NewStorageQueuesClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageQueuesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "storagequeues", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating FileServiceClient: %+v", err) + return nil, fmt.Errorf("instantiating StorageQueuesClient: %+v", err) } - return &FileServiceClient{ + return &StorageQueuesClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/id_queue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/id_queue.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/id_queue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/id_queue.go index ffa6e4c06864..35280e348798 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/id_queue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/id_queue.go @@ -1,4 +1,4 @@ -package queueservice +package storagequeues import ( "fmt" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuecreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queuecreate.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuecreate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queuecreate.go index 98fe87a46ee0..37adefd005bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuecreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queuecreate.go @@ -1,4 +1,4 @@ -package queueservice +package storagequeues import ( "context" @@ -18,7 +18,7 @@ type QueueCreateOperationResponse struct { } // QueueCreate ... -func (c QueueServiceClient) QueueCreate(ctx context.Context, id QueueId, input StorageQueue) (result QueueCreateOperationResponse, err error) { +func (c StorageQueuesClient) QueueCreate(ctx context.Context, id QueueId, input StorageQueue) (result QueueCreateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queuedelete.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuedelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queuedelete.go index 47daa19d3e56..44c5d4bb9989 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queuedelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queuedelete.go @@ -1,4 +1,4 @@ -package queueservice +package storagequeues import ( "context" @@ -17,7 +17,7 @@ type QueueDeleteOperationResponse struct { } // QueueDelete ... -func (c QueueServiceClient) QueueDelete(ctx context.Context, id QueueId) (result QueueDeleteOperationResponse, err error) { +func (c StorageQueuesClient) QueueDelete(ctx context.Context, id QueueId) (result QueueDeleteOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queueget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queueget.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queueget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queueget.go index 92a46418f560..38946d5faedf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queueget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queueget.go @@ -1,4 +1,4 @@ -package queueservice +package storagequeues import ( "context" @@ -18,7 +18,7 @@ type QueueGetOperationResponse struct { } // QueueGet ... -func (c QueueServiceClient) QueueGet(ctx context.Context, id QueueId) (result QueueGetOperationResponse, err error) { +func (c StorageQueuesClient) QueueGet(ctx context.Context, id QueueId) (result QueueGetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queueupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queueupdate.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queueupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queueupdate.go index 1683fdf8d92c..be2ea0c720c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/method_queueupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/method_queueupdate.go @@ -1,4 +1,4 @@ -package queueservice +package storagequeues import ( "context" @@ -18,7 +18,7 @@ type QueueUpdateOperationResponse struct { } // QueueUpdate ... -func (c QueueServiceClient) QueueUpdate(ctx context.Context, id QueueId, input StorageQueue) (result QueueUpdateOperationResponse, err error) { +func (c StorageQueuesClient) QueueUpdate(ctx context.Context, id QueueId, input StorageQueue) (result QueueUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_queueproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/model_queueproperties.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_queueproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/model_queueproperties.go index 6ff2685a02e8..75faa73c9a83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_queueproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/model_queueproperties.go @@ -1,4 +1,4 @@ -package queueservice +package storagequeues // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_storagequeue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/model_storagequeue.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_storagequeue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/model_storagequeue.go index c77308864250..147bf3e4226b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice/model_storagequeue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/model_storagequeue.go @@ -1,4 +1,4 @@ -package queueservice +package storagequeues // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/version.go new file mode 100644 index 000000000000..a4fbe4640ca2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues/version.go @@ -0,0 +1,10 @@ +package storagequeues + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2025-06-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/storagequeues/2025-06-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/README.md similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/README.md index 1b2052747e8a..b4af987ef66c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments` Documentation -The `storagetaskassignments` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `storagetaskassignments` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments" ``` @@ -66,23 +66,6 @@ if model := read.Model; model != nil { ``` -### Example Usage: `StorageTaskAssignmentsClient.InstancesReportList` - -```go -ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") - -// alternatively `client.InstancesReportList(ctx, id, storagetaskassignments.DefaultInstancesReportListOperationOptions())` can be used to do batched pagination -items, err := client.InstancesReportListComplete(ctx, id, storagetaskassignments.DefaultInstancesReportListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - ### Example Usage: `StorageTaskAssignmentsClient.List` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/constants.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/constants.go index 42b5343a7be9..88aeba1be302 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/constants.go @@ -47,38 +47,26 @@ func parseIntervalUnit(input string) (*IntervalUnit, error) { return &out, nil } -type ProvisioningState string +type RunResult string const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreating ProvisioningState = "Creating" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateValidateSubscriptionQuotaBegin ProvisioningState = "ValidateSubscriptionQuotaBegin" - ProvisioningStateValidateSubscriptionQuotaEnd ProvisioningState = "ValidateSubscriptionQuotaEnd" + RunResultFailed RunResult = "Failed" + RunResultSucceeded RunResult = "Succeeded" ) -func PossibleValuesForProvisioningState() []string { +func PossibleValuesForRunResult() []string { return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCanceled), - string(ProvisioningStateCreating), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateValidateSubscriptionQuotaBegin), - string(ProvisioningStateValidateSubscriptionQuotaEnd), + string(RunResultFailed), + string(RunResultSucceeded), } } -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { +func (s *RunResult) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseProvisioningState(decoded) + out, err := parseRunResult(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -86,46 +74,40 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { return nil } -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "canceled": ProvisioningStateCanceled, - "creating": ProvisioningStateCreating, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "validatesubscriptionquotabegin": ProvisioningStateValidateSubscriptionQuotaBegin, - "validatesubscriptionquotaend": ProvisioningStateValidateSubscriptionQuotaEnd, +func parseRunResult(input string) (*RunResult, error) { + vals := map[string]RunResult{ + "failed": RunResultFailed, + "succeeded": RunResultSucceeded, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) + out := RunResult(input) return &out, nil } -type RunResult string +type RunStatusEnum string const ( - RunResultFailed RunResult = "Failed" - RunResultSucceeded RunResult = "Succeeded" + RunStatusEnumFinished RunStatusEnum = "Finished" + RunStatusEnumInProgress RunStatusEnum = "InProgress" ) -func PossibleValuesForRunResult() []string { +func PossibleValuesForRunStatusEnum() []string { return []string{ - string(RunResultFailed), - string(RunResultSucceeded), + string(RunStatusEnumFinished), + string(RunStatusEnumInProgress), } } -func (s *RunResult) UnmarshalJSON(bytes []byte) error { +func (s *RunStatusEnum) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseRunResult(decoded) + out, err := parseRunStatusEnum(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -133,40 +115,52 @@ func (s *RunResult) UnmarshalJSON(bytes []byte) error { return nil } -func parseRunResult(input string) (*RunResult, error) { - vals := map[string]RunResult{ - "failed": RunResultFailed, - "succeeded": RunResultSucceeded, +func parseRunStatusEnum(input string) (*RunStatusEnum, error) { + vals := map[string]RunStatusEnum{ + "finished": RunStatusEnumFinished, + "inprogress": RunStatusEnumInProgress, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := RunResult(input) + out := RunStatusEnum(input) return &out, nil } -type RunStatusEnum string +type StorageTaskAssignmentProvisioningState string const ( - RunStatusEnumFinished RunStatusEnum = "Finished" - RunStatusEnumInProgress RunStatusEnum = "InProgress" + StorageTaskAssignmentProvisioningStateAccepted StorageTaskAssignmentProvisioningState = "Accepted" + StorageTaskAssignmentProvisioningStateCanceled StorageTaskAssignmentProvisioningState = "Canceled" + StorageTaskAssignmentProvisioningStateCreating StorageTaskAssignmentProvisioningState = "Creating" + StorageTaskAssignmentProvisioningStateDeleting StorageTaskAssignmentProvisioningState = "Deleting" + StorageTaskAssignmentProvisioningStateFailed StorageTaskAssignmentProvisioningState = "Failed" + StorageTaskAssignmentProvisioningStateSucceeded StorageTaskAssignmentProvisioningState = "Succeeded" + StorageTaskAssignmentProvisioningStateValidateSubscriptionQuotaBegin StorageTaskAssignmentProvisioningState = "ValidateSubscriptionQuotaBegin" + StorageTaskAssignmentProvisioningStateValidateSubscriptionQuotaEnd StorageTaskAssignmentProvisioningState = "ValidateSubscriptionQuotaEnd" ) -func PossibleValuesForRunStatusEnum() []string { +func PossibleValuesForStorageTaskAssignmentProvisioningState() []string { return []string{ - string(RunStatusEnumFinished), - string(RunStatusEnumInProgress), + string(StorageTaskAssignmentProvisioningStateAccepted), + string(StorageTaskAssignmentProvisioningStateCanceled), + string(StorageTaskAssignmentProvisioningStateCreating), + string(StorageTaskAssignmentProvisioningStateDeleting), + string(StorageTaskAssignmentProvisioningStateFailed), + string(StorageTaskAssignmentProvisioningStateSucceeded), + string(StorageTaskAssignmentProvisioningStateValidateSubscriptionQuotaBegin), + string(StorageTaskAssignmentProvisioningStateValidateSubscriptionQuotaEnd), } } -func (s *RunStatusEnum) UnmarshalJSON(bytes []byte) error { +func (s *StorageTaskAssignmentProvisioningState) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseRunStatusEnum(decoded) + out, err := parseStorageTaskAssignmentProvisioningState(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -174,17 +168,23 @@ func (s *RunStatusEnum) UnmarshalJSON(bytes []byte) error { return nil } -func parseRunStatusEnum(input string) (*RunStatusEnum, error) { - vals := map[string]RunStatusEnum{ - "finished": RunStatusEnumFinished, - "inprogress": RunStatusEnumInProgress, +func parseStorageTaskAssignmentProvisioningState(input string) (*StorageTaskAssignmentProvisioningState, error) { + vals := map[string]StorageTaskAssignmentProvisioningState{ + "accepted": StorageTaskAssignmentProvisioningStateAccepted, + "canceled": StorageTaskAssignmentProvisioningStateCanceled, + "creating": StorageTaskAssignmentProvisioningStateCreating, + "deleting": StorageTaskAssignmentProvisioningStateDeleting, + "failed": StorageTaskAssignmentProvisioningStateFailed, + "succeeded": StorageTaskAssignmentProvisioningStateSucceeded, + "validatesubscriptionquotabegin": StorageTaskAssignmentProvisioningStateValidateSubscriptionQuotaBegin, + "validatesubscriptionquotaend": StorageTaskAssignmentProvisioningStateValidateSubscriptionQuotaEnd, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := RunStatusEnum(input) + out := StorageTaskAssignmentProvisioningState(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/id_storagetaskassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/id_storagetaskassignment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/id_storagetaskassignment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/id_storagetaskassignment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_executiontarget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_executiontarget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_executiontarget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_executiontarget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_executiontrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_executiontrigger.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_executiontrigger.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_executiontrigger.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_executiontriggerupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_executiontriggerupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_executiontriggerupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_executiontriggerupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentexecutioncontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentexecutioncontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentexecutioncontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentexecutioncontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentproperties.go new file mode 100644 index 000000000000..860e251c7bef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentproperties.go @@ -0,0 +1,14 @@ +package storagetaskassignments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageTaskAssignmentProperties struct { + Description string `json:"description"` + Enabled bool `json:"enabled"` + ExecutionContext StorageTaskAssignmentExecutionContext `json:"executionContext"` + ProvisioningState *StorageTaskAssignmentProvisioningState `json:"provisioningState,omitempty"` + Report StorageTaskAssignmentReport `json:"report"` + RunStatus *StorageTaskReportProperties `json:"runStatus,omitempty"` + TaskId string `json:"taskId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentreport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentreport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentreport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentreport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdateexecutioncontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdateexecutioncontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdateexecutioncontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdateexecutioncontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdateproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdateproperties.go index ca4e88f5b52e..b47f1b9241c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdateproperties.go @@ -7,7 +7,7 @@ type StorageTaskAssignmentUpdateProperties struct { Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` ExecutionContext *StorageTaskAssignmentUpdateExecutionContext `json:"executionContext,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ProvisioningState *StorageTaskAssignmentProvisioningState `json:"provisioningState,omitempty"` Report *StorageTaskAssignmentUpdateReport `json:"report,omitempty"` RunStatus *StorageTaskReportProperties `json:"runStatus,omitempty"` TaskId *string `json:"taskId,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdatereport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdatereport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskassignmentupdatereport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskassignmentupdatereport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskreportinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskreportinstance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskreportinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskreportinstance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskreportproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskreportproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_storagetaskreportproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_storagetaskreportproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_triggerparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_triggerparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_triggerparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_triggerparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_triggerparametersupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_triggerparametersupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/model_triggerparametersupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/model_triggerparametersupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/version.go index e247d0dcf75a..7db2e6bf7748 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments/version.go @@ -3,8 +3,8 @@ package storagetaskassignments // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/storagetaskassignments/2023-05-01" + return "hashicorp/go-azure-sdk/storagetaskassignments/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/README.md similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/README.md index 93f7b022c15e..31d777c6b882 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables` Documentation -The `tableservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `tables` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,25 +9,25 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables" ``` ### Client Initialization ```go -client := tableservice.NewTableServiceClientWithBaseURI("https://management.azure.com") +client := tables.NewTablesClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` -### Example Usage: `TableServiceClient.TableCreate` +### Example Usage: `TablesClient.TableCreate` ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") -payload := tableservice.Table{ +payload := tables.Table{ // ... } @@ -42,11 +42,11 @@ if model := read.Model; model != nil { ``` -### Example Usage: `TableServiceClient.TableDelete` +### Example Usage: `TablesClient.TableDelete` ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") read, err := client.TableDelete(ctx, id) if err != nil { @@ -58,11 +58,11 @@ if model := read.Model; model != nil { ``` -### Example Usage: `TableServiceClient.TableGet` +### Example Usage: `TablesClient.TableGet` ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") read, err := client.TableGet(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ``` -### Example Usage: `TableServiceClient.TableList` +### Example Usage: `TablesClient.TableList` ```go ctx := context.TODO() @@ -91,13 +91,13 @@ for _, item := range items { ``` -### Example Usage: `TableServiceClient.TableUpdate` +### Example Usage: `TablesClient.TableUpdate` ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "tableName") -payload := tableservice.Table{ +payload := tables.Table{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/client.go similarity index 57% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/client.go index 8db417218634..d448018bd46f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/client.go @@ -1,4 +1,4 @@ -package skus +package tables import ( "fmt" @@ -10,17 +10,17 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type SkusClient struct { +type TablesClient struct { Client *resourcemanager.Client } -func NewSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*SkusClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "skus", defaultApiVersion) +func NewTablesClientWithBaseURI(sdkApi sdkEnv.Api) (*TablesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "tables", defaultApiVersion) if err != nil { - return nil, fmt.Errorf("instantiating SkusClient: %+v", err) + return nil, fmt.Errorf("instantiating TablesClient: %+v", err) } - return &SkusClient{ + return &TablesClient{ Client: client, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/id_table.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/id_table.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/id_table.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/id_table.go index 64f49ef597b8..3490c5a97e46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/id_table.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/id_table.go @@ -1,4 +1,4 @@ -package tableservice +package tables import ( "fmt" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tablecreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tablecreate.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tablecreate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tablecreate.go index f2970fc65abc..b6ac5ee4d117 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tablecreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tablecreate.go @@ -1,4 +1,4 @@ -package tableservice +package tables import ( "context" @@ -18,7 +18,7 @@ type TableCreateOperationResponse struct { } // TableCreate ... -func (c TableServiceClient) TableCreate(ctx context.Context, id TableId, input Table) (result TableCreateOperationResponse, err error) { +func (c TablesClient) TableCreate(ctx context.Context, id TableId, input Table) (result TableCreateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tabledelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tabledelete.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tabledelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tabledelete.go index 83e892e381af..c048f67ac560 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tabledelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tabledelete.go @@ -1,4 +1,4 @@ -package tableservice +package tables import ( "context" @@ -17,7 +17,7 @@ type TableDeleteOperationResponse struct { } // TableDelete ... -func (c TableServiceClient) TableDelete(ctx context.Context, id TableId) (result TableDeleteOperationResponse, err error) { +func (c TablesClient) TableDelete(ctx context.Context, id TableId) (result TableDeleteOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tableget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tableget.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tableget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tableget.go index aef020e4c88b..44b8439c65ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tableget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tableget.go @@ -1,4 +1,4 @@ -package tableservice +package tables import ( "context" @@ -18,7 +18,7 @@ type TableGetOperationResponse struct { } // TableGet ... -func (c TableServiceClient) TableGet(ctx context.Context, id TableId) (result TableGetOperationResponse, err error) { +func (c TablesClient) TableGet(ctx context.Context, id TableId) (result TableGetOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tablelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tablelist.go similarity index 81% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tablelist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tablelist.go index cf60c2027756..e1763fd0ea80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tablelist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tablelist.go @@ -1,4 +1,4 @@ -package tableservice +package tables import ( "context" @@ -37,7 +37,7 @@ func (p *TableListCustomPager) NextPageLink() *odata.Link { } // TableList ... -func (c TableServiceClient) TableList(ctx context.Context, id commonids.StorageAccountId) (result TableListOperationResponse, err error) { +func (c TablesClient) TableList(ctx context.Context, id commonids.StorageAccountId) (result TableListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -76,12 +76,12 @@ func (c TableServiceClient) TableList(ctx context.Context, id commonids.StorageA } // TableListComplete retrieves all the results into a single object -func (c TableServiceClient) TableListComplete(ctx context.Context, id commonids.StorageAccountId) (TableListCompleteResult, error) { +func (c TablesClient) TableListComplete(ctx context.Context, id commonids.StorageAccountId) (TableListCompleteResult, error) { return c.TableListCompleteMatchingPredicate(ctx, id, TableOperationPredicate{}) } // TableListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c TableServiceClient) TableListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate TableOperationPredicate) (result TableListCompleteResult, err error) { +func (c TablesClient) TableListCompleteMatchingPredicate(ctx context.Context, id commonids.StorageAccountId, predicate TableOperationPredicate) (result TableListCompleteResult, err error) { items := make([]Table, 0) resp, err := c.TableList(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tableupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tableupdate.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tableupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tableupdate.go index 2508510e5717..ee00908ff024 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/method_tableupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/method_tableupdate.go @@ -1,4 +1,4 @@ -package tableservice +package tables import ( "context" @@ -18,7 +18,7 @@ type TableUpdateOperationResponse struct { } // TableUpdate ... -func (c TableServiceClient) TableUpdate(ctx context.Context, id TableId, input Table) (result TableUpdateOperationResponse, err error) { +func (c TablesClient) TableUpdate(ctx context.Context, id TableId, input Table) (result TableUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_table.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_table.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_table.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_table.go index 6e260df4d0cf..18def612ac72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_table.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_table.go @@ -1,4 +1,4 @@ -package tableservice +package tables // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tableaccesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tableaccesspolicy.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tableaccesspolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tableaccesspolicy.go index 58d4c252bcd5..2c1a07190321 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tableaccesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tableaccesspolicy.go @@ -1,4 +1,4 @@ -package tableservice +package tables import ( "time" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tableproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tableproperties.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tableproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tableproperties.go index dc4a07183bd5..fc8948bf2e42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tableproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tableproperties.go @@ -1,4 +1,4 @@ -package tableservice +package tables // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tablesignedidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tablesignedidentifier.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tablesignedidentifier.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tablesignedidentifier.go index f20115dff48d..1c14b37e6799 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/model_tablesignedidentifier.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/model_tablesignedidentifier.go @@ -1,4 +1,4 @@ -package tableservice +package tables // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/predicates.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/predicates.go index b05c3c34be5e..138b19a9d98c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/predicates.go @@ -1,4 +1,4 @@ -package tableservice +package tables // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/version.go similarity index 64% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/version.go index fbf7e498613f..2d8b4c6e0251 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables/version.go @@ -1,10 +1,10 @@ -package skus +package tables // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-05-01" +const defaultApiVersion = "2025-06-01" func userAgent() string { - return "hashicorp/go-azure-sdk/skus/2023-05-01" + return "hashicorp/go-azure-sdk/tables/2025-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/README.md similarity index 75% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/README.md index 3132d883c137..7b7e23cd1b55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices` Documentation -The `fileservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-05-01`). +The `tableservices` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2025-06-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). @@ -9,19 +9,19 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice" +import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices" ``` ### Client Initialization ```go -client := fileservice.NewFileServiceClientWithBaseURI("https://management.azure.com") +client := tableservices.NewTableServicesClientWithBaseURI("https://management.azure.com") client.Client.Authorizer = authorizer ``` -### Example Usage: `FileServiceClient.GetServiceProperties` +### Example Usage: `TableServicesClient.GetServiceProperties` ```go ctx := context.TODO() @@ -37,7 +37,7 @@ if model := read.Model; model != nil { ``` -### Example Usage: `FileServiceClient.List` +### Example Usage: `TableServicesClient.List` ```go ctx := context.TODO() @@ -53,13 +53,13 @@ if model := read.Model; model != nil { ``` -### Example Usage: `FileServiceClient.SetServiceProperties` +### Example Usage: `TableServicesClient.SetServiceProperties` ```go ctx := context.TODO() id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") -payload := fileservice.FileServiceProperties{ +payload := tableservices.TableServiceProperties{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/client.go new file mode 100644 index 000000000000..25ef9b566eb9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/client.go @@ -0,0 +1,26 @@ +package tableservices + +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 TableServicesClient struct { + Client *resourcemanager.Client +} + +func NewTableServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*TableServicesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "tableservices", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating TableServicesClient: %+v", err) + } + + return &TableServicesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/constants.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/constants.go index 097e5929d6e2..f0ce8b184560 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/constants.go @@ -1,4 +1,4 @@ -package queueserviceproperties +package tableservices import ( "encoding/json" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableservicesgetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_getserviceproperties.go similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableservicesgetserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_getserviceproperties.go index e1a990554595..8c1871b584fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableservicesgetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_getserviceproperties.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TableServicesGetServicePropertiesOperationResponse struct { +type GetServicePropertiesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TableServiceProperties } -// TableServicesGetServiceProperties ... -func (c TableServicePropertiesClient) TableServicesGetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result TableServicesGetServicePropertiesOperationResponse, err error) { +// GetServiceProperties ... +func (c TableServicesClient) GetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result GetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableserviceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_list.go similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableserviceslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_list.go index 613a663b4569..00b51ce54a18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableserviceslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_list.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TableServicesListOperationResponse struct { +type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ListTableServices } -// TableServicesList ... -func (c TableServicePropertiesClient) TableServicesList(ctx context.Context, id commonids.StorageAccountId) (result TableServicesListOperationResponse, err error) { +// List ... +func (c TableServicesClient) List(ctx context.Context, id commonids.StorageAccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableservicessetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_setserviceproperties.go similarity index 75% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableservicessetserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_setserviceproperties.go index e9e9f143a095..52037eb3f876 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/method_tableservicessetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/method_setserviceproperties.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices import ( "context" @@ -13,14 +13,14 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TableServicesSetServicePropertiesOperationResponse struct { +type SetServicePropertiesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TableServiceProperties } -// TableServicesSetServiceProperties ... -func (c TableServicePropertiesClient) TableServicesSetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input TableServiceProperties) (result TableServicesSetServicePropertiesOperationResponse, err error) { +// SetServiceProperties ... +func (c TableServicesClient) SetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input TableServiceProperties) (result SetServicePropertiesOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_corsrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_corsrule.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_corsrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_corsrule.go index bd976ee6216b..c393a64dc7da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_corsrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_corsrule.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_corsrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_corsrules.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_corsrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_corsrules.go index 1dfcef71316a..af4436b72949 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_corsrules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_corsrules.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_listtableservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_listtableservices.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_listtableservices.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_listtableservices.go index 2ea4d460a03b..5ad80272ce10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_listtableservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_listtableservices.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_tableserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_tableserviceproperties.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_tableserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_tableserviceproperties.go index fcc20311ebf0..a0586ffb1f23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_tableserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_tableserviceproperties.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_tableservicepropertiesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_tableservicepropertiesproperties.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_tableservicepropertiesproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_tableservicepropertiesproperties.go index 839d83d80278..6db66956f8e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties/model_tableservicepropertiesproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/model_tableservicepropertiesproperties.go @@ -1,4 +1,4 @@ -package tableserviceproperties +package tableservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/version.go new file mode 100644 index 000000000000..2d3152ec8192 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices/version.go @@ -0,0 +1,10 @@ +package tableservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2025-06-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/tableservices/2025-06-01" +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 87b908200e4f..766e6729e3d5 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1151,28 +1151,29 @@ github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/ github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines github.com/hashicorp/go-azure-sdk/resource-manager/standbypool/2025-03-01/standbyvirtualmachinepools -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01 -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/accountmigrations -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobcontainers -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobinventorypolicies -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/blobservice -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/deletedaccounts -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/encryptionscopes -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileservice -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/fileshares -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/localusers -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/managementpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/objectreplicationpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privateendpointconnections -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/privatelinkresources -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueservice -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/queueserviceproperties -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/skus -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storagetaskassignments -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableservice -github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01 +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobcontainers +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobinventorypolicies +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/blobservices +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/deletedaccounts +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/encryptionscopes +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileservices +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileserviceusageoperationgroup +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/fileshares +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/immutabilitypolicies +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/localuseroperationgroup +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/managementpolicies +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/networksecurityperimeterconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/objectreplicationpolicyoperationgroup +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/openapis +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/privateendpointconnections +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/queueservices +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccountmigrations +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storageaccounts +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagequeues +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/storagetaskassignments +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tables +github.com/hashicorp/go-azure-sdk/resource-manager/storage/2025-06-01/tableservices github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01 github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages diff --git a/website/docs/d/storage_account.html.markdown b/website/docs/d/storage_account.html.markdown index b594c44140d7..c586def43b4c 100644 --- a/website/docs/d/storage_account.html.markdown +++ b/website/docs/d/storage_account.html.markdown @@ -270,4 +270,4 @@ The `timeouts` block allows you to specify [timeouts](https://developer.hashicor This data source uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/d/storage_container.html.markdown b/website/docs/d/storage_container.html.markdown index a97feeae427b..0db2208e5ce8 100644 --- a/website/docs/d/storage_container.html.markdown +++ b/website/docs/d/storage_container.html.markdown @@ -62,4 +62,4 @@ The `timeouts` block allows you to specify [timeouts](https://developer.hashicor This data source uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/d/storage_encryption_scope.html.markdown b/website/docs/d/storage_encryption_scope.html.markdown index 2914889350b2..80d66a3477ae 100644 --- a/website/docs/d/storage_encryption_scope.html.markdown +++ b/website/docs/d/storage_encryption_scope.html.markdown @@ -56,4 +56,4 @@ The `timeouts` block allows you to specify [timeouts](https://developer.hashicor This data source uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/d/storage_management_policy.html.markdown b/website/docs/d/storage_management_policy.html.markdown index 9f9bfb32272d..7893b5502e57 100644 --- a/website/docs/d/storage_management_policy.html.markdown +++ b/website/docs/d/storage_management_policy.html.markdown @@ -116,4 +116,4 @@ The `timeouts` block allows you to specify [timeouts](https://developer.hashicor This data source uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/d/storage_queue.html.markdown b/website/docs/d/storage_queue.html.markdown index 940351082754..24f0bec80113 100644 --- a/website/docs/d/storage_queue.html.markdown +++ b/website/docs/d/storage_queue.html.markdown @@ -49,4 +49,4 @@ The `timeouts` block allows you to specify [timeouts](https://developer.hashicor This data source uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/d/storage_share.html.markdown b/website/docs/d/storage_share.html.markdown index 35aa61d487be..807d6b097bc8 100644 --- a/website/docs/d/storage_share.html.markdown +++ b/website/docs/d/storage_share.html.markdown @@ -77,4 +77,4 @@ The `timeouts` block allows you to specify [timeouts](https://developer.hashicor This data source uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_account.html.markdown b/website/docs/r/storage_account.html.markdown index 3864ec6e5e2b..efa1e0f22370 100644 --- a/website/docs/r/storage_account.html.markdown +++ b/website/docs/r/storage_account.html.markdown @@ -652,4 +652,4 @@ terraform import azurerm_storage_account.storageAcc1 /subscriptions/00000000-000 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_account_customer_managed_key.html.markdown b/website/docs/r/storage_account_customer_managed_key.html.markdown index 772b98cbbe9d..596fd0cdeeaa 100644 --- a/website/docs/r/storage_account_customer_managed_key.html.markdown +++ b/website/docs/r/storage_account_customer_managed_key.html.markdown @@ -157,4 +157,4 @@ terraform import azurerm_storage_account_customer_managed_key.example /subscript This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_account_local_user.html.markdown b/website/docs/r/storage_account_local_user.html.markdown index 3fd34654b0b8..5be6f71cfa18 100644 --- a/website/docs/r/storage_account_local_user.html.markdown +++ b/website/docs/r/storage_account_local_user.html.markdown @@ -147,4 +147,4 @@ terraform import azurerm_storage_account_local_user.example /subscriptions/12345 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_account_network_rules.html.markdown b/website/docs/r/storage_account_network_rules.html.markdown index 67c11941f4ec..e309e0c106e4 100644 --- a/website/docs/r/storage_account_network_rules.html.markdown +++ b/website/docs/r/storage_account_network_rules.html.markdown @@ -122,4 +122,4 @@ terraform import azurerm_storage_account_network_rules.storageAcc1 /subscription This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_blob_inventory_policy.html.markdown b/website/docs/r/storage_blob_inventory_policy.html.markdown index ca8f23cea3d1..c3e8a324d0c6 100644 --- a/website/docs/r/storage_blob_inventory_policy.html.markdown +++ b/website/docs/r/storage_blob_inventory_policy.html.markdown @@ -134,4 +134,4 @@ terraform import azurerm_storage_blob_inventory_policy.example /subscriptions/00 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_container.html.markdown b/website/docs/r/storage_container.html.markdown index c10b58c95286..8f0e026ac42e 100644 --- a/website/docs/r/storage_container.html.markdown +++ b/website/docs/r/storage_container.html.markdown @@ -94,4 +94,4 @@ terraform import azurerm_storage_container.container1 /subscriptions/00000000-00 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_container_immutability_policy.html.markdown b/website/docs/r/storage_container_immutability_policy.html.markdown index 8422f044646a..b0fe63b4cb13 100644 --- a/website/docs/r/storage_container_immutability_policy.html.markdown +++ b/website/docs/r/storage_container_immutability_policy.html.markdown @@ -85,4 +85,4 @@ terraform import azurerm_storage_container_immutability_policy.example /subscrip This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_encryption_scope.html.markdown b/website/docs/r/storage_encryption_scope.html.markdown index 43105ffbb66d..1fb15979df59 100644 --- a/website/docs/r/storage_encryption_scope.html.markdown +++ b/website/docs/r/storage_encryption_scope.html.markdown @@ -82,4 +82,4 @@ terraform import azurerm_storage_encryption_scope.example /subscriptions/0000000 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_management_policy.html.markdown b/website/docs/r/storage_management_policy.html.markdown index 760018950c12..f36f3906ea95 100644 --- a/website/docs/r/storage_management_policy.html.markdown +++ b/website/docs/r/storage_management_policy.html.markdown @@ -208,4 +208,4 @@ terraform import azurerm_storage_management_policy.example /subscriptions/000000 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_object_replication.html.markdown b/website/docs/r/storage_object_replication.html.markdown index 4743ebc0d37b..95df6392ab43 100644 --- a/website/docs/r/storage_object_replication.html.markdown +++ b/website/docs/r/storage_object_replication.html.markdown @@ -122,4 +122,4 @@ terraform import azurerm_storage_object_replication.example /subscriptions/00000 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_queue.html.markdown b/website/docs/r/storage_queue.html.markdown index a168fd5e0733..735e94881758 100644 --- a/website/docs/r/storage_queue.html.markdown +++ b/website/docs/r/storage_queue.html.markdown @@ -87,4 +87,4 @@ terraform import azurerm_storage_queue.queue1 /subscriptions/00000000-0000-0000- This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01 diff --git a/website/docs/r/storage_share.html.markdown b/website/docs/r/storage_share.html.markdown index 2130bc23ba31..ee4abf9f4a79 100644 --- a/website/docs/r/storage_share.html.markdown +++ b/website/docs/r/storage_share.html.markdown @@ -130,4 +130,4 @@ terraform import azurerm_storage_share.exampleShare /subscriptions/00000000-0000 This resource uses the following Azure API Providers: -* `Microsoft.Storage` - 2023-05-01 +* `Microsoft.Storage` - 2025-06-01