Skip to content

Commit 6b3d479

Browse files
committed
fix(api/stores): Use same StorePasswordConfig for create and update store models
1 parent 7537550 commit 6b3d479

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

v3/api/store_models.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ 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 *UpdateStorePasswordConfig `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 *StorePasswordConfig `json:"Password"`
6262
}
6363

6464
type UpdateStorePasswordConfig struct {
@@ -102,14 +102,14 @@ type ReEnrollmnentConfig struct {
102102
// StorePasswordConfig configures the password field for a new certificate store.
103103
// TODO: make re-usable struct for Secret type fields
104104
type StorePasswordConfig struct {
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"`
105+
Value *string `json:"SecretValue"`
106+
SecretTypeGuid *string `json:"SecretTypeGuid,omitempty"`
107+
InstanceId *string `json:"InstanceId,omitempty"`
108+
InstanceGuid *string `json:"InstanceGuid,omitempty"`
109+
ProviderTypeParameterValues *[]ProviderTypeParameterValue `json:"ProviderTypeParameterValues"`
110+
ProviderId int `json:"ProviderId"`
111+
IsManaged bool `json:"IsManaged"`
112+
HasValue bool `json:"HasValue"`
113113
} // ProviderTypeParameterValues - Not yet implemented
114114
// ProviderTypeParameterValues ProviderTypeParams - Not implemented
115115

0 commit comments

Comments
 (0)