Skip to content

Commit

Permalink
add privatednszonegroup client (#7703)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinForReal authored Nov 29, 2024
1 parent 82e716a commit 15a0889
Show file tree
Hide file tree
Showing 20 changed files with 3,269 additions and 107 deletions.
1 change: 1 addition & 0 deletions pkg/azclient/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ generatecode: build ## Generate client
$(TYPESCAFFOLD) --package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 --package-alias armnetwork --resource Interface --client-name InterfacesClient --verbs get,createorupdate,delete,list --expand --ratelimitkey interfaceRateLimit
$(TYPESCAFFOLD) --package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 --package-alias armnetwork --resource LoadBalancer --client-name LoadBalancersClient --verbs get,createorupdate,delete,list --expand --ratelimitkey loadBalancerRateLimit
$(TYPESCAFFOLD) --package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 --package-alias armnetwork --resource PrivateEndpoint --client-name PrivateEndpointsClient --verbs get,createorupdate --expand --ratelimitkey privateEndpointRateLimit
$(TYPESCAFFOLD) --package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 --package-alias armnetwork --resource PrivateEndpoint --subresource PrivateDNSZoneGroup --client-name PrivateDNSZoneGroupsClient --verbs get,createorupdate,delete
$(TYPESCAFFOLD) --package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 --package-alias armnetwork --resource PublicIPAddress --client-name PublicIPAddressesClient --verbs get,createorupdate,delete,list --expand --ratelimitkey publicIPAddressRateLimit
$(TYPESCAFFOLD) --package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 --package-alias armnetwork --resource PublicIPPrefix --client-name PublicIPPrefixesClient --verbs get,createorupdate,delete,list --expand
$(TYPESCAFFOLD) --package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6 --package-alias armnetwork --resource RouteTable --client-name RouteTablesClient --verbs get,createorupdate,delete,list --ratelimitkey routeTableRateLimit
Expand Down
13 changes: 11 additions & 2 deletions pkg/azclient/client-gen/generator/gentest_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,17 @@ func (g Generator) generateTestSuite(ctx *genall.GenerationContext, root *loader
importList["github.com/onsi/gomega"] = map[string]struct{}{}
importList["github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"] = make(map[string]struct{})
importList["sigs.k8s.io/cloud-provider-azure/pkg/azclient/utils"] = make(map[string]struct{})

// return DumpHeaderToWriter(ctx, root, root.Name+"_suite_test.go", headerText, importList, &outContent)
file, err := ctx.Open(root, root.Name+"_suite_test.go")
if err != nil {
return err
}
defer file.Close()
if err := DumpHeaderToWriter(ctx, file, g.HeaderFile, importList, root.Name); err != nil {
return err
}
if err := TestSuiteTemplate.Execute(file, markerConf); err != nil {
root.AddError(err)
}
return nil
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/azclient/factory.go

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

27 changes: 27 additions & 0 deletions pkg/azclient/factory_gen.go

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

7 changes: 7 additions & 0 deletions pkg/azclient/factory_test.go

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

Loading

0 comments on commit 15a0889

Please sign in to comment.