Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { ResourceGroupType } from '@/api-clients/_common/schema/type';
import type { AzureManagementGroupMappingType } from '@/api-clients/identity/trusted-account/schema/type';

export interface TrustedAccountCreateParameters {
name: string;
Expand All @@ -14,6 +15,7 @@ export interface TrustedAccountCreateParameters {
sync_options?: {
skip_project_group: boolean;
single_workspace_id: string;
azure_management_group_mapping_type?: AzureManagementGroupMappingType; // only for Azure
};
plugin_options?: Record<string, any>;
tags?: Tags;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { AzureManagementGroupMappingType } from '@/api-clients/identity/trusted-account/schema/type';

export interface TrustedAccountUpdateParameters {
trusted_account_id: string;
Expand All @@ -11,6 +12,7 @@ export interface TrustedAccountUpdateParameters {
sync_options?: {
skip_project_group: boolean;
single_workspace_id: string;
azure_management_group_mapping_type?: AzureManagementGroupMappingType; // only for Azure
};
plugin_options?: Record<string, any>;
tags?: Tags;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const AZURE_MANAGEMENT_GROUP_MAPPING_TYPE = {
TOP_MANAGEMENT_GROUP: 'Top Management Group',
LEAF_MANAGEMENT_GROUP: 'Leaf Management Group',
} as const;
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Tags } from '@/api-clients/_common/schema/model';
import type { ResourceGroupType } from '@/api-clients/_common/schema/type';
import type { AzureManagementGroupMappingType } from '@/api-clients/identity/trusted-account/schema/type';

export interface TrustedAccountModel {
trusted_account_id: string;
Expand All @@ -13,6 +14,8 @@ export interface TrustedAccountModel {
sync_options?: {
skip_project_group: boolean;
single_workspace_id: string;
use_management_group_as_workspace?: boolean; // only for Azure
azure_management_group_mapping_type?: AzureManagementGroupMappingType; // only for Azure
};
plugin_options?: Record<string, any>;
tags: Tags;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import type { AZURE_MANAGEMENT_GROUP_MAPPING_TYPE } from '@/api-clients/identity/trusted-account/schema/constant';

export type AzureManagementGroupMappingType = (typeof AZURE_MANAGEMENT_GROUP_MAPPING_TYPE)[keyof typeof AZURE_MANAGEMENT_GROUP_MAPPING_TYPE];
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { computed } from 'vue';

import { useMutation, useQueryClient } from '@tanstack/vue-query';

import { PButtonModal } from '@cloudforet/mirinae/';
import { PButtonModal } from '@cloudforet/mirinae';

import { useTaskCategoryApi } from '@/api-clients/opsflow/task-category/composables/use-task-category-api';
import type { TaskModel } from '@/api-clients/opsflow/task/schema/model';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const handleClickSaveButton = async () => {
sync_options: {
skip_project_group: serviceAccountPageFormState.skipProjectGroup,
single_workspace_id: serviceAccountPageFormState.selectedSingleWorkspace ?? undefined,
azure_management_group_mapping_type: serviceAccountPageFormState.azureManagementGroupMappingType ?? undefined,
},
plugin_options: serviceAccountPageFormState.additionalOptions,
});
Expand Down
Loading
Loading