From 3ee757f8edf68378587e8f5e99b8243c816a9c02 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Tue, 10 Dec 2024 16:20:12 +0200 Subject: [PATCH] added ConfigProfileRepository struct to ConfigProfile to support the new format --- xsc/services/profile.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/xsc/services/profile.go b/xsc/services/profile.go index 3e1968491..0dd4f998d 100644 --- a/xsc/services/profile.go +++ b/xsc/services/profile.go @@ -31,10 +31,18 @@ func NewConfigurationProfileService(client *jfroghttpclient.JfrogHttpClient) *Co } type ConfigProfile struct { - ProfileName string `json:"profile_name"` - FrogbotConfig FrogbotConfig `json:"frogbot_config,omitempty"` - Modules []Module `json:"modules"` - IsDefault bool `json:"is_default,omitempty"` + ProfileName string `json:"profile_name"` + Repository ConfigProfileRepository `json:"repository"` + FrogbotConfig FrogbotConfig `json:"frogbot_config,omitempty"` + Modules []Module `json:"modules"` + IsDefault bool `json:"is_default,omitempty"` +} + +type ConfigProfileRepository struct { + Id string + Name string + Url string + Provider string } type FrogbotConfig struct {