@@ -51,14 +51,20 @@ type UpdateStoreFctArgs struct {
5151 // automatically populated by the CreateStore method. However, if configured, this field will be used.
5252 PropertiesString string `json:"Properties,omitempty"`
5353 // Mapped name-value pair field used to configure properties.
54- Properties map [string ]interface {} `json:"-"`
55- AgentId string `json:"AgentId"`
56- AgentAssigned * bool `json:"AgentAssigned,omitempty"`
57- ContainerName * string `json:"ContainerName,omitempty"`
58- InventorySchedule * InventorySchedule `json:"InventorySchedule,omitempty"`
59- ReEnrollmentStatus * ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
60- SetNewPasswordAllowed * bool `json:"SetNewPasswordAllowed,omitempty"`
61- Password * StorePasswordConfig `json:"Password"`
54+ Properties map [string ]interface {} `json:"-"`
55+ AgentId string `json:"AgentId"`
56+ AgentAssigned * bool `json:"AgentAssigned,omitempty"`
57+ ContainerName * string `json:"ContainerName,omitempty"`
58+ InventorySchedule * InventorySchedule `json:"InventorySchedule,omitempty"`
59+ ReEnrollmentStatus * ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
60+ SetNewPasswordAllowed * bool `json:"SetNewPasswordAllowed,omitempty"`
61+ Password * UpdateStorePasswordConfig `json:"Password"`
62+ }
63+
64+ type UpdateStorePasswordConfig struct {
65+ SecretValue * string `json:"SecretValue"` // used for setting kf-secret value or No Value (null)
66+ Parameters map [string ]string `json:"Parameters"`
67+ Provider * string `json:"Provider"`
6268}
6369
6470// InventorySchedule holds configuration data for creating an inventory schedule for a certificate store in Keyfactor
@@ -94,34 +100,59 @@ type ReEnrollmnentConfig struct {
94100}
95101
96102// StorePasswordConfig configures the password field for a new certificate store.
103+ // TODO: make re-usable struct for Secret type fields
97104type StorePasswordConfig struct {
98- Value * string `json:"SecretValue"`
99- SecretTypeGuid * string `json:"SecretTypeGuid,omitempty"`
100- InstanceId * string `json:"InstanceId,omitempty"`
105+ Value * string `json:"SecretValue"`
106+ SecretTypeGuid * string `json:"SecretTypeGuid,omitempty"`
107+ InstanceId * string `json:"InstanceId,omitempty"`
108+ InstanceGuid * string `json:"InstanceGuid,omitempty"`
109+ ProvidererTypeParameterValues * []ProviderTypeParameterValue `json:"ProviderTypeParameterValues"`
110+ ProviderId int `json:"ProviderId"`
111+ IsManaged bool `json:"IsManaged"`
112+ HasValue bool `json:"HasValue"`
101113} // ProviderTypeParameterValues - Not yet implemented
102114// ProviderTypeParameterValues ProviderTypeParams - Not implemented
103115
104116/* Future non-critical functionality */
105117
106- type ProviderTypeParams struct {
107- Id string
108- Value string
109- InstanceId string
110- InstanceGuid string
111- Provider ProviderParams
118+ type ProviderTypeParameterValue struct {
119+ Id int `json:"Id"`
120+ Value * string `json:"Value"`
121+ ParameterId int `json:"ParameterId"` // defaults always to 0, likely deprecated
122+ InstanceId * string `json:"InstanceId"` // defaults null, likely deprecated
123+ InstanceGuid * string `json:"InstanceGuid"`
124+ Provider * string `json:"Provider"` // defaults null, likely deprecated
125+ ProviderTypeParam ProviderTypeParam `json:"ProviderTypeParam"`
112126}
113127
114- type ProviderParams struct {
115- Id int
116- Name string
117- Area int
118- ProviderType ProviderType
128+ type ProviderTypeParam struct {
129+ Id int `json:"Id"`
130+ Name * string `json:"Name"`
131+ DisplayName * string `json:"DisplayName"`
132+ DataType int `json:"DataType"`
133+ InstanceLevel bool `json:"InstanceLevel"`
134+ ProviderType * string `json:"ProviderType"` //defaults null, likely deprecated
119135}
120136
121- type ProviderType struct {
122- Id string
123- Name string
124- }
137+ // type ProviderTypeParams struct {
138+ // Id string
139+ // Value string
140+ // InstanceId string
141+ // InstanceGuid string
142+ // Provider ProviderParams
143+ // }
144+
145+ // type ProviderParams struct {
146+ // Id int
147+ // Name string
148+ // Area int
149+ // ProviderType ProviderType
150+ // }
151+
152+ // type ProviderType struct {
153+ // Id string
154+ // Name string
155+ // }
125156
126157// CertStoreTypeResponse contains the response elements returned from the GetCertificateStoreType method.
127158type CertStoreTypeResponse struct {
0 commit comments