axhub-sdk 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/axhub_sdk/operations.rb +2 -1
- data/lib/axhub_sdk/version.rb +1 -1
- data/lib/axhub_sdk.rb +212 -182
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 572be1a63c2d4f482f151942ba1b90e92c82789be69b56eee536d3b2c7ea9a3d
|
|
4
|
+
data.tar.gz: f93cb282b2c3919ac41633345bf3a396879d0228c3b635d4be032aa4894f3b59
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd0379f32050fdd452634e294d775af5291799c0370c7e4b4a696882335de68dda77560ea83a965445bffff368839ff6e3d2b87f5d3e8f45b45b0215449dd647
|
|
7
|
+
data.tar.gz: bae059dbb674d23c7a584912367b0b644e6a5ef5fc0790e44f02b68f5ec3145027dcec11afda99436cd2c950f646ac428363797f570ae403ed92135e6da87207
|
data/lib/axhub_sdk/operations.rb
CHANGED
|
@@ -16,7 +16,7 @@ module AxHub
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
class Client
|
|
19
|
-
attr_reader :identity, :tenants, :authz, :audit, :gateway, :data, :deployments
|
|
19
|
+
attr_reader :identity, :tenants, :authz, :audit, :gateway, :cost, :data, :deployments
|
|
20
20
|
alias __axhub_original_initialize initialize unless method_defined?(:__axhub_original_initialize)
|
|
21
21
|
def initialize(*args, **kwargs)
|
|
22
22
|
__axhub_original_initialize(*args, **kwargs)
|
|
@@ -25,6 +25,7 @@ module AxHub
|
|
|
25
25
|
@authz = OperationClient.new(self)
|
|
26
26
|
@audit = OperationClient.new(self)
|
|
27
27
|
@gateway = OperationClient.new(self)
|
|
28
|
+
@cost = OperationClient.new(self)
|
|
28
29
|
@data = OperationClient.new(self)
|
|
29
30
|
@deployments = OperationClient.new(self)
|
|
30
31
|
end
|
data/lib/axhub_sdk/version.rb
CHANGED
data/lib/axhub_sdk.rb
CHANGED
|
@@ -16,184 +16,197 @@ module AxHub
|
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
ROUTES = [
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
{
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
32
|
-
{
|
|
33
|
-
{
|
|
34
|
-
{
|
|
35
|
-
{
|
|
36
|
-
{
|
|
37
|
-
{
|
|
38
|
-
{
|
|
39
|
-
{
|
|
40
|
-
{
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
45
|
-
{
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
{
|
|
49
|
-
{
|
|
50
|
-
{
|
|
51
|
-
{
|
|
52
|
-
{
|
|
53
|
-
{
|
|
54
|
-
{
|
|
55
|
-
{
|
|
56
|
-
{
|
|
57
|
-
{
|
|
58
|
-
{
|
|
59
|
-
{
|
|
60
|
-
{
|
|
61
|
-
{
|
|
62
|
-
{
|
|
63
|
-
{
|
|
64
|
-
{
|
|
65
|
-
{
|
|
66
|
-
{
|
|
67
|
-
{
|
|
68
|
-
{
|
|
69
|
-
{
|
|
70
|
-
{
|
|
71
|
-
{
|
|
72
|
-
{
|
|
73
|
-
{
|
|
74
|
-
{
|
|
75
|
-
{
|
|
76
|
-
{
|
|
77
|
-
{
|
|
78
|
-
{
|
|
79
|
-
{
|
|
80
|
-
{
|
|
81
|
-
{
|
|
82
|
-
{
|
|
83
|
-
{
|
|
84
|
-
{
|
|
85
|
-
{
|
|
86
|
-
{
|
|
87
|
-
{
|
|
88
|
-
{
|
|
89
|
-
{
|
|
90
|
-
{
|
|
91
|
-
{
|
|
92
|
-
{
|
|
93
|
-
{
|
|
94
|
-
{
|
|
95
|
-
{
|
|
96
|
-
{
|
|
97
|
-
{
|
|
98
|
-
{
|
|
99
|
-
{
|
|
100
|
-
{
|
|
101
|
-
{
|
|
102
|
-
{
|
|
103
|
-
{
|
|
104
|
-
{
|
|
105
|
-
{
|
|
106
|
-
{
|
|
107
|
-
{
|
|
108
|
-
{
|
|
109
|
-
{
|
|
110
|
-
{
|
|
111
|
-
{
|
|
112
|
-
{
|
|
113
|
-
{
|
|
114
|
-
{
|
|
115
|
-
{
|
|
116
|
-
{
|
|
117
|
-
{
|
|
118
|
-
{
|
|
119
|
-
{
|
|
120
|
-
{
|
|
121
|
-
{
|
|
122
|
-
{
|
|
123
|
-
{
|
|
124
|
-
{
|
|
125
|
-
{
|
|
126
|
-
{
|
|
127
|
-
{
|
|
128
|
-
{
|
|
129
|
-
{
|
|
130
|
-
{
|
|
131
|
-
{
|
|
132
|
-
{
|
|
133
|
-
{
|
|
134
|
-
{
|
|
135
|
-
{
|
|
136
|
-
{
|
|
137
|
-
{
|
|
138
|
-
{
|
|
139
|
-
{
|
|
140
|
-
{
|
|
141
|
-
{
|
|
142
|
-
{
|
|
143
|
-
{
|
|
144
|
-
{
|
|
145
|
-
{
|
|
146
|
-
{
|
|
147
|
-
{
|
|
148
|
-
{
|
|
149
|
-
{
|
|
150
|
-
{
|
|
151
|
-
{
|
|
152
|
-
{
|
|
153
|
-
{
|
|
154
|
-
{
|
|
155
|
-
{
|
|
156
|
-
{
|
|
157
|
-
{
|
|
158
|
-
{
|
|
159
|
-
{
|
|
160
|
-
{
|
|
161
|
-
{
|
|
162
|
-
{
|
|
163
|
-
{
|
|
164
|
-
{
|
|
165
|
-
{
|
|
166
|
-
{
|
|
167
|
-
{
|
|
168
|
-
{
|
|
169
|
-
{
|
|
170
|
-
{
|
|
171
|
-
{
|
|
172
|
-
{
|
|
173
|
-
{
|
|
174
|
-
{
|
|
175
|
-
{
|
|
176
|
-
{
|
|
177
|
-
{
|
|
178
|
-
{
|
|
179
|
-
{
|
|
180
|
-
{
|
|
181
|
-
{
|
|
182
|
-
{
|
|
183
|
-
{
|
|
184
|
-
{
|
|
185
|
-
{
|
|
186
|
-
{
|
|
187
|
-
{
|
|
188
|
-
{
|
|
189
|
-
{
|
|
190
|
-
{
|
|
191
|
-
{
|
|
192
|
-
{
|
|
193
|
-
{
|
|
194
|
-
{
|
|
195
|
-
{
|
|
196
|
-
|
|
19
|
+
{ 'method' => "GET", 'path' => "/.well-known/jwks.json", 'tag' => "Auth", 'operationId' => "authGetWellKnownJwksJson" },
|
|
20
|
+
{ 'method' => "GET", 'path' => "/.well-known/openid-configuration", 'tag' => "Auth", 'operationId' => "authGetWellKnownOpenidConfiguration" },
|
|
21
|
+
{ 'method' => "GET", 'path' => "/api/v1/admin/templates", 'tag' => "Apps", 'operationId' => "appsGetApiV1AdminTemplates" },
|
|
22
|
+
{ 'method' => "POST", 'path' => "/api/v1/admin/templates", 'tag' => "Apps", 'operationId' => "appsPostApiV1AdminTemplates" },
|
|
23
|
+
{ 'method' => "GET", 'path' => "/api/v1/admin/templates/{templateID}", 'tag' => "Apps", 'operationId' => "appsGetApiV1AdminTemplatesByTemplateID" },
|
|
24
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/admin/templates/{templateID}", 'tag' => "Apps", 'operationId' => "appsPatchApiV1AdminTemplatesByTemplateID" },
|
|
25
|
+
{ 'method' => "POST", 'path' => "/api/v1/admin/users/{uid}/revoke-all", 'tag' => "Auth", 'operationId' => "authPostApiV1AdminUsersByUidRevokeAll" },
|
|
26
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1AppsByAppID" },
|
|
27
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsByAppID" },
|
|
28
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/apps/{appID}", 'tag' => "Apps", 'operationId' => "appsPatchApiV1AppsByAppID" },
|
|
29
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/access", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1AppsByAppIDAccess" },
|
|
30
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/access", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDAccess" },
|
|
31
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/access/me", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsByAppIDAccessMe" },
|
|
32
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/comments", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsByAppIDComments" },
|
|
33
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/comments", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDComments" },
|
|
34
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/deployments", 'tag' => "Deploy", 'operationId' => "deployGetApiV1AppsByAppIDDeployments" },
|
|
35
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/deployments", 'tag' => "Deploy", 'operationId' => "deployPostApiV1AppsByAppIDDeployments" },
|
|
36
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/deployments/{did}", 'tag' => "Deploy", 'operationId' => "deployGetApiV1AppsByAppIDDeploymentsByDid" },
|
|
37
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/deployments/{did}/cancel", 'tag' => "Deploy", 'operationId' => "deployPostApiV1AppsByAppIDDeploymentsByDidCancel" },
|
|
38
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/deployments/{did}/rollback", 'tag' => "Deploy", 'operationId' => "deployPostApiV1AppsByAppIDDeploymentsByDidRollback" },
|
|
39
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/env-vars", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsByAppIDEnvVars" },
|
|
40
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/env-vars", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDEnvVars" },
|
|
41
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/env-vars/{key}", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1AppsByAppIDEnvVarsByKey" },
|
|
42
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/git-connection", 'tag' => "Deploy", 'operationId' => "deployDeleteApiV1AppsByAppIDGitConnection" },
|
|
43
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/git-connection", 'tag' => "Deploy", 'operationId' => "deployGetApiV1AppsByAppIDGitConnection" },
|
|
44
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/apps/{appID}/git-connection", 'tag' => "Deploy", 'operationId' => "deployPatchApiV1AppsByAppIDGitConnection" },
|
|
45
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/git-connection", 'tag' => "Deploy", 'operationId' => "deployPostApiV1AppsByAppIDGitConnection" },
|
|
46
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/git/github/install/start", 'tag' => "Deploy", 'operationId' => "deployGetApiV1AppsByAppIDGitGithubInstallStart" },
|
|
47
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/icon-dark/upload-url", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDIconDarkUploadUrl" },
|
|
48
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/icon/upload-url", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDIconUploadUrl" },
|
|
49
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/invitations", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDInvitations" },
|
|
50
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/invitations/{userID}", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1AppsByAppIDInvitationsByUserID" },
|
|
51
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/likes", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1AppsByAppIDLikes" },
|
|
52
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/likes", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDLikes" },
|
|
53
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/likes/me", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsByAppIDLikesMe" },
|
|
54
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/logs", 'tag' => "Deploy", 'operationId' => "deployGetApiV1AppsByAppIDLogs" },
|
|
55
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/members", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsByAppIDMembers" },
|
|
56
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/oauth-clients", 'tag' => "Auth", 'operationId' => "authPostApiV1AppsByAppIDOauthClients" },
|
|
57
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/permanent", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1AppsByAppIDPermanent" },
|
|
58
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/resume", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDResume" },
|
|
59
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/review-requests", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsByAppIDReviewRequests" },
|
|
60
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/review-requests", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDReviewRequests" },
|
|
61
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/suspend", 'tag' => "Apps", 'operationId' => "appsPostApiV1AppsByAppIDSuspend" },
|
|
62
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/tables", 'tag' => "Schema", 'operationId' => "schemaGetApiV1AppsByAppIDTables" },
|
|
63
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/tables", 'tag' => "Schema", 'operationId' => "schemaPostApiV1AppsByAppIDTables" },
|
|
64
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/tables/{tableName}", 'tag' => "Schema", 'operationId' => "schemaDeleteApiV1AppsByAppIDTablesByTableName" },
|
|
65
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/tables/{tableName}", 'tag' => "Schema", 'operationId' => "schemaGetApiV1AppsByAppIDTablesByTableName" },
|
|
66
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/tables/{tableName}/columns", 'tag' => "Schema", 'operationId' => "schemaPostApiV1AppsByAppIDTablesByTableNameColumns" },
|
|
67
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/tables/{tableName}/columns/{columnName}", 'tag' => "Schema", 'operationId' => "schemaDeleteApiV1AppsByAppIDTablesByTableNameColumnsByColumnName" },
|
|
68
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/tables/{tableName}/grants", 'tag' => "Schema", 'operationId' => "schemaGetApiV1AppsByAppIDTablesByTableNameGrants" },
|
|
69
|
+
{ 'method' => "POST", 'path' => "/api/v1/apps/{appID}/tables/{tableName}/grants", 'tag' => "Schema", 'operationId' => "schemaPostApiV1AppsByAppIDTablesByTableNameGrants" },
|
|
70
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/apps/{appID}/tables/{tableName}/grants/{grantID}", 'tag' => "Schema", 'operationId' => "schemaDeleteApiV1AppsByAppIDTablesByTableNameGrantsByGrantID" },
|
|
71
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/tables/{tableName}/rows", 'tag' => "Schema", 'operationId' => "schemaGetApiV1AppsByAppIDTablesByTableNameRows" },
|
|
72
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/tables/check-availability", 'tag' => "Schema", 'operationId' => "schemaGetApiV1AppsByAppIDTablesCheckAvailability" },
|
|
73
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/{appID}/tables/column-types", 'tag' => "Schema", 'operationId' => "schemaGetApiV1AppsByAppIDTablesColumnTypes" },
|
|
74
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/discover", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsDiscover" },
|
|
75
|
+
{ 'method' => "GET", 'path' => "/api/v1/apps/search", 'tag' => "Apps", 'operationId' => "appsGetApiV1AppsSearch" },
|
|
76
|
+
{ 'method' => "GET", 'path' => "/api/v1/catalog/kinds", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1CatalogKinds" },
|
|
77
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/comments/{commentID}", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1CommentsByCommentID" },
|
|
78
|
+
{ 'method' => "GET", 'path' => "/api/v1/engines", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1Engines" },
|
|
79
|
+
{ 'method' => "GET", 'path' => "/api/v1/github/accounts", 'tag' => "deploy", 'operationId' => "deployGetApiV1GithubAccounts" },
|
|
80
|
+
{ 'method' => "GET", 'path' => "/api/v1/github/installations/{installationID}/repositories", 'tag' => "deploy", 'operationId' => "deployGetApiV1GithubInstallationsByInstallationIDRepositories" },
|
|
81
|
+
{ 'method' => "GET", 'path' => "/api/v1/invite-links/{token}", 'tag' => "Tenants", 'operationId' => "tenantsGetApiV1InviteLinksByToken" },
|
|
82
|
+
{ 'method' => "POST", 'path' => "/api/v1/invite-links/{token}/accept", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1InviteLinksByTokenAccept" },
|
|
83
|
+
{ 'method' => "GET", 'path' => "/api/v1/me", 'tag' => "Auth", 'operationId' => "authGetApiV1Me" },
|
|
84
|
+
{ 'method' => "GET", 'path' => "/api/v1/me/apps/owned", 'tag' => "Apps", 'operationId' => "appsGetApiV1MeAppsOwned" },
|
|
85
|
+
{ 'method' => "GET", 'path' => "/api/v1/me/apps/received", 'tag' => "Apps", 'operationId' => "appsGetApiV1MeAppsReceived" },
|
|
86
|
+
{ 'method' => "GET", 'path' => "/api/v1/me/apps/workspace", 'tag' => "Apps", 'operationId' => "appsGetApiV1MeAppsWorkspace" },
|
|
87
|
+
{ 'method' => "POST", 'path' => "/api/v1/me/invitations/{invitationID}/accept", 'tag' => "Auth", 'operationId' => "authPostApiV1MeInvitationsByInvitationIDAccept" },
|
|
88
|
+
{ 'method' => "GET", 'path' => "/api/v1/me/personal-access-tokens", 'tag' => "Schema", 'operationId' => "schemaGetApiV1MePersonalAccessTokens" },
|
|
89
|
+
{ 'method' => "POST", 'path' => "/api/v1/me/personal-access-tokens", 'tag' => "Schema", 'operationId' => "schemaPostApiV1MePersonalAccessTokens" },
|
|
90
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/me/personal-access-tokens/{patID}", 'tag' => "Schema", 'operationId' => "schemaDeleteApiV1MePersonalAccessTokensByPatID" },
|
|
91
|
+
{ 'method' => "GET", 'path' => "/api/v1/oauth-clients/{clientID}", 'tag' => "Auth", 'operationId' => "authGetApiV1OauthClientsByClientID" },
|
|
92
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/oauth/clients/{clientID}/grants/me", 'tag' => "Auth", 'operationId' => "authDeleteApiV1OauthClientsByClientIDGrantsMe" },
|
|
93
|
+
{ 'method' => "GET", 'path' => "/api/v1/review-requests/{rrID}", 'tag' => "Apps", 'operationId' => "appsGetApiV1ReviewRequestsByRrID" },
|
|
94
|
+
{ 'method' => "POST", 'path' => "/api/v1/review-requests/{rrID}/approve", 'tag' => "Apps", 'operationId' => "appsPostApiV1ReviewRequestsByRrIDApprove" },
|
|
95
|
+
{ 'method' => "POST", 'path' => "/api/v1/review-requests/{rrID}/reject", 'tag' => "Apps", 'operationId' => "appsPostApiV1ReviewRequestsByRrIDReject" },
|
|
96
|
+
{ 'method' => "GET", 'path' => "/api/v1/review-requests/history", 'tag' => "Apps", 'operationId' => "appsGetApiV1ReviewRequestsHistory" },
|
|
97
|
+
{ 'method' => "GET", 'path' => "/api/v1/review-requests/pending", 'tag' => "Apps", 'operationId' => "appsGetApiV1ReviewRequestsPending" },
|
|
98
|
+
{ 'method' => "GET", 'path' => "/api/v1/templates", 'tag' => "Apps", 'operationId' => "appsGetApiV1Templates" },
|
|
99
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants", 'tag' => "Tenants", 'operationId' => "tenantsGetApiV1Tenants" },
|
|
100
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1Tenants" },
|
|
101
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}", 'tag' => "Tenants", 'operationId' => "tenantsDeleteApiV1TenantsByTenantID" },
|
|
102
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}", 'tag' => "Tenants", 'operationId' => "tenantsGetApiV1TenantsByTenantID" },
|
|
103
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/tenants/{tenantID}", 'tag' => "Tenants", 'operationId' => "tenantsPatchApiV1TenantsByTenantID" },
|
|
104
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/app-bootstraps", 'tag' => "Deploy", 'operationId' => "deployPostApiV1TenantsByTenantIDAppBootstraps" },
|
|
105
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/app-bootstraps/{bootstrapID}", 'tag' => "Deploy", 'operationId' => "deployGetApiV1TenantsByTenantIDAppBootstrapsByBootstrapID" },
|
|
106
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/apps", 'tag' => "Apps", 'operationId' => "appsGetApiV1TenantsByTenantIDApps" },
|
|
107
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/apps", 'tag' => "Apps", 'operationId' => "appsPostApiV1TenantsByTenantIDApps" },
|
|
108
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/apps/check-availability", 'tag' => "Apps", 'operationId' => "appsGetApiV1TenantsByTenantIDAppsCheckAvailability" },
|
|
109
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/apps/icon/upload-url", 'tag' => "Apps", 'operationId' => "appsPostApiV1TenantsByTenantIDAppsIconUploadUrl" },
|
|
110
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/audit-events", 'tag' => "Audit", 'operationId' => "auditGetApiV1TenantsByTenantIDAuditEvents" },
|
|
111
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/audit-events/{eventID}", 'tag' => "Audit", 'operationId' => "auditGetApiV1TenantsByTenantIDAuditEventsByEventID" },
|
|
112
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/audit-events/anonymize", 'tag' => "Audit", 'operationId' => "auditPostApiV1TenantsByTenantIDAuditEventsAnonymize" },
|
|
113
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/audit-events/integrity-check", 'tag' => "Audit", 'operationId' => "auditGetApiV1TenantsByTenantIDAuditEventsIntegrityCheck" },
|
|
114
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/catalog/connectors", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1TenantsByTenantIDCatalogConnectors" },
|
|
115
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/catalog/resources", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1TenantsByTenantIDCatalogResources" },
|
|
116
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/catalog/resources/{connector}/{path}", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1TenantsByTenantIDCatalogResourcesByConnectorByPath" },
|
|
117
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/catalog/resources/{connector}/{path}", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDCatalogResourcesByConnectorByPath" },
|
|
118
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/categories", 'tag' => "Apps", 'operationId' => "appsGetApiV1TenantsByTenantIDCategories" },
|
|
119
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/categories", 'tag' => "Apps", 'operationId' => "appsPostApiV1TenantsByTenantIDCategories" },
|
|
120
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/categories/{categoryID}", 'tag' => "Apps", 'operationId' => "appsDeleteApiV1TenantsByTenantIDCategoriesByCategoryID" },
|
|
121
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/categories/{categoryID}", 'tag' => "Apps", 'operationId' => "appsGetApiV1TenantsByTenantIDCategoriesByCategoryID" },
|
|
122
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/tenants/{tenantID}/categories/{categoryID}", 'tag' => "Apps", 'operationId' => "appsPatchApiV1TenantsByTenantIDCategoriesByCategoryID" },
|
|
123
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/connectors", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1TenantsByTenantIDConnectors" },
|
|
124
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/connectors", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDConnectors" },
|
|
125
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/connectors/{connectorID}", 'tag' => "Gateway", 'operationId' => "gatewayDeleteApiV1TenantsByTenantIDConnectorsByConnectorID" },
|
|
126
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/tenants/{tenantID}/connectors/{connectorID}", 'tag' => "Gateway", 'operationId' => "gatewayPatchApiV1TenantsByTenantIDConnectorsByConnectorID" },
|
|
127
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/connectors/{connectorID}/credentials", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDConnectorsByConnectorIDCredentials" },
|
|
128
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/connectors/{connectorID}/discover", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1TenantsByTenantIDConnectorsByConnectorIDDiscover" },
|
|
129
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/cost/by-app", 'tag' => "Cost", 'operationId' => "costGetApiV1TenantsByTenantIDCostByApp" },
|
|
130
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/cost/by-cost-center", 'tag' => "Cost", 'operationId' => "costGetApiV1TenantsByTenantIDCostByCostCenter" },
|
|
131
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/cost/export", 'tag' => "Cost", 'operationId' => "costGetApiV1TenantsByTenantIDCostExport" },
|
|
132
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/cost/summary", 'tag' => "Cost", 'operationId' => "costGetApiV1TenantsByTenantIDCostSummary" },
|
|
133
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/cost/timeseries", 'tag' => "Cost", 'operationId' => "costGetApiV1TenantsByTenantIDCostTimeseries" },
|
|
134
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/discover/apps", 'tag' => "Apps", 'operationId' => "appsGetApiV1TenantsByTenantIDDiscoverApps" },
|
|
135
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/email-domains", 'tag' => "Tenants", 'operationId' => "tenantsGetApiV1TenantsByTenantIDEmailDomains" },
|
|
136
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/email-domains", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1TenantsByTenantIDEmailDomains" },
|
|
137
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/email-domains/{domain}", 'tag' => "Tenants", 'operationId' => "tenantsDeleteApiV1TenantsByTenantIDEmailDomainsByDomain" },
|
|
138
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/gateway/query", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDGatewayQuery" },
|
|
139
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/grants", 'tag' => "Authorization", 'operationId' => "authorizationGetApiV1TenantsByTenantIDGrants" },
|
|
140
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/grants/{grantID}/grant", 'tag' => "Authorization", 'operationId' => "authorizationPostApiV1TenantsByTenantIDGrantsByGrantIDGrant" },
|
|
141
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/grants/{grantID}/revoke", 'tag' => "Authorization", 'operationId' => "authorizationPostApiV1TenantsByTenantIDGrantsByGrantIDRevoke" },
|
|
142
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/icon", 'tag' => "Tenants", 'operationId' => "tenantsDeleteApiV1TenantsByTenantIDIcon" },
|
|
143
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/icon/upload-url", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1TenantsByTenantIDIconUploadUrl" },
|
|
144
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/identity-providers", 'tag' => "Auth", 'operationId' => "authGetApiV1TenantsByTenantIDIdentityProviders" },
|
|
145
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/identity-providers", 'tag' => "Auth", 'operationId' => "authPostApiV1TenantsByTenantIDIdentityProviders" },
|
|
146
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/identity-providers/{providerID}/disable", 'tag' => "Auth", 'operationId' => "authPostApiV1TenantsByTenantIDIdentityProvidersByProviderIDDisable" },
|
|
147
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/identity-providers/{providerID}/enable", 'tag' => "Auth", 'operationId' => "authPostApiV1TenantsByTenantIDIdentityProvidersByProviderIDEnable" },
|
|
148
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/invitations", 'tag' => "Tenants", 'operationId' => "tenantsGetApiV1TenantsByTenantIDInvitations" },
|
|
149
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/invitations", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1TenantsByTenantIDInvitations" },
|
|
150
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/invitations/{invitationID}", 'tag' => "Tenants", 'operationId' => "tenantsDeleteApiV1TenantsByTenantIDInvitationsByInvitationID" },
|
|
151
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/invitations/bulk", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1TenantsByTenantIDInvitationsBulk" },
|
|
152
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/invite-links", 'tag' => "Tenants", 'operationId' => "tenantsGetApiV1TenantsByTenantIDInviteLinks" },
|
|
153
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/invite-links", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1TenantsByTenantIDInviteLinks" },
|
|
154
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/invite-links/{linkID}", 'tag' => "Tenants", 'operationId' => "tenantsDeleteApiV1TenantsByTenantIDInviteLinksByLinkID" },
|
|
155
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/members", 'tag' => "Tenants", 'operationId' => "tenantsGetApiV1TenantsByTenantIDMembers" },
|
|
156
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/tenants/{tenantID}/members/{membershipID}", 'tag' => "Tenants", 'operationId' => "tenantsPatchApiV1TenantsByTenantIDMembersByMembershipID" },
|
|
157
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/members/{membershipID}/deactivate", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1TenantsByTenantIDMembersByMembershipIDDeactivate" },
|
|
158
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/members/{membershipID}/reactivate", 'tag' => "Tenants", 'operationId' => "tenantsPostApiV1TenantsByTenantIDMembersByMembershipIDReactivate" },
|
|
159
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/resources", 'tag' => "Gateway", 'operationId' => "gatewayGetApiV1TenantsByTenantIDResources" },
|
|
160
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/resources/{resourceID}", 'tag' => "Gateway", 'operationId' => "gatewayDeleteApiV1TenantsByTenantIDResourcesByResourceID" },
|
|
161
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/tenants/{tenantID}/resources/{resourceID}", 'tag' => "Gateway", 'operationId' => "gatewayPatchApiV1TenantsByTenantIDResourcesByResourceID" },
|
|
162
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/resources/{resourceID}/move", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDResourcesByResourceIDMove" },
|
|
163
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/resources/{resourceID}/tags", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDResourcesByResourceIDTags" },
|
|
164
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/resources/{resourceID}/tags/{tagID}", 'tag' => "Gateway", 'operationId' => "gatewayDeleteApiV1TenantsByTenantIDResourcesByResourceIDTagsByTagID" },
|
|
165
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/resources/bulk", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDResourcesBulk" },
|
|
166
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/resources/namespaces", 'tag' => "Gateway", 'operationId' => "gatewayPostApiV1TenantsByTenantIDResourcesNamespaces" },
|
|
167
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/subjects", 'tag' => "Authorization", 'operationId' => "authorizationGetApiV1TenantsByTenantIDSubjects" },
|
|
168
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/subjects", 'tag' => "Authorization", 'operationId' => "authorizationPostApiV1TenantsByTenantIDSubjects" },
|
|
169
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/subjects/{subjectID}", 'tag' => "Authorization", 'operationId' => "authorizationDeleteApiV1TenantsByTenantIDSubjectsBySubjectID" },
|
|
170
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/tenants/{tenantID}/subjects/{subjectID}", 'tag' => "Authorization", 'operationId' => "authorizationPatchApiV1TenantsByTenantIDSubjectsBySubjectID" },
|
|
171
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/subjects/{subjectID}/move", 'tag' => "Authorization", 'operationId' => "authorizationPostApiV1TenantsByTenantIDSubjectsBySubjectIDMove" },
|
|
172
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/subjects/{subjectID}/tags", 'tag' => "Authorization", 'operationId' => "authorizationPostApiV1TenantsByTenantIDSubjectsBySubjectIDTags" },
|
|
173
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/subjects/{subjectID}/tags/{tagID}", 'tag' => "Authorization", 'operationId' => "authorizationDeleteApiV1TenantsByTenantIDSubjectsBySubjectIDTagsByTagID" },
|
|
174
|
+
{ 'method' => "GET", 'path' => "/api/v1/tenants/{tenantID}/tags", 'tag' => "Authorization", 'operationId' => "authorizationGetApiV1TenantsByTenantIDTags" },
|
|
175
|
+
{ 'method' => "POST", 'path' => "/api/v1/tenants/{tenantID}/tags", 'tag' => "Authorization", 'operationId' => "authorizationPostApiV1TenantsByTenantIDTags" },
|
|
176
|
+
{ 'method' => "DELETE", 'path' => "/api/v1/tenants/{tenantID}/tags/{tagID}", 'tag' => "Authorization", 'operationId' => "authorizationDeleteApiV1TenantsByTenantIDTagsByTagID" },
|
|
177
|
+
{ 'method' => "PATCH", 'path' => "/api/v1/tenants/{tenantID}/tags/{tagID}", 'tag' => "Authorization", 'operationId' => "authorizationPatchApiV1TenantsByTenantIDTagsByTagID" },
|
|
178
|
+
{ 'method' => "GET", 'path' => "/api/v1/users/me/apps", 'tag' => "Apps", 'operationId' => "appsGetApiV1UsersMeApps" },
|
|
179
|
+
{ 'method' => "GET", 'path' => "/auth/{providerID}/start", 'tag' => "Auth", 'operationId' => "authGetAuthByProviderIDStart" },
|
|
180
|
+
{ 'method' => "GET", 'path' => "/auth/github", 'tag' => "identity", 'operationId' => "identityGetAuthGithub" },
|
|
181
|
+
{ 'method' => "GET", 'path' => "/auth/github/callback", 'tag' => "identity", 'operationId' => "identityGetAuthGithubCallback" },
|
|
182
|
+
{ 'method' => "GET", 'path' => "/auth/google_oauth2/callback", 'tag' => "Auth", 'operationId' => "authGetAuthGoogleOauth2Callback" },
|
|
183
|
+
{ 'method' => "GET", 'path' => "/auth/google_oauth2/start", 'tag' => "Auth", 'operationId' => "authGetAuthGoogleOauth2Start" },
|
|
184
|
+
{ 'method' => "POST", 'path' => "/auth/logout", 'tag' => "Auth", 'operationId' => "authPostAuthLogout" },
|
|
185
|
+
{ 'method' => "GET", 'path' => "/auth/oidc/callback", 'tag' => "Auth", 'operationId' => "authGetAuthOidcCallback" },
|
|
186
|
+
{ 'method' => "GET", 'path' => "/auth/providers", 'tag' => "Auth", 'operationId' => "authGetAuthProviders" },
|
|
187
|
+
{ 'method' => "POST", 'path' => "/auth/refresh", 'tag' => "Auth", 'operationId' => "authPostAuthRefresh" },
|
|
188
|
+
{ 'method' => "GET", 'path' => "/auth/silent/callback", 'tag' => "Auth", 'operationId' => "authGetAuthSilentCallback" },
|
|
189
|
+
{ 'method' => "GET", 'path' => "/auth/silent/start", 'tag' => "Auth", 'operationId' => "authGetAuthSilentStart" },
|
|
190
|
+
{ 'method' => "GET", 'path' => "/config/public", 'tag' => "Config", 'operationId' => "configGetConfigPublic" },
|
|
191
|
+
{ 'method' => "GET", 'path' => "/data/{tenantSlug}/{appSlug}/{table}", 'tag' => "Schema", 'operationId' => "schemaGetDataByTenantSlugByAppSlugByTable" },
|
|
192
|
+
{ 'method' => "POST", 'path' => "/data/{tenantSlug}/{appSlug}/{table}", 'tag' => "Schema", 'operationId' => "schemaPostDataByTenantSlugByAppSlugByTable" },
|
|
193
|
+
{ 'method' => "GET", 'path' => "/data/{tenantSlug}/{appSlug}/{table}/_count", 'tag' => "Schema", 'operationId' => "schemaGetDataByTenantSlugByAppSlugByTableCount" },
|
|
194
|
+
{ 'method' => "DELETE", 'path' => "/data/{tenantSlug}/{appSlug}/{table}/{id}", 'tag' => "Schema", 'operationId' => "schemaDeleteDataByTenantSlugByAppSlugByTableById" },
|
|
195
|
+
{ 'method' => "GET", 'path' => "/data/{tenantSlug}/{appSlug}/{table}/{id}", 'tag' => "Schema", 'operationId' => "schemaGetDataByTenantSlugByAppSlugByTableById" },
|
|
196
|
+
{ 'method' => "PATCH", 'path' => "/data/{tenantSlug}/{appSlug}/{table}/{id}", 'tag' => "Schema", 'operationId' => "schemaPatchDataByTenantSlugByAppSlugByTableById" },
|
|
197
|
+
{ 'method' => "GET", 'path' => "/internal/app-access", 'tag' => "Apps", 'operationId' => "appsGetInternalAppAccess" },
|
|
198
|
+
{ 'method' => "GET", 'path' => "/oauth/authorize", 'tag' => "Auth", 'operationId' => "authGetOauthAuthorize" },
|
|
199
|
+
{ 'method' => "POST", 'path' => "/oauth/authorize/tenant", 'tag' => "Auth", 'operationId' => "authPostOauthAuthorizeTenant" },
|
|
200
|
+
{ 'method' => "POST", 'path' => "/oauth/device_authorization", 'tag' => "Auth", 'operationId' => "authPostOauthDeviceAuthorization" },
|
|
201
|
+
{ 'method' => "POST", 'path' => "/oauth/device/authorize", 'tag' => "Auth", 'operationId' => "authPostOauthDeviceAuthorize" },
|
|
202
|
+
{ 'method' => "GET", 'path' => "/oauth/device/lookup", 'tag' => "Auth", 'operationId' => "authGetOauthDeviceLookup" },
|
|
203
|
+
{ 'method' => "POST", 'path' => "/oauth/register", 'tag' => "Auth", 'operationId' => "authPostOauthRegister" },
|
|
204
|
+
{ 'method' => "POST", 'path' => "/oauth/revoke", 'tag' => "Auth", 'operationId' => "authPostOauthRevoke" },
|
|
205
|
+
{ 'method' => "POST", 'path' => "/oauth/token", 'tag' => "Auth", 'operationId' => "authPostOauthToken" },
|
|
206
|
+
{ 'method' => "GET", 'path' => "/oauth/userinfo", 'tag' => "Auth", 'operationId' => "authGetOauthUserinfo" },
|
|
207
|
+
{ 'method' => "POST", 'path' => "/webhooks/github", 'tag' => "Deploy", 'operationId' => "deployPostWebhooksGithub" },
|
|
208
|
+
].freeze
|
|
209
|
+
|
|
197
210
|
ERROR_CODES = {
|
|
198
211
|
"already_accessed" => ErrorInfo.new("conflict", 409, false),
|
|
199
212
|
"already_active" => ErrorInfo.new("conflict", 409, false),
|
|
@@ -215,6 +228,7 @@ module AxHub
|
|
|
215
228
|
"empty" => ErrorInfo.new("validation", 400, false),
|
|
216
229
|
"forbidden" => ErrorInfo.new("permission_denied", 403, false),
|
|
217
230
|
"internal_error" => ErrorInfo.new("internal", 500, false),
|
|
231
|
+
"invalid_expiry" => ErrorInfo.new("validation", 400, false),
|
|
218
232
|
"invalid_format" => ErrorInfo.new("validation", 400, false),
|
|
219
233
|
"invalid_state_transition" => ErrorInfo.new("conflict", 409, false),
|
|
220
234
|
"invalid_value" => ErrorInfo.new("validation", 400, false),
|
|
@@ -237,7 +251,8 @@ module AxHub
|
|
|
237
251
|
"token_invalid" => ErrorInfo.new("unauthenticated", 401, true),
|
|
238
252
|
"token_missing" => ErrorInfo.new("unauthenticated", 401, true),
|
|
239
253
|
"too_long" => ErrorInfo.new("validation", 400, false),
|
|
240
|
-
}
|
|
254
|
+
}.freeze
|
|
255
|
+
|
|
241
256
|
ROUTE_BY_OP = ROUTES.map { |r| [r['operationId'], r] }.to_h
|
|
242
257
|
def self.camel(key)
|
|
243
258
|
parts = key.to_s.split('_'); parts.first + parts.drop(1).map { |p| p[0].upcase + p[1..-1].to_s }.join
|
|
@@ -249,6 +264,11 @@ module AxHub
|
|
|
249
264
|
else value
|
|
250
265
|
end
|
|
251
266
|
end
|
|
267
|
+
FORM_ENCODED_OPERATIONS = %w[
|
|
268
|
+
authPostOauthDeviceAuthorization
|
|
269
|
+
authPostOauthRevoke
|
|
270
|
+
authPostOauthToken
|
|
271
|
+
].freeze
|
|
252
272
|
class Client
|
|
253
273
|
attr_reader :base_url, :apps
|
|
254
274
|
def initialize(base_url: DEFAULT_BASE_URL, token: nil, token_type: nil, default_tenant_id: nil, default_tenant_slug: nil, timeout_seconds: 10)
|
|
@@ -261,7 +281,15 @@ module AxHub
|
|
|
261
281
|
route = ROUTE_BY_OP.fetch(operation_id); path = route['path'].dup; path_params.each { |k, v| path.gsub!("{#{k}}", URI.encode_www_form_component(v.to_s)) }; raise Error.new(category: 'validation', code: 'required', message: 'missing path parameter') if path.include?(123.chr) || path.include?(125.chr)
|
|
262
282
|
uri = URI(@base_url + path); uri.query = URI.encode_www_form(query) unless query.empty?
|
|
263
283
|
req_class = Net::HTTP.const_get(route['method'].capitalize); req = req_class.new(uri); req['X-Request-ID'] = request_id
|
|
264
|
-
if body
|
|
284
|
+
if body
|
|
285
|
+
if FORM_ENCODED_OPERATIONS.include?(operation_id)
|
|
286
|
+
req['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
287
|
+
req.body = URI.encode_www_form(body.transform_keys(&:to_s).transform_values { |v| v.nil? ? '' : v.to_s })
|
|
288
|
+
else
|
|
289
|
+
req['Content-Type'] = 'application/json'
|
|
290
|
+
req.body = JSON.generate(body)
|
|
291
|
+
end
|
|
292
|
+
end
|
|
265
293
|
if @token
|
|
266
294
|
case @token_type
|
|
267
295
|
when :pat then req['X-Api-Key'] = @token
|
|
@@ -274,6 +302,7 @@ module AxHub
|
|
|
274
302
|
rescue Timeout::Error, IOError, SocketError, SystemCallError => e
|
|
275
303
|
raise Error.new(category: 'network', code: 'network_error', message: e.message, retryable: true)
|
|
276
304
|
end
|
|
305
|
+
return { 'status' => res.code.to_i, 'location' => res['location'] } if res.code.to_i >= 300 && res.code.to_i < 400
|
|
277
306
|
parsed = if res.body && !res.body.empty?
|
|
278
307
|
begin
|
|
279
308
|
JSON.parse(res.body)
|
|
@@ -314,11 +343,12 @@ module AxHub
|
|
|
314
343
|
return 'authz' if tag == 'Authorization'
|
|
315
344
|
return 'audit' if tag == 'Audit'
|
|
316
345
|
return 'gateway' if ['Gateway', 'Config'].include?(tag)
|
|
346
|
+
return 'cost' if tag == 'Cost'
|
|
317
347
|
return 'data' if tag == 'Schema'
|
|
318
348
|
return 'deployments' if ['Deploy', 'deploy'].include?(tag)
|
|
319
|
-
|
|
349
|
+
raise ArgumentError, "unmapped route tag: #{tag}"
|
|
320
350
|
end
|
|
321
|
-
CONTEXT_ROUTES = %w[apps identity tenants authz audit gateway data deployments].map { |name| [name, ROUTES.select { |route| context_name(route) == name }] }.to_h
|
|
351
|
+
CONTEXT_ROUTES = %w[apps identity tenants authz audit gateway cost data deployments].map { |name| [name, ROUTES.select { |route| context_name(route) == name }] }.to_h
|
|
322
352
|
end
|
|
323
353
|
|
|
324
354
|
require_relative 'axhub_sdk/operations'
|