Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
CI errors
  • Loading branch information
Kira-Pilot committed Jan 26, 2023
commit 0bfed247544771888d384a6396d07402dd5ae868
6 changes: 1 addition & 5 deletions coderd/apidoc/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions coderd/apidoc/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions coderd/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,6 @@ func auditSearchQuery(query string) (database.GetAuditLogsOffsetParams, []coders

func resourceTypeFromString(resourceTypeString string) string {
switch codersdk.ResourceType(resourceTypeString) {
case codersdk.ResourceTypeOrganization:
return resourceTypeString
case codersdk.ResourceTypeTemplate:
return resourceTypeString
case codersdk.ResourceTypeTemplateVersion:
Expand Down
4 changes: 2 additions & 2 deletions docs/api/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ curl -X GET http://coder-server:8080/api/v2/audit?q=string \
"resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
"resource_link": "string",
"resource_target": "string",
"resource_type": "organization",
"resource_type": "template",
"status_code": 0,
"time": "2019-08-24T14:15:22Z",
"user": {
Expand Down Expand Up @@ -108,7 +108,7 @@ curl -X POST http://coder-server:8080/api/v2/audit/testgenerate \
"action": "create",
"build_reason": "autostart",
"resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
"resource_type": "organization",
"resource_type": "template",
"time": "2019-08-24T14:15:22Z"
}
```
Expand Down
13 changes: 5 additions & 8 deletions docs/api/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
"resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
"resource_link": "string",
"resource_target": "string",
"resource_type": "organization",
"resource_type": "template",
"status_code": 0,
"time": "2019-08-24T14:15:22Z",
"user": {
Expand Down Expand Up @@ -406,7 +406,7 @@
"resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
"resource_link": "string",
"resource_target": "string",
"resource_type": "organization",
"resource_type": "template",
"status_code": 0,
"time": "2019-08-24T14:15:22Z",
"user": {
Expand Down Expand Up @@ -785,7 +785,7 @@ CreateParameterRequest is a structure used to create a new parameter value for a
"action": "create",
"build_reason": "autostart",
"resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
"resource_type": "organization",
"resource_type": "template",
"time": "2019-08-24T14:15:22Z"
}
```
Expand All @@ -812,15 +812,13 @@ CreateParameterRequest is a structure used to create a new parameter value for a
| `build_reason` | `autostart` |
| `build_reason` | `autostop` |
| `build_reason` | `initiator` |
| `resource_type` | `organization` |
| `resource_type` | `template` |
| `resource_type` | `template_version` |
| `resource_type` | `user` |
| `resource_type` | `workspace` |
| `resource_type` | `workspace_build` |
| `resource_type` | `git_ssh_key` |
| `resource_type` | `api_key` |
| `resource_type` | `group` |
| `resource_type` | `auditable_group` |

## codersdk.CreateTokenRequest

Expand Down Expand Up @@ -3739,7 +3737,7 @@ Parameter represents a set value for the scope.
## codersdk.ResourceType

```json
"organization"
"template"
```

### Properties
Expand All @@ -3748,7 +3746,6 @@ Parameter represents a set value for the scope.

| Value |
| ------------------ |
| `organization` |
| `template` |
| `template_version` |
| `user` |
Expand Down
2 changes: 0 additions & 2 deletions site/src/api/typesGenerated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,6 @@ export type ResourceType =
| "api_key"
| "git_ssh_key"
| "group"
| "organization"
| "template"
| "template_version"
| "user"
Expand All @@ -1211,7 +1210,6 @@ export const ResourceTypes: ResourceType[] = [
"api_key",
"git_ssh_key",
"group",
"organization",
"template",
"template_version",
"user",
Expand Down