Skip to content

Commit

Permalink
[DNM] Add multitenancy support using API wrappers
Browse files Browse the repository at this point in the history
Signed-off-by: Kobi Samoray <[email protected]>
  • Loading branch information
ksamoray committed May 22, 2023
1 parent df93ef1 commit 561c60b
Show file tree
Hide file tree
Showing 315 changed files with 50,591 additions and 2,311 deletions.
9 changes: 8 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ website-list-category:

.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website-lint website-lint-fix tools


api-wrapper:
@echo "==> Generating API wrappers..."
/usr/bin/python3 $(CURDIR)/tools/api-wrapper-generator.py \
--api_list $(CURDIR)/api/api_list.yaml \
--api_template $(CURDIR)/api/api_templates.yaml \
--api_file_template $(CURDIR)/api/api_file_template.yaml \
--utl_file_template $(CURDIR)/api/utl_file_template.yaml \
--out_dir $(CURDIR)/api
15 changes: 15 additions & 0 deletions api/api_file_template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
|2+
//nolint:revive
package $pkg_name

import (
"errors"

vapiProtocolClient_ "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client"
$imports

$utl_pkg_import
)

type $context_type

Loading

0 comments on commit 561c60b

Please sign in to comment.