Skip to content

Commit

Permalink
mock containeranalysisnote
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed May 20, 2024
1 parent 58f7154 commit 8344460
Show file tree
Hide file tree
Showing 148 changed files with 110,908 additions and 69,840 deletions.
2 changes: 2 additions & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,8 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured
case schema.GroupKind{Group: "container.cnrm.cloud.google.com", Kind: "ContainerCluster"}:
case schema.GroupKind{Group: "container.cnrm.cloud.google.com", Kind: "ContainerNodePool"}:

case schema.GroupKind{Group: "containeranalysis.cnrm.cloud.google.com", Kind: "ContainerAnalysisNote"}:

case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPartialPolicy"}:
case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPolicy"}:
case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPolicyMember"}:
Expand Down
6 changes: 6 additions & 0 deletions mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ gen-proto:
./apis/mockgcp/cloud/servicenetworking/v1/*.proto \
./apis/mockgcp/cloud/resourcemanager/v1/*.proto \
./apis/mockgcp/storage/v1/*.proto \
./apis/mockgcp/devtools/containeranalysis/v1/*.proto \
./third_party/googleapis/mockgcp/api/apikeys/v2/*.proto \
./third_party/googleapis/mockgcp/devtools/artifactregistry/v1/*.proto \
./third_party/googleapis/mockgcp/iam/admin/v1/*.proto \
Expand Down Expand Up @@ -74,10 +75,15 @@ generate-protos-from-openapi:
mkdir -p apis/mockgcp/cloud/bigquery/v2/
cd tools/gapic; go run . --proto-version=2 ../../bigquery-v2.json > ../../apis/mockgcp/cloud/bigquery/v2/api.proto

wget -O containeranalysis-v1.json https://raw.githubusercontent.com/googleapis/google-api-go-client/main/containeranalysis/v1/containeranalysis-api.json
mkdir -p apis/mockgcp/devtools/containeranalysis/v1/
cd tools/gapic; go run . ../../containeranalysis-v1.json > ../../apis/mockgcp/devtools/containeranalysis/v1/containeranalysis.proto

wget -O servicenetworking-api.json https://raw.githubusercontent.com/googleapis/google-api-go-client/main/servicenetworking/v1/servicenetworking-api.json
mkdir -p apis/mockgcp/cloud/servicenetworking/v1/
cd tools/gapic; go run . ../../servicenetworking-api.json > ../../apis/mockgcp/cloud/servicenetworking/v1/servicenetworking.proto

wget -O storage-v1.json https://raw.githubusercontent.com/googleapis/google-api-go-client/main/storage/v1/storage-api.json
mkdir -p apis/mockgcp/storage/v1/
cd tools/gapic; go run . --proto-version=2 ../../storage-v1.json > ../../apis/mockgcp/storage/v1/service.proto

0 comments on commit 8344460

Please sign in to comment.