Skip to content

Commit b04fac9

Browse files
committed
Added capi v3.181.0
1 parent e834ea5 commit b04fac9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+59963
-403
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Wayne E. Seguin <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
SHELL := /bin/bash
88
UNAME_S := $(shell uname -s)
99
OPENAPI_GEN_VERSION := 7.2.0
10-
CAPI_VERSION ?= 3.181.0
10+
CAPI_VERSION ?= 3.195.0
1111

1212
help: ## Display this help screen
1313
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@@ -82,8 +82,6 @@ deps-jq: ## Install jq
8282

8383
check-deps: ## Check if all dependencies are installed
8484
@echo "Checking dependencies..."
85-
@command -v java >/dev/null 2>&1 || { echo "Java is not installed. Run 'make deps-java'"; exit 1; }
86-
@command -v openapi-generator-cli >/dev/null 2>&1 || { echo "openapi-generator-cli is not installed. Run 'make deps-openapi'"; exit 1; }
8785
@command -v spruce >/dev/null 2>&1 || { echo "spruce is not installed. Run 'make deps-spruce'"; exit 1; }
8886
@command -v jq >/dev/null 2>&1 || { echo "jq is not installed. Run 'make deps-jq'"; exit 1; }
8987
@echo "All dependencies are installed!"
@@ -94,7 +92,7 @@ prepare: check-deps ## Prepare the OpenAPI specification
9492

9593
gen-openapi-spec: check-deps ## Merge the CAPI OpenAPI specifications
9694
@echo "Merging CAPI OpenAPI specifications..."
97-
./bin/capi-openapi merge
95+
./bin/capi-openapi gen openapi spec
9896

9997
gen-go-client: check-deps gen-openapi-spec ## Generate Go client from OpenAPI spec
10098
@echo "Generating Go client..."

bin/capi-openapi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use File::Basename;
99
use Cwd qw(abs_path);
1010
use File::Path qw(make_path);
1111

12-
$ENV{CAPI_VERSION} ||= '3.181.0';
12+
$ENV{CAPI_VERSION} ||= '3.195.0';
1313
$ENV{OPENAPI_VERSION} ||= '3.1.1';
1414

1515
# Get project root directory (one level up from bin/)
@@ -70,16 +70,12 @@ my @endpoints = (qw(
7070
));
7171

7272
sub check_deps {
73-
my @deps = qw(spruce jq openapi-generator);
73+
my @deps = qw(spruce jq);
7474
for my $dep (@deps) {
7575
my $cmd = "which $dep";
7676
my $result = `$cmd`;
7777
if ($result eq '') {
7878
print "Dependency '$dep' not found. Please install it.\n";
79-
if ($dep eq 'openapi-generator') {
80-
print "For openapi-generator, you can install it via:\n";
81-
print 'bun install \@openapitools/openapi-generator -g', "\n";
82-
}
8379
exit 1;
8480
}
8581
}

capi/3.181.0/admin.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ paths:
99
'default':
1010
description: An unexpected error.
1111
security:
12-
- Admin: []
12+
- Admin:
13+
- cloud_controller.admin
1314

capi/3.181.0/app_usage_events.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ paths:
1717
schema:
1818
$ref: "#/components/schemas/AppUsageEvent"
1919
security:
20-
- bearerAuth: []
20+
- Admin:
21+
- cloud_controller.admin
22+
- AdminReadOnly:
23+
- cloud_controller.admin_read_only
24+
- GlobalAuditor:
25+
- cloud_controller.global_auditor
2126
tags:
2227
- "App Usage Events"
2328
x-permissions:
@@ -75,8 +80,7 @@ paths:
7580
application/json:
7681
schema:
7782
$ref: "#/components/schemas/AppUsageEventList"
78-
security:
79-
- bearerAuth: []
83+
security: [] # All Roles
8084
tags:
8185
- "App Usage Events"
8286
x-permissions:
@@ -93,7 +97,8 @@ paths:
9397
schema:
9498
type: "object"
9599
security:
96-
- bearerAuth: []
100+
- Admin:
101+
- cloud_controller.admin
97102
tags:
98103
- "App Usage Events"
99104
x-permissions:

0 commit comments

Comments
 (0)