Skip to content

Commit

Permalink
rback stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Apr 20, 2024
1 parent 53cd54c commit 30d1b11
Show file tree
Hide file tree
Showing 15 changed files with 3,811 additions and 0 deletions.
1,274 changes: 1,274 additions & 0 deletions sdk/client/api_application_resource.go

Large diffs are not rendered by default.

828 changes: 828 additions & 0 deletions sdk/client/api_group_resource.go

Large diffs are not rendered by default.

1,001 changes: 1,001 additions & 0 deletions sdk/client/api_secret_resource.go

Large diffs are not rendered by default.

534 changes: 534 additions & 0 deletions sdk/client/api_user_resource.go

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions sdk/model/rbac/conductor_user.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type ConductorUser struct {
ApplicationUser bool `json:"applicationUser,omitempty"`
EncryptedId bool `json:"encryptedId,omitempty"`
EncryptedIdDisplayValue string `json:"encryptedIdDisplayValue,omitempty"`
Groups []Group `json:"groups,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Roles []Role `json:"roles,omitempty"`
Uuid string `json:"uuid,omitempty"`
}
14 changes: 14 additions & 0 deletions sdk/model/rbac/create_or_update_application_request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type CreateOrUpdateApplicationRequest struct {
// Application's name e.g.: Payment Processors
Name string `json:"name"`
}
21 changes: 21 additions & 0 deletions sdk/model/rbac/extended_conductor_application.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

import "github.com/conductor-sdk/conductor-go/sdk/model"

type ConductorApplication struct {
CreateTime int64 `json:"createTime,omitempty"`
CreatedBy string `json:"createdBy,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Tags []model.Tag `json:"tags,omitempty"`
UpdateTime int64 `json:"updateTime,omitempty"`
UpdatedBy string `json:"updatedBy,omitempty"`
}
15 changes: 15 additions & 0 deletions sdk/model/rbac/granted_access.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type GrantedAccess struct {
Access []string `json:"access,omitempty"`
Tag string `json:"tag,omitempty"`
Target *TargetRef `json:"target,omitempty"`
}
13 changes: 13 additions & 0 deletions sdk/model/rbac/granted_access_response.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type GrantedAccessResponse struct {
GrantedAccess []GrantedAccess `json:"grantedAccess,omitempty"`
}
16 changes: 16 additions & 0 deletions sdk/model/rbac/group.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type Group struct {
DefaultAccess map[string][]string `json:"defaultAccess,omitempty"`
Description string `json:"description,omitempty"`
Id string `json:"id,omitempty"`
Roles []Role `json:"roles,omitempty"`
}
13 changes: 13 additions & 0 deletions sdk/model/rbac/permission.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type Permission struct {
Name string `json:"name,omitempty"`
}
14 changes: 14 additions & 0 deletions sdk/model/rbac/role.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type Role struct {
Name string `json:"name,omitempty"`
Permissions []Permission `json:"permissions,omitempty"`
}
17 changes: 17 additions & 0 deletions sdk/model/rbac/upsert_group_request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type UpsertGroupRequest struct {
// a default Map<TargetType, Set<Access> to share permissions, allowed target types: WORKFLOW_DEF, TASK_DEF, WORKFLOW_SCHEDULE
DefaultAccess map[string][]string `json:"defaultAccess,omitempty"`
// A general description of the group
Description string `json:"description"`
Roles []string `json:"roles,omitempty"`
}
17 changes: 17 additions & 0 deletions sdk/model/rbac/upsert_user_request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package rbac

type UpsertUserRequest struct {
// Ids of the groups this user belongs to
Groups []string `json:"groups,omitempty"`
// User's full name
Name string `json:"name"`
Roles []string `json:"roles,omitempty"`
}
14 changes: 14 additions & 0 deletions sdk/model/secret.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
package model

type Secret struct {
Name string `json:"name,omitempty"`
Tags []Tag `json:"tags,omitempty"`
}

0 comments on commit 30d1b11

Please sign in to comment.