Skip to content

Commit

Permalink
Merge pull request #7916 from MartinForReal/shafan/updatefileshare
Browse files Browse the repository at this point in the history
Track2 sdk:add expand param in get function of fileshare client
  • Loading branch information
MartinForReal authored Dec 27, 2024
2 parents f35e11d + 90976a8 commit d327d2b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions pkg/azclient/fileshareclient/fileshareclient_test.go

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

4 changes: 2 additions & 2 deletions pkg/azclient/fileshareclient/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"sigs.k8s.io/cloud-provider-azure/pkg/azclient/utils"
)

// +azure:client:verbs=get,resource=Account,subResource=FileShare,packageName=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage,packageAlias=armstorage,clientName=FileSharesClient,expand=false,crossSubFactory=true
// +azure:client:verbs=get,resource=Account,subResource=FileShare,packageName=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage,packageAlias=armstorage,clientName=FileSharesClient,expand=true,crossSubFactory=true
type Interface interface {
utils.SubResourceGetFunc[armstorage.FileShare]
utils.SubResourceGetWithExpandFunc[armstorage.FileShare]
List(ctx context.Context, resourceGroupName string, accountName string, option *armstorage.FileSharesClientListOptions) (result []*armstorage.FileShareItem, err error)
Create(ctx context.Context, resourceGroupName string, resourceName string, parentResourceName string, resource armstorage.FileShare, expand *string) (*armstorage.FileShare, error)
Update(ctx context.Context, resourceGroupName string, resourceName string, parentResourceName string, resource armstorage.FileShare) (*armstorage.FileShare, error)
Expand Down
12 changes: 6 additions & 6 deletions pkg/azclient/fileshareclient/mock_fileshareclient/interface.go

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

9 changes: 6 additions & 3 deletions pkg/azclient/fileshareclient/zz_generated_client.go

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

0 comments on commit d327d2b

Please sign in to comment.