Skip to content

Commit

Permalink
track2 sdk:add expand param in get function of fileshare client
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinForReal committed Dec 27, 2024
1 parent f35e11d commit 90976a8
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 90976a8

Please sign in to comment.