@@ -98,7 +98,11 @@ fetch-rps-openapi:
9898 @# Help: Fetch the OpenDMT RPS OpenAPI spec
9999 curl -sSL https://raw.githubusercontent.com/open-edge-platform/orch-utils/main/tenancy-api-mapping/openapispecs/generated/amc-opendmt-rps-openapi.yaml -o pkg/rest/rps/amc-opendmt-rps-openapi.yaml
100100
101- fetch-openapi : fetch-catalog-openapi fetch-cluster-openapi fetch-infra-openapi
101+ fetch-utils-openapi :
102+ @# Help: Fetch the Utils API OpenAPI spec
103+ curl -sSL https://raw.githubusercontent.com/open-edge-platform/orch-utils/main/tenancy-api-mapping/openapispecs/generated/orch-utils.tenancy-datamodel.openapi.yaml -o pkg/rest/tenancy/orch-utils.tenancy-datamodel.openapi.yaml
104+
105+ fetch-openapi : fetch-catalog-openapi fetch-cluster-openapi fetch-infra-openapi fetch-rps-openapi fetch-utils-openapi
102106 @# Help: Fetch OpenAPI specs for all components
103107
104108rest-client-gen :
@@ -115,6 +119,8 @@ rest-client-gen:
115119 oapi-codegen -generate types -old-config-style -package infra -o pkg/rest/infra/types.go pkg/rest/infra/amc-infra-core-edge-infrastructure-manager-openapi-all.yaml
116120 oapi-codegen -generate client -old-config-style -package rps -o pkg/rest/rps/client.go pkg/rest/rps/amc-opendmt-rps-openapi.yaml
117121 oapi-codegen -generate types -old-config-style -package rps -o pkg/rest/rps/types.go pkg/rest/rps/amc-opendmt-rps-openapi.yaml
122+ oapi-codegen -generate client -old-config-style -package tenancy -o pkg/rest/tenancy/client.go pkg/rest/tenancy/orch-utils.tenancy-datamodel.openapi.yaml
123+ oapi-codegen -generate types -old-config-style -package tenancy -o pkg/rest/tenancy/types.go pkg/rest/tenancy/orch-utils.tenancy-datamodel.openapi.yaml
118124
119125# Supported mockgen version v0.5.2
120126# install command: go install go.uber.org/mock/[email protected] @@ -126,6 +132,7 @@ mock-client-gen:
126132 mockgen -source=pkg/rest/cluster/client.go -destination=pkg/rest/cluster/mock_client.go -package=cluster
127133 mockgen -source=pkg/rest/infra/client.go -destination=pkg/rest/infra/mock_client.go -package=infra
128134 mockgen -source=pkg/rest/rps/client.go -destination=pkg/rest/rps/mock_client.go -package=rps
135+ mockgen -source=pkg/rest/tenancy/client.go -destination=pkg/rest/tenancy/mock_client.go -package=tenancy
129136
130137cli-docs :
131138 @# Help: Generates markdowns for the orchestrator cli
0 commit comments