Skip to content

Commit d7e00db

Browse files
authored
Merge pull request #29 from Keyfactor/store_types_depends_on_null
Store types depends on null
2 parents e932e22 + 44def5a commit d7e00db

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/Keyfactor/keyfactor-go-client
22

3-
go 1.18
3+
go 1.20
44

55
require (
6-
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1
6+
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2
77
github.com/spbsoluble/go-pkcs12 v0.3.3
88
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
99
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1 h1:cs8hhvsY3MJ2o1K11HLTRCjRT8SbsKhhi73Y4By2CI0=
2-
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1/go.mod h1:Z5pSk8YFGXHbKeQ1wTzVN8A4P/fZmtAwqu3NgBHbDOs=
1+
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2 h1:caLlzFCz2L4Dth/9wh+VlypFATmOMmCSQkCPKOKMxw8=
2+
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2/go.mod h1:Z5pSk8YFGXHbKeQ1wTzVN8A4P/fZmtAwqu3NgBHbDOs=
33
github.com/spbsoluble/go-pkcs12 v0.3.3 h1:3nh7IKn16RDpmrSMtOu1JvbB0XHYq1j+IsICdU1c7J4=
44
github.com/spbsoluble/go-pkcs12 v0.3.3/go.mod h1:MAxKIUEIl/QVcua/I1L4Otyxl9UvLCCIktce2Tjz6Nw=
55
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 h1:CCriYyAfq1Br1aIYettdHZTy8mBTIPo7We18TuO/bak=

v2/api/store_models.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ type CreateStoreFctArgs struct {
1313
// automatically populated by the CreateStore method. However, if configured, this field will be used.
1414
PropertiesString string `json:"Properties,omitempty"`
1515
// Mapped name-value pair field used to configure properties.
16-
Properties map[string]string `json:"-"`
17-
AgentId string `json:"AgentId"`
18-
AgentAssigned *bool `json:"AgentAssigned,omitempty"`
19-
ContainerName *string `json:"ContainerName,omitempty"`
20-
InventorySchedule *InventorySchedule `json:"InventorySchedule,omitempty"`
21-
ReEnrollmentStatus *ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
22-
SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"`
23-
Password *StorePasswordConfig `json:"Password"`
16+
Properties map[string]interface{} `json:"-"`
17+
AgentId string `json:"AgentId"`
18+
AgentAssigned *bool `json:"AgentAssigned,omitempty"`
19+
ContainerName *string `json:"ContainerName,omitempty"`
20+
InventorySchedule *InventorySchedule `json:"InventorySchedule,omitempty"`
21+
ReEnrollmentStatus *ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
22+
SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"`
23+
Password *StorePasswordConfig `json:"Password"`
2424
}
2525

2626
// UpdateStoreFctArgs holds the function arguments used for calling the UpdateStore method.

v2/api/store_type_models.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ type StoreTypePropertyDefinitionGeneric struct {
5858
Name string `json:"Name"`
5959
DisplayName string `json:"DisplayName"`
6060
Type string `json:"Type"`
61-
DependsOn string `json:"DependsOn"`
61+
DependsOn interface{} `json:"DependsOn"`
6262
DefaultValue interface{} `json:"DefaultValue"`
6363
Required bool `json:"Required"`
6464
}
6565

6666
type StoreTypePropertyDefinition struct {
67-
StoreTypeID int `json:"StoreTypeId;omitempty"`
67+
StoreTypeID int `json:"StoreTypeId"`
6868
Name string `json:"Name"`
6969
DisplayName string `json:"DisplayName"`
7070
Type string `json:"Type"`
71-
DependsOn string `json:"DependsOn"`
71+
DependsOn interface{} `json:"DependsOn"`
7272
DefaultValue interface{} `json:"DefaultValue"`
7373
Required bool `json:"Required"`
7474
}

0 commit comments

Comments
 (0)